From d87a209b9efd2e32827aca20c66af7f94ce9e6c1 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Fri, 18 Sep 2026 03:43:48 +0530 Subject: fix(communication/neomutt): fixed mbsync syncing with different modes Now there are two channels created for every account quick and full variants, quick only gives new emails and full does the whole sync. neomutt-sync can now be told which channel to use to sync with. --- modules/communication/neomutt/lib.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/communication/neomutt/lib.nix (limited to 'modules/communication/neomutt/lib.nix') diff --git a/modules/communication/neomutt/lib.nix b/modules/communication/neomutt/lib.nix new file mode 100644 index 0000000..253ada8 --- /dev/null +++ b/modules/communication/neomutt/lib.nix @@ -0,0 +1,20 @@ +# some basic common utility functions for neomutt +{ lib, ... }: +{ + mbsyncNamesFromName = + name: + let + channelNameBase = lib.replaceStrings [ "@" "." ] [ "-" "_" ] name; + in + { + base = channelNameBase; + channels = { + full = "${channelNameBase}-full"; + quick = "${channelNameBase}-quick"; + }; + servers = { + remote = "${channelNameBase}-remote"; + local = "${channelNameBase}-local"; + }; + }; +} -- cgit v1.2.3