From: Silvio Rhatto Date: Fri, 7 Apr 2023 00:58:17 +0000 (-0300) Subject: Fix: mailfilter: process custom recipes after anti-spam rules X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3fb51cbd859855fb5ef4e3c66fb06ae4d89825fa;p=rhatto%2Fdotfiles%2Fmail.git Fix: mailfilter: process custom recipes after anti-spam rules --- diff --git a/mailfilter.dot.link b/mailfilter.dot.link index 48c9c93..6860175 100644 --- a/mailfilter.dot.link +++ b/mailfilter.dot.link @@ -24,22 +24,6 @@ DEFAULT="$BASE/INBOX" logfile "$HOME/temp/log/maildrop" -# -# Custom recipes -# - -# Test for a custom maildrop configuration -`test -r $HOME/.custom/mailfilter` - -# Includes an existing maildrop configuration -if ($RETURNCODE == 0) -{ - log "Including $HOME/.custom/mailfilter" - exception { - include $HOME/.custom/mailfilter - } -} - # # SPAM handling # @@ -72,3 +56,19 @@ if (/^Subject:.*\*\*\*SPAM\*\*\*/) if (/^X-Bogosity: Spam.*/) to $BASE/INBOX.Trash + +# +# Custom recipes +# + +# Test for a custom maildrop configuration +`test -r $HOME/.custom/mailfilter` + +# Includes an existing maildrop configuration +if ($RETURNCODE == 0) +{ + log "Including $HOME/.custom/mailfilter" + exception { + include $HOME/.custom/mailfilter + } +}