aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mailfilter.dot.link17
-rw-r--r--procmailrc.dot.link20
2 files changed, 31 insertions, 6 deletions
diff --git a/mailfilter.dot.link b/mailfilter.dot.link
new file mode 100644
index 0000000..7e80347
--- /dev/null
+++ b/mailfilter.dot.link
@@ -0,0 +1,17 @@
+#
+# Maildrop rules
+#
+# See http://www.wonkity.com/~wblock/docs/html/maildrop.html
+#
+# regex flags, used after the regex: /something/:b
+# :h - header
+# :b - body
+# :D - distinguish between upper and lower case (default is to ignore case)
+
+TYPE="maildir"
+DEFAULT="$HOME/mail/INBOX"
+
+logfile "$HOME/temp/log/maildrop"
+
+# Custom recipes
+include $HOME/.custom/mailfilter
diff --git a/procmailrc.dot.link b/procmailrc.dot.link
index 7b6f310..333d753 100644
--- a/procmailrc.dot.link
+++ b/procmailrc.dot.link
@@ -1,6 +1,20 @@
#
# Procmail rules
#
+# * 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 (for example a mailbox name)
+#
+# Procmail is being deprecated. For more information, check
+#
+# * https://lwn.net/Articles/416901/
+# * http://www.wonkity.com/~wblock/docs/html/maildrop.html
+# * https://www.courier-mta.org/maildrop/maildrop.html
+# * https://www.courier-mta.org/maildrop/maildropfilter.html#include
+# * https://gitlab.torproject.org/tpo/tpa/team/-/issues/40639
MAILDIR=$HOME/mail
LOGFILE=$HOME/temp/log/procmail
@@ -9,12 +23,6 @@ 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