From bbb210ec4f5f5d4c002e127f49925645ccee371e Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Fri, 28 Jul 2023 18:49:24 -0400 Subject: [PATCH] enable msmtp and ignore mbsyncstate files --- modules/common/mail/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/common/mail/default.nix b/modules/common/mail/default.nix index 9482739..c246716 100644 --- a/modules/common/mail/default.nix +++ b/modules/common/mail/default.nix @@ -33,7 +33,11 @@ postExec = "${pkgs.notmuch}/bin/notmuch new"; }; services.imapnotify.enable = pkgs.stdenv.isLinux; - programs.notmuch.enable = true; + programs.msmtp.enable = true; + programs.notmuch = { + enable = true; + new.ignore = [ ".mbsyncstate.lock" ".mbsyncstate.journal" ]; + }; accounts.email = { maildirBasePath = "${config.homePath}/mail"; accounts = { @@ -74,6 +78,7 @@ CopyArrivalDate = "yes"; # Sync time of original message }; }; + msmtp.enable = true; notmuch.enable = true; passwordCommand = "${pkgs.age}/bin/age --decrypt --identity ${config.identityFile} ${