From 3fb51cbd859855fb5ef4e3c66fb06ae4d89825fa Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 6 Apr 2023 21:58:17 -0300 Subject: Fix: mailfilter: process custom recipes after anti-spam rules --- mailfilter.dot.link | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'mailfilter.dot.link') 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 + } +} -- cgit v1.2.3