procmail
[Top] [All Lists]

Re: if [SPAM] is in subject then redirect to $HOME/mail/Junk

2006-05-15 00:03:55
On Mon, 2006-05-15 at 00:34 -0500, Gerald V. Livingston II wrote:
...snip...

You should also make it a habit to escape the "." in addresses. Since "."
can stand for "0 or more of the next character" in the regex language it
can sneak up and bit you in the ... backside ... if you don't escape it
where you know it shouldn't stand for that.

* ^From:(_dot_)*(_at_)cathedral\(_dot_)qld\(_dot_)edu\(_dot_)au

A period is "exactly 1 of any character in the location of the period".
The definition you gave is similar to an asterisk but that an * refers
to the previous regex symbol -- not the one after it.

I agree though that periods should be escaped so they don't end up
matching more than intended.

Regards,

Brandon

-- 
Brandon Enright
Network Security Analyst
UCSD ACS/Network Operations
bmenrigh(_at_)ucsd(_dot_)edu


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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