From 3e8d995221f3a6b69c265f92db6485e8cc92490b Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 6 Mar 2020 00:11:36 +0800 Subject: [PATCH] mail-fetcher: add some more rules --- configs/workhorse/mail-fetcher.nix | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/configs/workhorse/mail-fetcher.nix b/configs/workhorse/mail-fetcher.nix index 007d53a..e175e11 100644 --- a/configs/workhorse/mail-fetcher.nix +++ b/configs/workhorse/mail-fetcher.nix @@ -388,6 +388,10 @@ query = "from:landr.com"; tags = [ "+landr" "+music" ]; } + { + query = "tag:landr and tag:billing"; + tags = [ "+billing" ]; + } { query = "from:codepen.io"; tags = [ "+junk" "-unread" "-inbox" ]; @@ -564,16 +568,20 @@ query = "from:limebike.com AND (subject:Funds OR subject:Receipt)"; tags = [ "-inbox" "-unread" "+billing" "+limebike" ]; } - { - query = "from:hetzner.com OR from:hetzner.de"; - tags = [ "+hetzner" ]; - } { query = "from:freemusicarchive.org"; tags = [ "+FMA" ]; } { - query = "from:namecheap.com"; + query = "from:namecheap.com and subject:auto-renewal"; + tags = [ "+namecheap" "+billing" ]; + } + { + query = "from:namecheap.com and subject:order"; + tags = [ "+namecheap" "+billing" ]; + } + { + query = "tag:namecheap.com and tag:billing and body:gaykraft.com"; tags = [ "+namecheap" "+billing" ]; } { @@ -654,12 +662,19 @@ query = "from:amazon.de OR from:amazon.com AND NOT to:renoise.com"; tags = [ "+shop" "+amazon" "+billing" ]; } + { + query = "from:hetzner.com OR from:hetzner.de"; + tags = [ "+hetzner" ]; + } { query = "to:renoise.com AND NOT ( from:renoise.com OR from:root OR from:hetzner.com OR from:hetzner.de OR from:amazon.com OR from:gmail.com )"; tags = [ "-inbox" "-unread" "+junk" "+renoise" ]; } - + { + query = "tag:hetzner and subject:Invoice"; + tags = [ "+billing" ]; + } # final rules to make imap sync stuff easier # there can only be one output folder tag, and theses rules are prioritized {