procmail
[Top] [All Lists]

Checking if there is only one recipient

2002-10-01 10:38:50
I'd like to check incoming messages to see if there is more than one recipient (in the To: and Cc:, obviously I can't know if there's a Bcc:) but I'm not sure where to start

* ^To:[         ][^(_at_)]*<*kremels(_at_)kreme(_dot_)com>*$
* ! ^Cc:.*@

will this work if the To: is

To: bob(_at_)isp1(_dot_)com, kremels(_at_)kreme(_dot_)com

there must be a shortcut I'm missing. A way to count the "@"'s in the line? A quick builtin "only one recipient" step?

--
looks like freedom but it feels like death/it's something in between, I guess
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>