Compare commits

..
2 Commits
Author SHA1 Message Date
lukas 633d9b0889 Add mailfilter for Nolt notifications 2020-10-08 22:07:00 +02:00
lukas 864c7c3ec8 Mailfilters: Only match regexes in headers 2020-10-08 22:06:51 +02:00
2 changed files with 9 additions and 4 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
+8 -3
View File
@@ -6,17 +6,22 @@ MAILDIR="$HOME/users/lukas" # default Maildir
if ( $MAILDIR =~ /\/lukas$/ )
{
# deliver GitHub notifications to the Kirby folders
# deliver Nolt and GitHub notifications to the Kirby folders
`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( /^From: .*? <notifications@nolt\.io>$/:h)
{
MAILDIR="$MAILDIR/.Kirby3"
}
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"
}