procmail
[Top] [All Lists]

How to combine the two actions from item (4) in rc.spammers

1997-07-04 11:49:00
Hi All,

Here's a way to combine the two parts of the "certain folks who still
slip through" part of the rc.spammers file. Before it was necessary to
add all the patterns twice, which was a bit of a pain. Here's how to
do it in a slightly easier form. I'm sure there's another {} method,
but I'll play with that next.

##############################################################################
#  4) Fourth -- I catch all mail from certain folks who still slip through...
:0hbc
* ^From.*( FreeWay(_at_)dm1(_dot_)com\
          |KORBS(_at_)ix(_dot_)netcom(_dot_)com\
          |hnet(_at_)dialup(_dot_)francenet(_dot_)fr\
          |owl(_at_)owlsnest(_dot_)com\
          |softree(_at_)web(_dot_)net\
          |excellent(_at_)softnet(_dot_)com\
          |samn(_at_)twics(_dot_)com\
          |jmills(_at_)nr1(_dot_)resultnet(_dot_)com\
          |Tiffany(_at_)lvsweeties(_dot_)com\
          |starmaker(_at_)earthstar(_dot_)com\
          |Emerald(_at_)earthstar(_dot_)com\
          |alexc(_at_)cynet(_dot_)net\
          |comcorp(_at_)texas(_dot_)net\
          |upsouth(_at_)mail(_dot_)upsouth(_dot_)com\
          |don(_at_)mail(_dot_)rasha(_dot_)com\
          |camel6.mindspring.com\
          |jc(_at_)ender(_dot_)morefreestuff(_dot_)com\
          |meganets(_at_)equishare(_dot_)com\
          |toner(_at_)cartridge(_dot_)com\
          |travel(_at_)quantcom(_dot_)com\
          |pcic(_at_)genesisnetwork(_dot_)net\
          |bill(_at_)earthlink(_dot_)net\
          |r_denterprise(_at_)hotmail(_dot_)com\
          |julie(_at_)mail1(_dot_)livecybersluts(_dot_)com\
          |west(_at_)arcturus(_dot_)net\
          |gardena3(_at_)earthlink(_dot_)net\
          |msg9707-1(_at_)wrfconsulting(_dot_)com\
          |abcdefg\
          )
automated/junk
# This is a continuation rule from the previous one, which just
# does the exitcode part - may not be the best way, but does the job!
# Saves having to write all the patterns twice
:0bha
{ EXITCODE=77 HOST }
####################################################################


The "a" in the second recipe here continues on with the pattern from
the previous recipe, avoiding the need to enter it twice.

Hope this helps.

Andrew.

-- 
*************************************************************
* Andrew Beckett               * Tel:   +44 1344 360333     *
* Lead Applications Engineer   * Fax:   +44 1344 360324     *
* Cadence Design Systems Ltd   * Email: andrewb(_at_)cadence(_dot_)com *
* Bagshot Road                 *                            *
* Bracknell.  RG12 3PH         *                            *
*************************************************************

<Prev in Thread] Current Thread [Next in Thread>
  • How to combine the two actions from item (4) in rc.spammers, Andrew Beckett <=