procmail
[Top] [All Lists]

Re: [pro] Everything Matching SPAM Filter, makes no sense

2007-10-15 11:37:00
Yea I thought ()'s negated the default behavior of []'s.

Thanks,
CC

On 10/15/07, Charles Gregory <cgregory(_at_)hwcn(_dot_)org> wrote:

On Mon, 15 Oct 2007, Chuck wrote:
Here is my .procmailrc
<SNIP>
# Put [Spam] into the SPAM folder
:0:
* ^Subject:.*([Spam])
.SPAM/

In Regular Expressions the square brackets are special characters.
Your expression matches any ONE of 'S' or 'p' or 'a' or 'm'.
Escape the brackets:

* ^Subject:.*\[Spam\]

The parentheses you used are redundant. If you intend to match parentheses
in the subject line, then they need to be escaped too.

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

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