Example 2: JustinLeitgeb's setup

I based my .procmailrc on the file above. However, I don't trust my procmail coding skills, so I had procmail create a log file of the messages that it receives, as well as a backup copy of each message for testing purposes. I also decided that the "Sender:" field is the best one to use for the lists that I receive, so I filter on this field. I took code in my .procmailrc from the "procmailex" man page, which I highly recommend.

I created the directory "log" in my home directory for the log file before putting the .procmailrc in place. I also created the folders to which mail would be filtered in thunderbird, although I'm not absolutely sure if this step is necessary.

Note that you should probably comment out the "backup" section once you're sure that your code works in order to save space. You will also have to rotate or truncate the procmail log file manually, or write a script for cron to use.

## JustinLeitgeb .procmailrc
## Modified Sun Apr 15 01:41:34 EDT 2007

# We use a maildir here at hcoop.net
MAILDIR=$HOME/Maildir
DEFAULT=$MAILDIR/

# Create a log file
LOGFILE=$HOME/.logs/mail/procmail.log

# Make a backup of all mail that we'll wipe out when we're sure that 
# filtering is working correctly.
:0 c    
.backup/

## Filter all of the mailing lists that we get into different
## folders.

# CFP (call for papers) list
:0
* ^Sender.*owner-cfp@lists.sas.upenn.edu
.lists.CFP/

# plone-users
:0
* ^Sender.*plone-users-bounces@lists.sourceforge.net
.lists.plone-users/

# nflug
:0
* ^Sender.*nflug-bounces@nflug.org
.lists.nflug/


CategoryNeedsWork CategoryMemberManual