At 22:26 2001-01-27 -0800, Eric Hilding wrote:
I'd like to modify the following recipe to filter on Multiple IP Partial
Addresses:
1. Can I have more than one * ^Received:.*blahblah line in the recipe? If
not,
If you have multiple condition lines, they must ALL match (all the lines
are ANDed). OTOH, if you OR the various conditions within the one
condition line (which resolves your Q#2), you'd have:
*
^Received:.*\[(201\.1[0-9][0-9]|202\.0?9[0-9]|211\.0?7[0-9])\.[0-9]+\.[0-9]+\]
This should match IP octets starting with what you're asking for (and
matching the digit counts your example masks represented), while also
handling optional leading zeroes on the octets which are only two digits
long (0? matches zero or one '0').
---
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