procmail
[Top] [All Lists]

Letting Fall Through Spam Catcher

1998-06-08 12:39:19
    I have various spam catching recipes.  Most of them make a
specialized log entry and then deliver to /dev/null.  At the bottom,
before some default processing takes place, I have a recipe which
catches most of the rest of the probable spam and puts it in a special
folder.  In this recipe, $SPAMFOLDER is that folder, and $MY_ADDRX is a
regexp with legal permutations of my address.

# This recipe should probably remain at the bottom of the spam catchers.
# OR'ed conditions (use De Morgan's Law, taking inverses of "reals").
# (This may also catch mail sent to me via Bcc:.)
:0
* $ ^TO$MY_ADDRX
* ! ^Subject:.*(\<[\$]+|free|cash|money|rich|opportunity|AOL4Free\.com\>)
* ! ^Precedence: *junk
* ! ^Precedence: *bulk
* ! ^Received: *from.*\.earthlink\.net
* ! ^From:.*(@cyber|\
             @quantcom\.com|\
             @hotmail\.com|\
             @juno\.com)
{ }
:0E:
$SPAMFOLDER

    It is possible that I could receive some legitimate mail forwarded
from another site which therefore would not be addressed explicitly to
$MY_ADDRX and therefore would be caught by this recipe.  Instead I want
it to fall through so that it would take the default processing route. 
In other words, the recipe above should NOT catch mail addressed to 

        To: pobart(_at_)some(_dot_)other(_dot_)domain

which gets forwarded to my account where procmail is active.  Maybe my
brain is just not in gear, but so far I have not figured out how to
modify the recipe to pass mail forwarded from @some.other.domain.  Any
suggestions will be gratefully accepted.

    Thanks.

-- 
Paul                             <pobart(_at_)access(_dot_)digex(_dot_)net>
..........................................................
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP public key
Home Page:  http://www.access.digex.net/~pobart

<Prev in Thread] Current Thread [Next in Thread>