1
0
Fork 0

make notmuch config more robust

This commit is contained in:
Malte Brandy 2021-12-22 01:35:22 +01:00
parent 8802d17cc9
commit e89be81807

View file

@ -52,7 +52,7 @@ in
msmtp.enable = true;
mbsync.enable = true;
notmuch = {
enable = config.accounts.email.accounts != { };
enable = pkgs.withSecrets;
hooks.postInsert = ''
${pkgs.notmuch}/bin/notmuch tag +deleted -- "folder:/Trash/ (not tag:deleted)"
${pkgs.notmuch}/bin/notmuch tag -deleted -- "(not folder:/Trash/) tag:deleted"