From a19190c9867b1c838a87b7fd3373fd4309666c84 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Tue, 28 Jan 2020 11:25:46 +1300 Subject: [PATCH] mail: add shortcuts and junk filter --- configs/workhorse/mail-fetcher.nix | 12 ++++++++++++ system/desktop/mail-stuff.nix | 3 +++ 2 files changed, 15 insertions(+) diff --git a/configs/workhorse/mail-fetcher.nix b/configs/workhorse/mail-fetcher.nix index 28fe147..caa188d 100644 --- a/configs/workhorse/mail-fetcher.nix +++ b/configs/workhorse/mail-fetcher.nix @@ -380,6 +380,18 @@ "from:fysitech.atlassian.net OR to:engiadina-pwa@noreply.github.com"; tags = [ "+mia" "+work" "-unread" "-inbox" ]; } + { + query = "from:turners.co.nz"; + tags = [ "+junk" "-unread" "-inbox" ]; + } + { + query = "from:codepen.io"; + tags = [ "+junk" "-unread" "-inbox" ]; + } + { + query = "from:mailings.web.de"; + tags = [ "+junk" "-unread" "-inbox" ]; + } { query = "from:circleci.com OR (from:noreply@github.com AND to:audio-overlay@googlegroups.com)"; diff --git a/system/desktop/mail-stuff.nix b/system/desktop/mail-stuff.nix index 6e024f4..a6a19ee 100644 --- a/system/desktop/mail-stuff.nix +++ b/system/desktop/mail-stuff.nix @@ -444,8 +444,11 @@ in { # notmuch bindings macro index \\\\ "" # looks up a hand made query + macro pager \\\\ "" # looks up a hand made query macro index + "+*\n" # tag as starred + macro pager + "+*\n" # tag as starred macro index - "-*\n" # tag as unstarred + macro pager - "-*\n" # tag as unstarred # keys bindings