# per # maximum verbosity #VERBOSE=on # tell procmail where mail will be stored #MAILDIR=$HOME/Maildir/ # logfile name #LOGFILE=$HOME/procmail.log # run the mail straight through the spamassassin program, # which will add some headers to it, depending on its spam # status :0fw * < 256000 #| spamassassin -P | spamc # 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/' } # 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.) # 10 or higher #:0: #* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\* #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 #probably-spam