commit 0662df211ce03b7c985f6499c60729b18203fc87 parent 5bd9edae40aaf8b9a291c97d082b28b10c814f0f Author: Vincent Demeester <vincent@sbr.pm> Date: Sun, 12 May 2019 18:40:25 +0200 profiles.mails: fix notmuch re-tag commands Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | modules/profiles/mails.nix | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/profiles/mails.nix b/modules/profiles/mails.nix @@ -105,9 +105,10 @@ xdg.configFile."mbsync/postExec" = { ${pkgs.notmuch}/bin/notmuch new ${pkgs.afew}/bin/afew -C ${config.xdg.configHome}/notmuch/notmuchrc --tag --new -v - ${pkgs.notmuch}/bin/notmuch tag -inbox tag:inbox - #${pkgs.notmuch}/bin/notmuch tag -Inbox "NOT folder:Inbox and tag:Inbox" - + # Remove inbox (lower-case) + ${pkgs.notmuch}/bin/notmuch tag -inbox -- tag:inbox + # Remove Inbox tagged message that are not in an Inbox + ${pkgs.notmuch} tag -Inbox -- not folder:redhat/Inbox and not folder:perso/Inbox and tag:Inbox ${pkgs.libnotify}/bin/notify-send "Mails synced 📬" ''; executable = true;