You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
728 B
Django/Jinja

# config
MOVESCORE=5 # minimum spam score to move the email to the Spam folder
MAILDIR="$HOME/users/lukas" # default Maildir
{% include '_common.j2' %}
if ( $MAILDIR =~ /\/lukas$/ )
{
# 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( /^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\//:h )
{
MAILDIR="$MAILDIR/.Kirby3"
}
}
to "$MAILDIR"
# 'to' implies 'exit'