procmail
[Top] [All Lists]

Re: procmail regex

2002-02-15 11:07:41

On 2002.02.15 12:37 Lars Hecking wrote:

: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.
Why is it IGNORED

I'm saying I want anthing followed by at least 1 or more capital letter at the 
end

Like this

Subject dfhhjsd klfshjfs jklfsdfsjkl JKDSDHJFDDF




 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

-- 
__________________________

Brooklyn Linux Solutions
__________________________
http://www.mrbrklyn.com - Consulting
http://www.brooklynonline.com - For the love of Brooklyn
http://www.nylxs.com - Leadership Development in Free Software
http://www.nyfairuse.org - The foundation of Democracy
http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and 
articles from around the net
http://www2.mrbrklyn.com/mp3/sins.mp3 - C'est La Vie and a boy named Joe
http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn....

1-718-382-5752



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