decoding non-ascii subject lines

Udi Mottelo uuddii at
Sun Nov 4 10:02:24 CET 2007

 	(P L E A S E    with no attachmnt!!!!!)

 	Now, to my procmailrc:

SUBJ=| formail -xSubject:

* SUBJ ?? ()\?=\?(iso-8859-1|utf-8)\?\/..[^\?]*
         * MATCH ?? B\?\/[^\?]*
         { BBB=`echo $MATCH | mimencode -u | cat -v` }

         * MATCH ?? Q\?\/[^\?]*
         { QQQ=`echo $MATCH | mimencode -u -q | cat -v` }


 	The  ''cat -v``  is for "outer" characters.


-------------- next part --------------
Hi folks,

I sometimes get mail with a raw subject line like this:

  Subject: =?iso-8859-1?q?ilpostino=2Ejpberlin=2Ede_Mitgliedschafts-Erinner?=

Do you know of a good way to convert this within procmail so that
I can use filtering expressions that work on the expanded, non-ascii
text? I've had a brief look around, but short of a Python or Perl
parser, could not find any tool to do this. What do you do?

martin | |
"my father, a good man, told me:
'never lose your ignorance; you cannot replace it.'"
                                               -- erich maria remarque
spamtraps: madduck.bogus at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: digital_signature_gpg.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (see
URL: <>
-------------- next part --------------
procmail mailing list   Procmail homepage:
procmail at lists.RWTH-Aachen.DE

More information about the procmail mailing list