Skip to content

Instantly share code, notes, and snippets.

@zoni
Created January 28, 2014 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoni/f9c965f571a88c3bd566 to your computer and use it in GitHub Desktop.
Save zoni/f9c965f571a88c3bd566 to your computer and use it in GitHub Desktop.
MAILDIR=$HOME/.maildir/
DEFAULT=$MAILDIR
LOGFILE=$HOME/.procmaillog
LOGABSTRACT=all
VERBOSE=off
FORMAIL=/usr/bin/formail
:0fw
# Send messages to Spamassassin only if they are less than 10 megabytes. Most spam falls well below this size and a larger size could seriously affect performance.
* < 10000000
| /usr/bin/spamc
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*
.Spam.Certain/
:0
* ^X-Spam-Status: Yes
.Spam.Unsure/
# Catch duplicates
:0 Whc: .msgid.lock
| $FORMAIL -D 16384 .msgid.cache
:0 a
.Duplicates/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment