procmail
[Top] [All Lists]

Re: MIME headers in Procmail

2011-07-09 01:46:46
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
____________________________________________________________
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>