I have some "anti-spam" recipes and if one of them is executed, I want
to send a notification to my POP-account.
To get a clue, what kind of message was dumped, I want to forward some
headers and add a "Sender:".
Here are the lines, which I hoped, might work:
:0
* ^From:.*spam.* # just a sample here!
{
:0 c
$SPAMFILE # this works fine
:0h # this doesn't add the -A-Headers!
* !^X-Loop: tgyoeroe(_at_)sampo(_dot_)nt(_dot_)tuwien(_dot_)ac(_dot_)at
| (formail -X From: -X Subject: -A"Sender: procmail
<tgyoeroe(_at_)nt(_dot_)tuwien(_dot_)ac(_dot_)at>" -A"Precedence: junk" ; \
echo "Bad FROM... --- dumped into SPAMFILE!" \
) | $SENDMAIL -oi e8426314(_at_)stud1(_dot_)tuwien(_dot_)ac(_dot_)at
}
As I noted already, the original "From" and "Subject" are included,
but the additional header Sender: and Precedence: are not. In other
recipes -X"X-Loop: ..." works fine for generating "autoreply-headers".
What's wrong in the recipe above?
TIA,
Thomas
--
-> Thomas Gyoeroeg <tgyoeroe(_at_)nt(_dot_)tuwien(_dot_)ac(_dot_)at>