Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

procmail and duplicate mail



> 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).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org