Here's an alternative version of what I posted earlier. This would ensure
that the received: header which it is operating on is the TOPMOST (i.e.
where it relayed to your server):
# you might rather anchor the second condition to the beginning of the
# variable, or prefix the match operator with a word delimiter regexp if you
# want to match multiple hosts at a given domain)
:0
* 9876543210^0 ^Received: from \/[^ ]*
* MATCH ?? ()\/(server\.tld|server2\.tld)
{
:0
* 1^1 H ?? > 1
* 1^1 B ?? > 1
{
PM_SCORE=$=
IGNORE=`echo " Folder: $MATCH $PM_SCORE" >> stats.log`
}
}
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail