procmail
[Top] [All Lists]

Re: Recipe matching

2001-12-21 16:05:19
At 16:54 2001-12-21 -0500, Rick Leir EPS wrote:
:0
* ^From:.*(\.kr|\.hu|\.tw|\.ru|\.cn|\.br|\.jp|\.pt |\.cz |\.cl |\.gr
|\.es |\.it |\.cc |\.th |\.pl |\.ro |\.mo )
JunkMaybe.$TODAY

[snip]

Strive to eliminate redundancy in all of it's ugly forms:

# countries that don't understand netiquette
* ^(Received|From):.*\.(kr|hu|tw|ru|cn|br|jp|pt|cz|cl|gr|es|it|cc|th|pl|ro|mo)\>
JunkMaybe.$TODAY

The regexp belongs on the line with the *, but linewrap sends it down a line in this email. Note also that a trailing space may NOT exist on a From: line, and the address might appear in brackets or somehow in either the From: or Received: -- the \> isn't a literal bracket, but rather a special word delimiting procmail regexp.

---
 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

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