aboutsummaryrefslogtreecommitdiff
path: root/procmailrc.dot.link
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-27 15:32:16 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-27 15:32:16 -0200
commitea66ac565d4496a9444880d84d5e7591fada275b (patch)
tree858e7b921487cfdff49a690acc951d9d65ebdc8f /procmailrc.dot.link
downloadmail-ea66ac565d4496a9444880d84d5e7591fada275b.tar.gz
mail-ea66ac565d4496a9444880d84d5e7591fada275b.tar.bz2
Initial import
Diffstat (limited to 'procmailrc.dot.link')
-rw-r--r--procmailrc.dot.link65
1 files changed, 65 insertions, 0 deletions
diff --git a/procmailrc.dot.link b/procmailrc.dot.link
new file mode 100644
index 0000000..95129a9
--- /dev/null
+++ b/procmailrc.dot.link
@@ -0,0 +1,65 @@
+#
+# Procmail rules
+#
+
+MAILDIR=$HOME/mail
+LOGFILE=$HOME/temp/misc/procmaillog
+LOGABSTRACT=no
+VERBOSE=off
+FORMAIL=/usr/bin/formail
+NL="
+"
+##recipe lines begin with :0
+##dont put comments on recipe lines
+##disable a recipe with the false condition !
+##condition lines begin with * and regex is your friend
+##conditions are anded and everything after * is fed straight into egrep
+##one action line follows the conditions, in this case it is a mailbox name
+
+#
+# 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
+
+# Custom recipes
+INCLUDERC=$HOME/.custom/procmailrc
+
+# 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
+
+:0:
+*^Subject:.*(SPAM)
+INBOX.Trash/new
+
+:0:
+*^X-Bogosity:.*Yes
+INBOX.Trash/new
+
+################################
+# Last rule: mail that gets #
+# this far goes in default box #
+################################
+:0
+* .*
+INBOX/new