From ce695b5f37533916b1d13761095da0fdc112d39f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 20 Feb 2008 14:49:58 +0100 Subject: [PATCH 1/1] decode iso8859-1/utf-8 subject lines --- procmail/defines | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) 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 -- 2.39.5