procmail
[Top] [All Lists]

Re: procmail regex

2002-02-15 10:44:16

:0 iw
* ^Subject.*[A-Z]+$
|/home/ruben/complain.pl


I'm trying to capute all messages consisting of only upper case letters in 
the subject and pipe

 capute?

them to complain.pl which complains to the sender.

It seems to capture EVERYTHING, or nearly so.
 
 Because the .* in your regexp is greedy and catches everything. The *[A-Z]+
 part is being ignored.

 Also, procmail's regexp's are case-insensitive by default, which you could
 have found out by reading the procmailrc man page.

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