From 550d1b10c70de3ca5e0e0e696bc2975f99c4e775 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Fri, 2 Dec 2022 18:41:57 -0500 Subject: [PATCH] Tweak email config --- home-manager/linux/services/email.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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