From 5250dc6adab5961561ceec808b5bba778beecc83 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 20 Jan 2023 17:05:16 -0500 Subject: setup afew MailMover (i think) Change-Id: Ia9b38360f359f1c7234fc894fbfc8d97d426ce45 --- lib/email.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/email.nix') diff --git a/lib/email.nix b/lib/email.nix index e874dd6..7f477e3 100644 --- a/lib/email.nix +++ b/lib/email.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: let gpgid = "D09299626FA78AF8"; @@ -48,9 +48,13 @@ in programs = { notmuch = { enable = true; - new.tags = [ "new" ]; + new.tags = [ "unread" "inbox" ]; hooks = { - postNew = "${pkgs.afew}/bin/afew -tn && ${pkgs.afew}/bin/afew -t tag:inbox"; + postNew = lib.strings.concatStringsSep " && " [ + "${pkgs.afew}/bin/afew --tag --new" + "${pkgs.afew}/bin/afew --tag tag:inbox" + "${pkgs.afew}/bin/afew --move-mail" + ]; }; extraConfig = { search = { -- cgit v1.2.3