Thank you, helps a lot. 
Follow the flow and see Daniel's accurate, complete answer.


On Thu, Jul 18, 2013 at 12:03:00AM -0700, Daniel Hedlund wrote:
> On Wed, Jul 17, 2013 at 11:12 AM, Michael Rasmussen <[email protected]>wrote:
> 
> > A procmail recipe:
> >
> >     :0
> >     * ^From:.*Feed Blaster
> >     * ^From:.*Oz.*New
> >     * Dr.*Oz
> >     * ^From:.*Dr.*Oz
> >     * ^From:.*DrOz
> >     $MAILDIR/.aspambin/
> >
> > Is not catching email with:
> >
> >     Date: Wed, 17 Jul 2013 20:06:16 +0300
> >     From: "Show-Dr.Oz Newsletter" <[email protected]>
> >     Subject: Revealing the slim, trim body you've always wanted
> >
> > And I have verified that it is Oz and not 0z. (oh not zero)
> >
> > What do your eyes catch that I'm missing?
> >
> 
> Procmail recipes conditions are "and"ed together, not "or"ed.  All of the
> above conditions would have to be true for the recipe to fire.  See:
> http://www.perlcode.org/tutorials/procmail/proctut/proctip2.pod
> 
> Two of the above conditions, the first and last, will fail to match if the
> email you're referring to is the same as:
> http://spamavert.com/mail/original/kj6bz/90380296
> 
> 
> It's pretty easy to test procmail recipes on the command line.  Assuming
> you have a minimal recipe file at ~/procmail-test/recipe-test.rc:
> 
> MAILDIR=.
> DEFAULT=$MAILDIR/inbox
> VERBOSE=on
> SHELL=/bin/sh
> 
> :0
> * ^From:.*Feed Blaster
> * ^From:.*Oz.*New
> * Dr.*Oz
> * ^From:.*Dr.*Oz
> * ^From:.*DrOz
> $MAILDIR/spam
> 
> 
> Then you should be able to run the procmail command with "-m
> recipe-test.rc" and pipe any spam emails to it:
> $> cd ~/procmail-test
> $> procmail -m recipe-test.rc < doz.txt
> ...
> procmail: No match on "^From:.*Feed Blaster"
> procmail: Locking "./inbox.lock"
> procmail: Opening "./inbox"
> ...
> 
> With the following conditions:
> :0
> * ^From:.*Oz.*New
> * Dr.*Oz
> * ^From:.*Dr.*Oz
> $MAILDIR/spam
> 
> $> procmail -m recipe-test.rc < doz.txt
> ...
> procmail: Match on "^From:.*Oz.*New"
> procmail: Match on "Dr.*Oz"
> procmail: Match on "^From:.*Dr.*Oz"
> procmail: Assigning "LASTFOLDER=./spam"
> procmail: Opening "./spam"
> ...
> 
> 
> Hope that helps.
> 
> Cheers,
> 
> Daniel Hedlund
> [email protected]
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
> 

-- 
            Michael Rasmussen, Portland Oregon  
          Be Appropriate && Follow Your Curiosity
  Other Adventures: http://www.jamhome.us/ or http://gplus.to/MichaelRpdx
A special random fortune cookie fortune:
So Here's the clarinet Part in Bb (wimps! real klezmers  transpose! or can't 
read at all)
    ~ Tom Puwalski
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to