Tweak email config

This commit is contained in:
Nathan McCarty 2022-12-02 18:41:57 -05:00
parent 7c7d34d19b
commit 550d1b10c7
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 5 additions and 2 deletions

View File

@ -71,8 +71,11 @@ with lib; {
};
mbsync = {
enable = true;
create = "maildir";
create = "both";
remove = "both";
expunge = "both";
patterns =
[ "INBOX" "Folders/*" "Sent" "Drafts" "Spam" "Trash" "Archive" ];
};
msmtp = { enable = true; };
};
@ -84,7 +87,7 @@ with lib; {
programs.mbsync = { enable = true; };
services.mbsync = {
enable = true;
frequency = "*:0/1";
frequency = "*:0/5";
# Index manually with mu if we don't have emacs setup, but if we have the emacs service setup,
# run through emacsclient, as it will have the lock
postExec = if config.nathan.programs.emacs.service then