A few days ago, I tried my hand at doing a procmailrc... I wanted to see what
would happen with a few of the mailing lists that I subscribe to, so I set up
the recipies for a couple of mailing list. I went to receive my mail, and not
only did the recipies not work, but all of my mail vanished! Any help would be
greatly appreciated...
BEGIN $HOME/.procmailrc
==========================
MAILDIR=$HOME
PROCHOME=$HOME/.procmail
LOGABSTRACT=on
SHELL=/bin/sh
LOGFILE=$PROCHOME/log
MYMAIL=$HOME/Mail
LISTS=$MYMAIL/lists
DEFAULT=$MYMAIL/inbox/.
ORGMAIL=/var/spool/mail/kcc
PATH=/usr/bin:$HOME/bin:/usr/bin/mh:/usr/local/bin
MYADDRESS=kcc(_at_)canda(_dot_)los-angeles(_dot_)ca(_dot_)us
MYXLOOP="X-Loop: $MYADDRESS"
# Toggle these for various effects
# On means that I am performing vacation stuff
# off or empty means that I am not
VACATION
DUPFILE=$PROCHOME/dups
CACHEFILE=$HOME/.cache
CACHESIZE=5000
GARBAGE=/dev/null
# First we grab the Message-Id:
:0 cW: $CACHEFILE.lock
|formail -D $CACHESIZE $CACHEFILE
# This recipe should kill something if its Message-Id is in the
# cachefile
:0 a:
$DUPFILE
# Kill those annoying things that kill spams
:0 H
* ^Subject: *cmsg cancel.*
$GARBAGE
info=$1
:0
* info ?? usenet
/dev/null
:0 HE
* ^TOredhat-digest(_at_)redhat(_dot_)com
$LISTS/linux-redhat-digest/.
:0 HE
* ^TOredhat-list(_at_)redhat(_dot_)com
$LISTS/linux-redhat-list/.
:0 HE
* ^TOprocmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de
$LISTS/procmail/.
:0 HE
* ^TOprocmail-d(_at_)informatik(_dot_)rwth-aachen(_dot_)de
$LISTS/procmail-d/.
:0 HE
* ^TOowner-linux-admin-outgoing(_at_)vger(_dot_)rutgers(_dot_)edu
* Fromowner-linux-admin-outgoing(_at_)vger(_dot_)rutgers(_dot_)edu
$LISTS/linux-admin/.
:0
* forward ?? .
! -oi kcc+$forward(_at_)canda(_dot_)los-angeles(_dot_)ca(_dot_)us
#############################################################################
# Personal Mail
# Process mail from friends
#############################################################################
##}}}
--
Kim C. Callis - kcc(_at_)canda(_dot_)los-angeles(_dot_)ca(_dot_)us
Callis & Associates
***********************************************************
* When It Absolutely, Positively *
* Has To Be Destroyed Overnight... *
* 1-800-MARINES *
***********************************************************