Jan(_dot_)Niggemann(_at_)swl(_dot_)fh-heilbronn(_dot_)de wrote:
I have this:
:0 c :
* !^FROM_DAEMON
* !^From:(_dot_)*(_at_)special_domain
* ^TO_all_my_old_accounts
| (formail -tr -i"Subject: adress will soon expire" ; cat
$HOME/.procmail/autoreply_texte/reply) | $SENDMAIL -oi -t
I'd like to make the Subject: line more specific, i.e. I want to have:
Subject: The Adress $ADR is going to expire
Now
* ^To[ ]*:[ ]*\/[a-zA-z0-9]+(_at_)[a-zA-Z0-9]+\(_dot_)(_dot_)*
{ ADR = "$MATCH" }
| (formail -tr -i"Subject: The Adress $ADR is going to expire" ; ...
does not work. But I can't figure out why.
Can you tell me?
You need to start another recipe without a condition and just ":0" for
the line formail.
:0
* ^To[ ]*:[ ]*\/[a-zA-z0-9]+(_at_)[a-zA-Z0-9]+\(_dot_)(_dot_)*
{ ADR = "$MATCH" }
:0
| (formail -tr -i"Subject: The Address $ADR is going to expire" ; ...
Also, you don't need a colon after ":0" unless you want Procmail to
create a lockfile. Nevertheless, it's not necessary in this instance.
*********************************************************************
Signed,
SoloCDM
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail