diff options
author | Ben Sima <ben@bensima.com> | 2025-05-01 13:16:40 -0400 |
---|---|---|
committer | Ben Sima <ben@bensima.com> | 2025-05-01 13:16:40 -0400 |
commit | fa8cb6b78842585e73b77dad6902148f6747c652 (patch) | |
tree | 44fb5086d85ce33ec7737292f6eeeb9e6675647e /lib | |
parent | c5bdf15630f05ebb39107668dc075e6c149e1db1 (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.nix | 7 |
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 // { |