Procmail Question?

Paul Donahue donahu16@msu.edu
Wed, 10 Jan 2001 11:11:06 -0500


okay,
So it seems that it's a modern standard to get copious amounts of junk
e-mail along with the wonderful credit card apps and "you've won!" snail
mailings. Luckily there's cool things like procmail. I am trying to
configure it so that unless it is actually "to" or "cc" me (bcc in some rare
instances) that it goes to another account on my server appropriately called
trash. The following is my .procmailrc file. The first section is some rules
that I have setup so that it will send messages from certain people to my
cell phone, the next part is my attempts to do my trash sorting. It does not
seem to be working... since I'm but a novice with procmail I figured I would
ask for suggestions.

PATH=/usr/bin:/usr/local/bin
MAILDIR=$HOME/Mail
LOGFILE=$HOME/.procmail/procmail.log
VERBOSE=no
COMSAT=no
SENDMAIL=/usr/sbin/sendmail


:0
* !^Subject.*fwd
* !^Subject.*Fwd
* !^Subject.*FWD
* !^Subject.*FW
* !^Subject.*fw
* !^To.*page_paul
{
: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

}

: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
{
! trash
}

sorry for the length, any suggestions are appreciated.

Paul Donahue
Computer Science Senior
Computer/Network Technician
Michigan State University
http://www.pdonahue.com/
ICQ: 1624723   Phone: 517-204-6047