diff --git a/home-manager/linux/services/email.nix b/home-manager/linux/services/email.nix index 64449e3..6678523 100644 --- a/home-manager/linux/services/email.nix +++ b/home-manager/linux/services/email.nix @@ -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