procmail and duplicate mail

linuxguy at ici.net linuxguy at ici.net
Fri Feb 25 08:02:08 EST 2000


> Anyone have a simple procmail recipie for eliminating duplicate mail?
> 

What I use below works for me.  Give it a whirl and let us know.


###############################################################################
#
## $RCSfile: .procmailrc,v $
## $Revision: 1.4 $
## $Author: doerbeck $
## $Date: 1997/06/11 15:08:58 $
###############################################################################
#
############################
# Global variable settings #
############################

MAILDIR=$HOME/Mail
LOGFILE=$HOME/log/procmail
VERBOSE=on
LOGABSTRACT=all
SHELL=/bin/sh
UMASK=067
COMSAT=no
LOCKEXT=.lock

##################################
# Paths as found on mail server. #
##################################

SENDMAIL=/usr/sbin/sendmail
MHPREFIX=/usr/bin/mh
BINS=$MHPREFIX:/usr/local/bin
PATH=/bin:/usr/bin:/usr/bin/mh:/usr/lib/mh
RCVSTORE=rcvstore

###############################################################################
#
## Locate: Mails which I have already received
## Folder: dups
###############################################################################
#

        :0 Wh: msgid.lock
        | formail -D 8192 msgid.cache

        ## To stop saving mail, pipe to /dev/null

        :0 a: dups/$LOCKEXT
        | ${RCVSTORE} +dups

## Remainder of procmailrc excluded 



-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list