Re: MIME headers in Procmail

Jostein Berntsen <[email protected]>
Newsgroups gmane.mail.procmail
Message-ID <20110709064635.GC20931@josteinb>
On 09.07.11,03:15, John Levine wrote:
> >The 'milter' interface is expressly _designed_ to let client applications
> >do things like that.  There are specific milter library calls to let you
> >'add', 'delete', or 'replace' _any_ header,  Or to change the message
> >body.
> 
> I don't use an MTA that supports milters and in any event, I don't
> want to rewrite the message, since it still needs to be delivered.  I
> want procmail to act as though the headers are pure UTF-8 when doing
> the pattern matches.
> 

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? 

The perl script posted here previously in the thread should work nicely 
with a procmail rule as well:

http://people.eisenbits.com/~stf/fsd/download/conv2047/


Jostein
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.