On Fri, 1 Apr 2011, Márcio Luciano Donada wrote:
I would help of experts in a procmail. I want to get a message that it
has the header X-Amavis-Alert and change the subject of it, is this
possible? My idea would be:
:0:
* ^X-Amavis-Alert:BAD HEADER,
$MAILDIR/Maildir/.Spam/
My question is how to change the subject of the message and do not know
if he'll understand BAD HEADER (it has a space in it).
I change subjects a lot because mailing list put the name of the list
in brackets in the subject and it irritates.
Try something like this:
:0
^X-Amavis-Alert:
{
:0 fhw
* subject:\/.*
| formail -i "Subject: [BAD HEADER] ${MATCH}"
:0:
$MAILDIR/Maildir/.Spam/
}
This is untested. Also, with maildir, you might only need :0 rather than
:0: but I don't think it would do any harm.
--
Alan
( Please address personal email to alan+1@ as email to lists@
is only read from my subscribed lists. )
____________________________________________________________
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