Add mailfilter for Nolt notifications
This commit is contained in:
@@ -6,11 +6,16 @@ MAILDIR="$HOME/users/lukas" # default Maildir
|
|||||||
|
|
||||||
if ( $MAILDIR =~ /\/lukas$/ )
|
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/.Kirby2"; or maildirmake "$MAILDIR/.Kirby2"`
|
||||||
`test -d "$MAILDIR/.Kirby3"; or maildirmake "$MAILDIR/.Kirby3"`
|
`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 )
|
if( /^List-Archive: https:\/\/github.com\/getkirby-v2\//:h )
|
||||||
{
|
{
|
||||||
MAILDIR="$MAILDIR/.Kirby2"
|
MAILDIR="$MAILDIR/.Kirby2"
|
||||||
|
|||||||
Reference in New Issue
Block a user