Cypherpunks procmail filter

mindfuq at comcast.net mindfuq at comcast.net
Sun Aug 10 22:44:33 PDT 2003


* cpunk at lne.com <cpunk at lne.com> [2003-08-10 21:37]:
> # mailing lists:
> # filter all cypherpunks mail into its own cypherspool folder, discarding
> # mail from loons.  All CDRs set their From: line to 'owner-cypherpunks'.
> # /dev/null is unix for the trash can.
> :0
> * ^From.*owner-cypherpunks at .*
> {
>     :0:
>     * (^From:.*ravage at ssz\.com.*|\
>     ^From:.*jchoate at dev.tivoli.com.*|\
>     ^From:.*mattd at useoz.com|\
>     ^From:.*proffr11 at bigpond.com|\
>     ^From:.*jei at cc.hut.fi)
> 	/dev/null
> 
>     :0:
>     cypherspool
> }

I thought I'd post an alternative procmail script for anyone interested:

XLOOP_ML=cypherpunks@[a-z0-9.-]*(lne.com|ssz.com)

# X-Loop mailing lists
#
:0 :
*$ ^X-Loop:.*$XLOOP_ML
* ^X-Loop:.*\/[a-z0-9.-]+@
* MATCH ?? ()\/[^@]+
mailing_lists/$MATCH

The idea is to generalize the recipe so if you're on other mailing
lists that use the "X-Loop" header, you can just add them to the XLOOP
variable.

And I guess if you still want to filter out sociopaths, this would be
that version of it:

XLOOP_ML=cypherpunks@[a-z0-9.-]*(lne.com|ssz.com)

SPC="[ ]"
FROM_="(From${SPC}|(Old-|X-)?(Resent-)?\
(From|Reply-To|Sender):)(.*\<)?"

SOCIOPATHS=(\
ravage at ssz\.com.*|\
jchoate at dev.tivoli.com.*|\
mattd at useoz.com|\
proffr11 at bigpond.com|\
jei at cc.hut.fi)

#SOCIO_PATH=/dev/null
SOCIO_PATH=sociopaths

# X-Loop mailing lists
#
:0 
*$ ^X-Loop:.*$XLOOP_ML
* ^X-Loop:.*\/[a-z0-9.-]+@
* MATCH ?? ()\/[^@]+
{     
     :0:
     *$ ^${FROM_}$SOCIOPATHS
     SOCIO_PATH
 
     :0:
     mailing_lists/$MATCH     
}





More information about the cypherpunks-legacy mailing list