Procmail Question?

Edward Glowacki glowack2@msu.edu
Wed, 10 Jan 2001 11:30:14 -0500 (EST)


I'm not a procmail guru by any means, but some of this might work
to help organize yourself a bit, might help track down the problem.

On Wed, 10 Jan 2001, Paul Donahue wrote:
> :0
> * !^To.*donahu16
> * !^To.*pd
> * !^To.*root
> * !^To.*apps
> * !^To.*page_paul
> * !^To.*webmaster
> * !^To.*hostmaster
> * !^To.*donahue
> * !^To.*linux-user
> * !^Cc.*donahu16
> * !^Cc.*pd
> * !^Cc.*root
> * !^Cc.*apps
> * !^Cc.*page_paul
> * !^Cc.*webmaster
> * !^Cc.*hostmaster
> * !^Cc.*donahue
> * !^Cc.*linux-user
> * !^Bcc.*donahu16
> * !^Bcc.*pd
> * !^Subject.*donahu16
> * !^Subject.*pd
> * !^Subject.*root
> * !^Subject.*apps
> * !^Subject.*page_paul
> * !^Subject.*webmaster
> * !^Subject.*hostmaster
> * !^Subject.*donahue
> * !^Subject.*linux-user


You should be able to condense this a bit by putting To, Cc, and Bcc in 
the same line.

i.e.

* !(^To|^Cc|^Bcc).*donahu16
* !(^To|^Cc|^Bcc).*webmaster
etc.

or even

* !(^To|^Cc|^Bcc|^Subject).*(donahu16|pd|root|apps|page_paul|webmaster|hostmaster|donahue|linux-user)

though this one is a bit more awkward to manage.

And from the earlier half of your file (sorry for being out of
order!), do the same thing.

> :0
> * !^Subject.*fwd
> * !^Subject.*Fwd
> * !^Subject.*FWD
> * !^Subject.*FW
> * !^Subject.*fw
> * !^To.*page_paul

* !^Subject.*(fwd|Fwd|FWD|FW|fw)

> {
> :0 c
> * ^To.*root
> ! pd_nextel@hotmail.com
> 
> :0 c
> * ^From.*jandb
> ! pd_nextel@hotmail.com
> 
> :0 c
> * ^From.*grangera
> ! pd_nextel@hotmail.com
> 
> :0 c
> * ^From.*wade
> ! pd_nextel@hotmail.com
> 
> :0 c
> * ^From.*severan8
> ! pd_nextel@hotmail.com
> 
> :0 c
> * ^From.*esev
> ! pd_nextel@hotmail.com
> 
> :0 c
> * ^From.*butler
> ! pd_nextel@hotmail.com
> 
> }

* ^From.*(jandb|grangera|wade|severan8|esev|butler)

-- 
Edward Glowacki				glowack2@msu.edu
GLLUG President				http://www.gllug.org
Imagination is the one weapon in the war against reality.
                -- Jules de Gaultier