.procmailrc

[code]
#
# Carlos Macasaet's .procmailrc
# http://www.carlos-m.net/
#

#
# Common Directories
#
HOME = /home/$USER
MAILDIR = $HOME/Mail # MH... represent
LOGDIR = $HOME/var/log
PMDIR = $HOME/etc/procmail # recipes stored here
NMHDIR = /usr/lib/nmh

#
# Common Programs
#
RCVSTORE = $NMHDIR/rcvstore # stores MH messages
RCVTTY = $NMHDIR/rcvtty # new mail notification

#
# Logging Options
#
LOGFILE=$LOGDIR/procmail
#VERBOSE=yes # enable for debugging
LOGABSTRACT=all

# filter out duplicates
:0 Whc: msgid.lock
| /usr/bin/formail -D 65536 $LOGDIR/msgid.dat
:0 a:
/dev/null

#
# personal sorting files
#

INCLUDERC=$PMDIR/pager.rc # forward certain mail to my pager
INCLUDERC=$PMDIR/ntrs.rc
INCLUDERC=$PMDIR/cron.rc
INCLUDERC=$PMDIR/logwatch.rc

INCLUDERC=$PMDIR/lists/acm-members.rc
INCLUDERC=$PMDIR/lists/acm-officers.rc
INCLUDERC=$PMDIR/lists/acm-acm.rc
INCLUDERC=$PMDIR/lists/acm-linux.rc
INCLUDERC=$PMDIR/lists/bugtraq.rc
INCLUDERC=$PMDIR/lists/cryptogram.rc
INCLUDERC=$PMDIR/lists/Redhat.rc
INCLUDERC=$PMDIR/lists/mailbits.rc
INCLUDERC=$PMDIR/lists/jhu_street_hockey.rc

INCLUDERC=$PMDIR/jhu.rc
INCLUDERC=$PMDIR/jhu_cs.rc

INCLUDERC=$PMDIR/friends.rc
INCLUDERC=$PMDIR/family.rc

# these announcement mailing lists sometimes get sorted as spam
INCLUDERC=$PMDIR/announcements.rc

# filter out spam
INCLUDERC=$PMDIR/spam.rc

# these mailing lists tend to receive spam
INCLUDERC=$PMDIR/lists/acm-admin.rc
INCLUDERC=$PMDIR/lists/OpenBSD.rc

# default folder
:0
{
:0 c: inbox.lock
| $RCVSTORE +inbox
:0
| $RCVTTY -nobell
:0 e # RCVTTY doesn't always return 0
/dev/null
}
[/code]

Leave a Reply