// COMPLETE THREAD

Better living through `procmail'

2 expanded posts ยท every known parent and child

NODE 917ca8c7Better living through `procmail'
-- excerpt from /home/grendel/.procmailrc --
:2:
(^From owner-cypherpunks@toad.com|^Sender: owner-cypherpunks@toad.com)
^Subject:.*alt.religion.your.operating.system.sucks
/dev/null

:3:
(^From owner-cypherpunks@toad.com|^Sender: owner-cypherpunks@toad.com)
^From:.*perry@imsi.com
^In-Reply-To:.*netcom.com
/dev/null

:3:
(^From owner-cypherpunks@toad.com|^Sender: owner-cypherpunks@toad.com)
^From:.*jamesd@netcom.com
^In-Reply-To:.*imsi.com
/dev/null

:1:
(^From owner-cypherpunks@toad.com|^Sender: owner-cypherpunks@toad.com)
$LISTDIR/cypherpunks
-- end excerpt --

Apply and modify as necessary. The "kill Perry's replies to James" 
recipe is a bit lossy, (i.e. it will kill anything that Perry replies 
to from Netcom on the cpunks list) but we can't have everything can 
we? 

Cheers!
NODE 3a5f48f5Better living through better `procmail'
The rule below involve no loss, and it works quicker
by putting the whole cypherpunks thing inside a set of braces,
rather than checking each message 6 times to see if its from the
cypherpunks list.

	Optimizing a bit more, You don't need a lockfiles on
/dev/null, unless you want to make sure the messages go in as whole
units.  Also, theres no reason to send the whole message, we save time
by only sending the header to /dev/null.  Procmail just frees the
body.

	
:0
* (^From owner-cypherpunks@toad.com|^Sender: owner-cypherpunks@toad.com)
{
  :0 h
  * ^From:.*perry@imsi.com
  * ^(To|cc): jamesd@netcom.com
  /dev/null
...
}

| Apply and modify as necessary. The "kill Perry's replies to James" 
| recipe is a bit lossy, (i.e. it will kill anything that Perry replies 
| to from Netcom on the cpunks list) but we can't have everything can 
| we? 

Adam

-- 
"It is seldom that liberty of any kind is lost all at once."
						       -Hume