procmail
[Top] [All Lists]

Re: Case insensitive searches?

2003-09-01 10:02:29
In your message dated Mon, 1 Sep 2003 23:30:08 +0700, Tim Rice said that ...

In your message dated Tue, 02 Sep 2003 00:20:59 -0700, Dragoncrest said
that ...

Your filter is looking for both "virus" and "infected" to be in the subject
and body. All four conditions must be true to catch. The example your
giving only has "virus" in the subject. I think you need a lock :0: as
well.

         Ok, how would I set that rule then so that "if any of the 
following are true, due this" rather than "all of the following"??  I'm 
guessing it's done with that lock, correct?

Nope, the lock is for delivering to a folder or directory instead of
delivering to your (root) mailbox. Check the man pages for a better
explanation for locking. You should have it though.
 
As for the filter itself, If you want to match on any (one) of the four
conditions you will probably have to use scoring, I'd have to check my
notes on scoring as to how that's done. 
 
Personally, I think you want to catch on either virus or infected occurring
in BOTH the subject and the body, to match on any of the four would
probably catch to many legitimate mails. To check for either in both
subject and body this should work.
 
:0:
* ^Subject:.*(virus|infected)
* B ?? (virus|infected)
mail/virus-bounces


-- 
Best Regards,

Tim Rice
---------------
Phuket Thailand

-- 
Best Regards,

Tim Rice
---------------
Phuket Thailand


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