diff --git a/home/mail/default.nix b/home/mail/default.nix index b763116..08d67e6 100644 --- a/home/mail/default.nix +++ b/home/mail/default.nix @@ -104,6 +104,10 @@ in { services.imapnotify.enable = true; programs.notmuch = { enable = true; + hooks.postNew = '' + # remove inbox tag from moved messages + notmuch tag -inbox not 'folder:/.*\/Inbox/' + ''; }; programs.neomutt = { @@ -230,6 +234,12 @@ in { key = "zA"; action = "collapse-all"; } + + /* search with notmuch */ + { map = [ "pager" "index" ]; + key = "S"; + action = "vfolder-from-query"; + } ]; }; programs.msmtp.enable = true;