aboutsummaryrefslogtreecommitdiff
path: root/modules/mutt/procmailrc.dot.link
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-05-26 14:06:57 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-05-26 14:06:57 -0300
commit4c8e98a67b3840792a850ebb942d87d4f864380b (patch)
tree0c5e07805be6b379e01cfeec5612412022f102e5 /modules/mutt/procmailrc.dot.link
parentba34d7c225a7b48bb9e0211aa1366e9207a23744 (diff)
downloaddotfiles-4c8e98a67b3840792a850ebb942d87d4f864380b.tar.gz
dotfiles-4c8e98a67b3840792a850ebb942d87d4f864380b.tar.bz2
More anti-spam rules
Diffstat (limited to 'modules/mutt/procmailrc.dot.link')
-rw-r--r--modules/mutt/procmailrc.dot.link21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/mutt/procmailrc.dot.link b/modules/mutt/procmailrc.dot.link
index f07c011..3cee191 100644
--- a/modules/mutt/procmailrc.dot.link
+++ b/modules/mutt/procmailrc.dot.link
@@ -20,6 +20,27 @@ NL="
# SPAM handling
#
+# Send mail through bogofilter
+# See http://www.exstrom.com/journal/comp/bogofilter.html
+# http://www.linuxjournal.com/article/6439
+# http://bogofilter.sourceforge.net/faq.shtml
+:0fw
+| /usr/bin/bogofilter -uep
+
+# Put mail bogofilter deems as spam in spam folder
+:0:
+* ^X-Bogosity: Spam, tests=bogofilter
+INBOX.Trash/new
+
+# Put mail bogofilter deems as unsure in spam folder
+:0:
+* ^X-Bogosity: Unsure, tests=bogofilter
+INBOX.Trash/new
+
+:0:
+*^X-Spam-Level: ******
+INBOX.Trash/new
+
:0:
* ^X-Spam-Flag: YES
INBOX.Trash/new