X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/15c42408a31547741fc746807331c335b6ee92f9..1937fe624e0b804bf104b6f20f481fde79ca17e3:/procmail/defines diff --git a/procmail/defines b/procmail/defines index bdc3167..e10d302 100644 --- a/procmail/defines +++ b/procmail/defines @@ -136,14 +136,10 @@ INCLUDERC=$PMDIR/get-msgid { SUBJECT=$MATCH - # mimedecode.c: * Disclaimer: We only handle charset of iso-8859-1 :0 - * SUBJECT ?? =\?iso-8859-1\?[QBqb]\?.+\?= + * SUBJECT ?? =\?.+\?[QBqb]\?.+\?= { - DECODED="`echo Subject: $SUBJECT | mimedecode | iconv -f latin1 -t utf-8`" - :0 - *$ DECODED ?? ^Subject:$RE_EXTRACT_HEADER_VALUE - { SUBJECT=$MATCH } + SUBJECT="`PERL_UNICODE=S perl -MEncode=decode -e \"print decode(\\\"MIME-Header\\\", \\\"$SUBJECT\\\") . \\\"\n\\\";\"`" } }