aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-03-12 12:42:05 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-03-12 12:42:05 -0300
commit8da68e6cba09e5695bccdadf783d996267551923 (patch)
treecfe5d6ac7c643bf53d2b6886d7c8c1c8a61c5afc
parent672f2ae9f77c9d996adb2d2fb01e86cd3a1339b9 (diff)
downloadmail-8da68e6cba09e5695bccdadf783d996267551923.tar.gz
mail-8da68e6cba09e5695bccdadf783d996267551923.tar.bz2
Initial migration to maildrop
-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