> -----Original Message----- > From: Jack Gostl > Sent: Friday, January 02, 2004 7:00 PM > To: Douglas Kirkland > Cc: [EMAIL PROTECTED] > Subject: Re: [SAtalk] procmail > > > > > On Friday 02 January 2004 17:26, Jack Gostl wrote: > > > This is really more of a procmail question, but its part of > the process. > > > > > > If I spot a certain string in the subject line, I'd like to stop the > > > process and let the mail through without invoking > spamassassin. Can anyone > > > clue me in as to how to do this? > > > > > > Here is how I do that. > > :0 > > * ! ^Subject:(.*\<)?\[SAtalk\] > > { } # official procmail no-op. MUST LEAVE SPACE > > :0 E > > { > > :0 > > /dev/null > > }
Not sure why Doug is unconditionally filing everything without [SATalk] in the subject line into /dev/null. > > So, if I wanted to bypass spamassassin for anything with "zorch" in the > subject line I would put the following at the front of my .procmailrc? > > :0 > * ^Subject:.*zorch > { } > No. Above, Doug used the :0 E specification on the next recipe which is *else* statement. You're recipe standing alone is a true no-op. It detects a match and then does nothing with it, so it will continue to fall through the procmail recipe. Here's how I'd do the SA filtering: SA=/usr/bin/spamassassin # or spmac, if that is what you're using. # # If [SAtalk] appears in the subject line, don't feed it to SA. # Multiple negated tests could be added below. # :0fw:spam.lock # the lock isn't necessary but can reduce system load * < 250000 * ! ^Subject:.*\[SAtalk\] | $SA # fall through, do normal procmail filtering ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk