procmail
[Top] [All Lists]

Re: MIME headers in Procmail

2011-07-11 03:37:51
On 2011-07-10 15:58, John Levine wrote:

John, you really need to keep the attribution, or you will get ignored yourself too.


You're right, that works. (Nobody ever said the procmail documentation
was any good.)  But it still fires up a shell, formail, and a copy of
perl, rather a lot of work, and you'd have to do it separately for
each header line you'd want to match.

Too obvious: only call it if the message header contains non-ASCII,

Then I have to do two versions of everything else in the procmail
file, one to match the plain subject (or whatever) line and one to
match the flattened variable.

Tsk. Just "normalize" the full mail header in an early step. After that, all of your recipes only see the "normalized" version of the header.


This doesn't do anything useful,

You are whining again. Stop that. And take a holiday of at least a few weeks.


since you can't predict which order the headers will be in (it's
whatever order they are in the incoming message), and the perl module
won't pick up the MIME cruft unless it's the first thing on the first line:

Tsk again. And again (some people need it at least thrice): filter the full mail header using Perl, and work it out from there.

--
Ruud
____________________________________________________________
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>