summaryrefslogtreecommitdiff
path: root/lib/email.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/email.nix')
-rw-r--r--lib/email.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/email.nix b/lib/email.nix
index 17ec44d..449e3d8 100644
--- a/lib/email.nix
+++ b/lib/email.nix
@@ -69,7 +69,9 @@ in
notmuch = {
enable = true;
new.tags = [ "new" ];
- hooks = {};
+ hooks = {
+ postNew = "${pkgs.afew}/bin/afew -tn && ${pkgs.afew}/bin/afew -t tag:inbox";
+ };
extraConfig = {
search = {
exclude_tags = "deleted;spam;";