procmail
[Top] [All Lists]

Re: bad recipe? what am i missing here?

2003-10-20 17:30:57
At 17:47 2003-10-20 -0600, Shea Gray wrote:
Anyone see a problem with this recipe? Its suppose to get rid of those
annoying "get the banned C D" emails.

# the banned cd email.
:0:
* ^Body:.*((Banned C D)|(moral decay of society))

You have a header called "Body:" ?

surely, if you intend to match against the body, you'd be doing it the way which the documentation specifies? Either use a B flag on the flags line, or a variable check against the variable "B"

:0B
* (Banned C D|moral decay of society)

or

:0
* B ?? (Banned C D|moral decay of society)


Also, you may not be aware that there are _several_ procmail manpages:
        procmail
        procmailrc
        procmailsc
        procmailex

        (plus formail of course)

You should be running your test filters in a SANDBOX, and that SANDBOX should have VERBOSE logging enabled, which would allow you to examine what a recipe matches and what it doesn't.

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