Mailfilters: Only match regexes in headers

This commit is contained in:
2020-10-08 22:06:51 +02:00
parent 6f00178720
commit 864c7c3ec8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ if ( $EXT )
}
# check if the spam score is higher than our threshold
if ( /^X-Rspamd-Bar: \+{$MOVESCORE,}$/ )
if ( /^X-Rspamd-Bar: \+{$MOVESCORE,}$/:h )
{
# yes, move to Spam folder and exit
+2 -2
View File
@@ -11,12 +11,12 @@ if ( $MAILDIR =~ /\/lukas$/ )
`test -d "$MAILDIR/.Kirby2"; or maildirmake "$MAILDIR/.Kirby2"`
`test -d "$MAILDIR/.Kirby3"; or maildirmake "$MAILDIR/.Kirby3"`
if( /^List-Archive: https:\/\/github.com\/getkirby-v2\// )
if( /^List-Archive: https:\/\/github.com\/getkirby-v2\//:h )
{
MAILDIR="$MAILDIR/.Kirby2"
}
if( /^List-Archive: https:\/\/github.com\/getkirby\// )
if( /^List-Archive: https:\/\/github.com\/getkirby\//:h )
{
MAILDIR="$MAILDIR/.Kirby3"
}