procmail
[Top] [All Lists]

Help with redundancy

2007-08-02 04:46:22
Please tell me if any of this is redundant and/or if I can combine some
of these.

I have emails in the trash folder that don't correspond to any emails or
host in my files

# Next may be needed if programs are invoked from your procmailrc, but
# it should not be needed for the simple sorting recipes on this page.
# Details in Check Your $SHELL and $PATH in Troubleshooting below.
## SHELL=/bin/sh

# Directory for storing procmail configuration and log files
# You can name this environment variable anything you like
# (for example PROCMAILDIR) or, if you prefer, don't set it
# (but then don't refer to it!)
PMDIR=$HOME/.procmail

# LOGFILE should be specified ASAP so everything below it is logged
# Put ## before LOGFILE if you want no logging (not recommended)
LOGFILE=$PMDIR/killfile

# To insert a blank line between each message's log entry,
# uncomment next two lines (this is helpful for debugging)
## LOG="
## "

# Set to yes when debugging; default is no
VERBOSE=yes


# Replace $HOME/Msgs with your mailbox directory
# Mutt and elm use $HOME/Mail
# Pine uses $HOME/mail
# Netscape Messenger uses $HOME/nsmail
# Some NNTP clients, such as slrn & nn, use $HOME/News
# Mailboxes in maildir format are often put in $HOME/Maildir
#
# NOTE: Upon reading the next line, Procmail does a chdir to $MAILDIR
#       and relative paths are relative to $MAILDIR
MAILDIR=$HOME/mail       # Make sure this directory exists!
#REC=`formail -x Received:`
#FGREP=/bin/fgrep

# Blacklist. The file ~/Mail/blacklist contains a list of addresses (one
per
# line) that are matched against the sender. If there is a match, then
# the sender is blacklisted and we send the mail to the bit bucket
#

# I like to just use my alias/addressbook as my whitelist

:0Wf
* ^From: .*(my different email addresses)
|formail -I"Status: RO"


:0
* ^Subject.*(make your pick for the nba)
|/path/to/draft.cgi `formail -rtzxTo`

:0:
*^(From|Subject).*(daemon|read:)
daemons

:0c:
*^From.*(my different email addresses)
sent-mail

:0c:
today

PHONE=$HOME/.phone
FRIENDLIST=$HOME/.friends
BLACKLIST=$HOME/.killfile
TRASH=$HOME/.trash
BLACK=$HOME/.kills
INCLUDERC=$PMDIR/rc.groups

:0c:
* ^From:.*\/[A-Za-z0-9_(_dot_)+-]+(_at_)[A-Za-z0-9_(_dot_)+-]+
* ? grep -i "$MATCH" $FRIENDLIST
friends

INCLUDERC=$PMDIR/rc.friends
#INCLUDERC=$PMDIR/rc.phone
INCLUDERC=$PMDIR/rc.filters
#INCLUDERC=$PMDIR/rc.share
INCLUDERC=$PMDIR/rc.trash

:0fw: spamassassin.lock
* < 256000
| spamassassin

:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
almost-certainly-spam

:0:
* ^X-Spam-Status: Yes
spam

:0:
* ^From:.*\/[A-Za-z0-9_(_dot_)+-]+(_at_)[A-Za-z0-9_(_dot_)+-]+
* ? grep -i "$MATCH" $BLACKLIST
trash

:0:
*$ ? test -s $BLACKLIST
* ? (formail -x From: -x Reply-To: -x Sender: -x From | fgrep -iqf
$TRASH)
trash

:0:
* ^From:(_dot_)*(_at_)\/[a-z0-9_.+-]+
* ? grep -i "$MATCH" $BLACK
trash

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>