procmail
[Top] [All Lists]

Re: MIME headers in Procmail

2011-07-09 11:20:04
Have you tried to pipe the "From", "To" and "Subject" headers through 
formail -x with "perl -MEncode -ne 'print 
encode("UTF8",decode("MIME-Header",$_))'" to encode the message? 

I could do something like this:

:0 c
| formail -xsubject |perl -Mencode -ne 'print 
encode("UTF8",decode("MIME-Header",$_))' > /tmp/junk$$

SUBJ=`cat /tmp/junk$$`

and then do matches like

* SUBJ ?? pattern

but, uh, bletch.

For those that haven't been paying attention, I do NOT want to rewrite
the mail that gets delivered, since my MUAs handle MIME just dandy.

R's,
John


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>