Toen wij fleet(_at_)teachout(_dot_)org kietelden, kwam er dit uit:
The whitelist.txt is 7932 bytes and contains 160 e-mail addresses
in the form of:
john(_dot_)relative(_at_)domain(_dot_)com #John/Jane
Relative
(ie, standard e-mail addresses; but each with a #note)
I use sed to transform such a greenlist into a regexp. The
line may also start with @, in which case something like
[a-z0-9.-]+ is prepended.
Example:
john(_dot_)relative(_at_)domain(_dot_)com #John/Jane
Relative
#organizations and clients
@lists.zend.com
gets transformed into
(john\(_dot_)relative(_at_)domain\(_dot_)com|[a-z0-9(_dot_)-]+(_at_)lists\(_dot_)zend\(_dot_)com)
:0
* ^^From[ ]\/[^ ]+
*$ MATCH ?? $regexp
{ FRIEND = YES }
If there are only clean addresses on each line, it can be used on
the left side, by changing it to an includable rc:
myFriends = "
john(_dot_)relative(_at_)domain(_dot_)com
pete(_dot_)relative(_at_)domain(_dot_)com
"
Keep that friends.rc limited to a few KB of course.
INCLUDERC = "friends.rc"
:0
*$ myFriends ?? ^[ ]*$MATCH[ ]*^
{ FRIEND = YES }
--
Grtz, Ruud
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail