From: martin f. krafft Date: Mon, 12 Nov 2007 13:50:11 +0000 (+0100) Subject: add commented code to decode subject lines X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/23f3aaa4478aab4cc239c756274a54727ccaf6e0 add commented code to decode subject lines --- diff --git a/procmail/defines b/procmail/defines index 9503524..a7acfab 100644 --- a/procmail/defines +++ b/procmail/defines @@ -130,7 +130,26 @@ INCLUDERC=$PMDIR/get-msgid :0 *$ ^Subject:$RE_EXTRACT_HEADER_VALUE -{ SUBJECT="$MATCH" } +{ + 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 *$ ^X-Original-To:$RE_EXTRACT_HEADER_VALUE