summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-05-01 13:16:40 -0400
committerBen Sima <ben@bensima.com>2025-05-01 13:16:40 -0400
commitfa8cb6b78842585e73b77dad6902148f6747c652 (patch)
tree44fb5086d85ce33ec7737292f6eeeb9e6675647e /lib
parentc5bdf15630f05ebb39107668dc075e6c149e1db1 (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/email.nix7
1 files changed, 5 insertions, 2 deletions
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 // {