Mailfilters: Only match regexes in headers
This commit is contained in:
@@ -26,7 +26,7 @@ if ( $EXT )
|
|||||||
}
|
}
|
||||||
|
|
||||||
# check if the spam score is higher than our threshold
|
# 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
|
# 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/.Kirby2"; or maildirmake "$MAILDIR/.Kirby2"`
|
||||||
`test -d "$MAILDIR/.Kirby3"; or maildirmake "$MAILDIR/.Kirby3"`
|
`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"
|
MAILDIR="$MAILDIR/.Kirby2"
|
||||||
}
|
}
|
||||||
|
|
||||||
if( /^List-Archive: https:\/\/github.com\/getkirby\// )
|
if( /^List-Archive: https:\/\/github.com\/getkirby\//:h )
|
||||||
{
|
{
|
||||||
MAILDIR="$MAILDIR/.Kirby3"
|
MAILDIR="$MAILDIR/.Kirby3"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user