procmail
[Top] [All Lists]

Re: Question about filtering by criteria in the body

2006-10-19 12:41:21
On Thu, Oct 19, 2006 at 12:15:13PM -0400, Steve Lake wrote:
         Well, so far no hits on this and those messages are
still coming through. -_-;; Guess my little trick to filter those
out didn't work afterall. Bummer.

I will now add that daemon bounces, whether real or faked,
also should be checked, though; and they won't have the
Content-Type header.  So:


   :0:  # again, the OP probably wanted a lock
   *  9876543210 ^0   ^Content-Type:.*(multi|html)
   *  9876543210 ^0   ^FROM_MAILER
   * -9876543210 ^0
   * B ?? ()<img .*alt=\"\"
   caught_file

What's not to work?  This catches 114 messages in my current spam
folder of 640 messages.  (And two in my current good-mail folder.)

What do your log files say?

 9:29pm [~/Mail/spam] 592[0]> procmail -m DEFAULT=/dev/null VERBOSE=y ../img.rc 
< $SPAMPLE
  procmail: [21377] Thu Oct 19 21:30:31 2006
  procmail: Assigning "MAILDIR=."
  procmail: Rcfile: "../img.rc"
  procmail: Score: 2147483647 2147483647 "^Content-Type:.*(multi|html)"
  procmail: Match on "()<img .*alt=\"\""
  procmail: Locking "caught_file.lock"
  procmail: Assigning "LASTFOLDER=caught_file"
  procmail: Opening "caught_file"
  procmail: Acquiring kernel-lock
  procmail: Unlocking "caught_file.lock"
  From rwt(_at_)multisms(_dot_)be  Wed Oct 18 22:13:56 2006
   Subject: forty humility
    Folder: caught_file                                                     
12751

-- 
Dallman

____________________________________________________________
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