From 8da68e6cba09e5695bccdadf783d996267551923 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 12 Mar 2022 12:42:05 -0300 Subject: Initial migration to maildrop --- mailfilter.dot.link | 17 +++++++++++++++++ procmailrc.dot.link | 20 ++++++++++++++------ 2 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 mailfilter.dot.link 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 -- cgit v1.2.3