summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2023-01-20 18:30:18 -0500
committerBen Sima <ben@bsima.me>2023-01-20 18:30:18 -0500
commit784b19e8ca3364e26c658bf0fb83c3e504f123da (patch)
treed8a0dda257b7c9c9b65ba4a6565e4893a68af393 /lib
parentf8a97e23c7c3ef7eddb60819b9cffa3361a57cb4 (diff)
more mail changes
Change-Id: Ia72dbf642904505f59edc4c60422edf2765099c4
Diffstat (limited to 'lib')
-rw-r--r--lib/email.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/email.nix b/lib/email.nix
index 7f477e3..05cfd7e 100644
--- a/lib/email.nix
+++ b/lib/email.nix
@@ -48,13 +48,14 @@ in
programs = {
notmuch = {
enable = true;
- new.tags = [ "unread" "inbox" ];
+ new.tags = [ "new" ];
+ maildir.synchronizeFlags = true;
hooks = {
- postNew = lib.strings.concatStringsSep " && " [
- "${pkgs.afew}/bin/afew --tag --new"
- "${pkgs.afew}/bin/afew --tag tag:inbox"
- "${pkgs.afew}/bin/afew --move-mail"
- ];
+ postNew = ''
+ ${pkgs.afew}/bin/afew --tag --new
+ ${pkgs.afew}/bin/afew --tag tag:inbox
+ ${pkgs.afew}/bin/afew --move-mail
+ '';
};
extraConfig = {
search = {