Mailfilters: Only match regexes in headers

master
Lukas Bestle 4 years ago
parent 6f00178720
commit 864c7c3ec8
Signed by: lukas
GPG Key ID: 692037D104550FC9

@ -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

@ -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"
}

Loading…
Cancel
Save