procmail
[Top] [All Lists]

Re: Case insensitive searches?

2003-09-01 08:57:46
In your message dated Mon, 01 Sep 2003 23:02:11 -0700, Dragoncrest said
that ...

      Just curious if procmail was supposed to do searches for keywords 
without 
worrying about case?  Cause for some reason if a keyword is in caps and my 
recipe states lower case, it misses it.  Here's what I'm using right now 
and it's not doing what it's supposed to about 50% of the time.

:0
* ^Subject:.*virus
* ^Subject:.*infected
* B ?? *virus
* B ?? *infected
mail/virus-bounces

      It's supposed to catch those pesky virus bounce messages, but for some 
oddball reason it's missing some of them.  Most noticeably from those using 
Symantec server side email scanner products and a few from other types of 
servers like McCaffe and groupware and such.  Here's an example subject 
that was missed.

Subject: Virus Detected by Network Associates, Inc. Webshield SMTP V4.5 MR1a

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.

      I'm guessing that since the word Virus has a capital V in it, the 
filter 
missed it.  I was thinking of shortening my test field down to "*irus", but 
I wasn't sure if it would get too many false positives.  Any suggestions on 
that?  Thanks.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail





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