procmail
[Top] [All Lists]

Re: Recipe Correct #2

2004-02-04 20:53:44
At 13:36 2004-02-05 +1100, Marvin Pierce wrote:
For some reason, the list seems to be filtering my recipe because it
contains, the sex medication word that begins with the letter v.

Between Monday and now, I see only two messages sitting for administrator action, and both were flagged because they contained viruses.

Trying again with a modification:

It'd really help if you indicated what that modification is. I might guess that you've replaces the continuation letters with underscores, but you're asking me to make such an assumption.

Recipe #2) Filters body for select words and sends to mbox spam folder:
:0 B:
* MS Customer
* CD Government
* v_____
* V_____

As per the procmailrc manpage, procmail is not CASE SENSITIVE unless you direct a recipe to be so (and you are not), so having different casings of a string is a waste of cycles.

* v|_|_|_|_|_

Those | are OR markers. I rather doubt this is what you want, esp since the last 5 characters are all the same.

* V_?_?_?_?_?

Those ? are regexp for "zero or one of the previous expression or character"

I'm going to guess that you have a problem wherein the word "viagra" appears in spam, and sometimes it's interspersed with separator characters of some sort. If so, the following might be a better replacement to all FOUR of your preceeding "viagra" specific conditions:

* v\>?i\>?a\>?g\>?r\>a

which will match viagra as a word, or with optional interspersed wordbreak (basically, non-letter/number) characters - punctuation and the like. Set up a sandbox and throw a bunch of your spam at it.

* popular medications

This condition by itself will of course match _THIS_ message (as well as the copy of your own message sent back to you by the list)

$MAILDIR/spam

You do realize that *ALL* of the conditions must be matched in order for this recipe to trigger?


You might want to spend some time browsing Nancy McGough's Procmail Quickstart (conveniently linked from the procmail homepage).

---
 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>
  • Recipe Correct #2, Marvin Pierce
    • Re: Recipe Correct #2, Professional Software Engineering <=