Re: MIME headers in Procmail

John Levine <[email protected]>
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
>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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.