From fa8cb6b78842585e73b77dad6902148f6747c652 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 1 May 2025 13:16:40 -0400 Subject: Sync imap flags with mbsync Otherwise the unread flag doesn't get synced upstream. This should be the default! Also, I need to remember that `//` is not a deep merge, I was basically overwritting my `common.mbsync` settings with the `mbsync.enable` in each account block. --- lib/email.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/email.nix b/lib/email.nix index 2867a2c..c640120 100644 --- a/lib/email.nix +++ b/lib/email.nix @@ -22,10 +22,14 @@ let encryptByDefault = false; }; mbsync = { + enable = true; create = "both"; expunge = "both"; remove = "both"; - extraConfig.channel = { MaxMessages = 1000; }; + extraConfig.channel = { + # MaxMessages = 1000; + Sync = ["All" "Flags"]; + }; }; passwordCommand = "${pkgs.pass}/bin/pass ben@bensima.com"; msmtp.enable = true; @@ -42,7 +46,6 @@ in realName = "Ben Sima"; address = "ben@bensima.com"; userName = "ben@bensima.com"; - mbsync.enable = true; }; "dev@bensima.com" = common // { -- cgit v1.2.3