On 10/19/1998 10:28 -0500, Hrothgar wrote:
Well, I got some mail today from a couple mailing lists and procmail
didn't sort it. My .procmailrc reads:
:H:
* ^TO: .*\<discuss(_at_)nowhere\(_dot_)com\>
* ^CC: .*\<discuss(_at_)nowhere\(_dot_)com\>
nowhere
I was hoping that would perform a logical OR to see if the To: or Cc:
contained the mailing list address. Can someone tell me how to do this
right? The man pages are confusing to me. Thanks again...
Cameron
End of included message
That's a logical AND you've got there. Try one of the following:
By DeMorgan:
:0 H
* ! ^TO:.*\<discuss(_at_)nowhere\(_dot_)com\>
* ! ^CC:.*\<discuss(_at_)nowhere\(_dot_)com\>
{ }
:0 E
nowhere
Using scoring (assuming you've got an up-to-date procmail):
:0 H
* 1^1 ^TO:.*\<discuss(_at_)nowhere\(_dot_)com\>
* 1^1 ^CC:.*\<discuss(_at_)nowhere\(_dot_)com\>
nowhere
or better yet, using the TO_ regex (which expands to a regex
that includes To:, Cc:, and a whole lot more):
:0 H
* TO_\<discuss(_at_)nowhere\(_dot_)com\>
nowhere
or even a simple regex:
:0 H
* ^(TO|CC):.*\<discuss(_at_)nowhere\(_dot_)com\>
nowhere
tw
--
+---------------------------------------+-------------------------------------+
| Tim Walberg | Phone: (847) 632-3407 |
| Motorola CE/ITS | Pager: (800) SKY-TEL2 PIN:1384689 |
| 1475 W Shure Dr. IL75-2H14 | FAX: (847) 632-5769 |
| Arlington Heights, IL 60004 | |
+---------------------------------------+-------------------------------------+
| http://www.cig.mot.com/~walberg | E-mail:
walberg(_at_)cig(_dot_)mot(_dot_)com, |
| http://www.skytel.com/Paging (pager) | 1384689(_at_)skytel(_dot_)com
(pager) |
+---------------------------------------+-------------------------------------+