From: martin f. krafft Date: Wed, 20 Feb 2008 13:49:58 +0000 (+0100) Subject: decode iso8859-1/utf-8 subject lines X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/ce695b5f37533916b1d13761095da0fdc112d39f decode iso8859-1/utf-8 subject lines --- diff --git a/procmail/defines b/procmail/defines index a0da9d6..d0da2ef 100644 --- a/procmail/defines +++ b/procmail/defines @@ -133,22 +133,19 @@ INCLUDERC=$PMDIR/get-msgid { SUBJECT=$MATCH -#TODO -# :0 -# * SUBJECT ?? ()\?=\?(iso-8859-1|utf-8)\?\/..[^\?]* -# { -# :0 -# * MATCH ?? B\?\/[^\?]* -# { BBB=`echo $SUBJECT | mimencode -u | cat -v` } -# -# :0 -# * MATCH ?? Q\?\/[^\?]* -# { QQQ=`echo $SUBJECT | mimencode -u -q | cat -v` } -# -# SUBJECT="$QQQ$BBB" -# } - -SUBJECT="$MATCH" + :0 + * SUBJECT ?? =\?(iso-8859-1|utf-8)\?\/..[^\?]* + { + :0 + * MATCH ?? B\?\/[^\?]* + { BBB=`echo $SUBJECT | mimencode -u` } + + :0 + * MATCH ?? Q\?\/[^\?]* + { QQQ=`echo $SUBJECT | mimencode -u -q` } + + SUBJECT="$QQQ$BBB" + } } :0