But what about testing some other header, e.g. Received-from: instead of
From:
There was the recomendation for me to look in it, as the From: header might
be
not real sender's address.
How could look the condition line (now it is * ^From [^(_at_)]@\/[^ ]+ ) ?
Peter Rosa
----- Original Message -----
From: "Ruud H.G. van Tol" <rvtol(_at_)isolution(_dot_)nl>
snip
Second, put these lines in your .procmailrc
INCLUDERC=$RCDIR/GREEN_DOMAINS.rc
:0
* ^From [^(_at_)]@\/[^ ]+
{
From_Domain = $MATCH # example: tv.bbc.co.uk
:0 # try: co.uk
* From_Domain ?? \/[^.]+\.[^.]+^^
*$ GREEN_DOMAINS ?? $MATCH^
$DEFAULT
:0 # try: bbc.co.uk
* From_Domain ?? \/[^.]+\.[^.]+\.[^.]+^^
*$ GREEN_DOMAINS ?? $MATCH^
$DEFAULT
}
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail