Commit 5c080acf authored by Daniel Stan's avatar Daniel Stan

procmail: ajout spamassassin

parent 60c7fa39
......@@ -3,10 +3,39 @@ LOGFILE=$HOME/procmail.log
#DEFAULT=$MAILDIR/.INBOX/
DEFAULT=$MAILDIR/
# Généralités
# Généralités
INBOX=${DEFAULT}.INBOX
LISTDIR=$MAILDIR/MLs
# SA
:0fw: spamassassin.lock
* < 256000
| /usr/bin/spamassassin
# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
$INBOX.almost-certainly-spam/
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
$INBOX.probably-spam/
# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped. This will re-add it.
:0
* ^^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "
:0 fhw
| sed -e '1s/^/F/'
}
# Pas vraiment une ML
:0
* ^X-Phabricator-Sent-This-Message: Yes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment