diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-18 03:43:48 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-18 03:47:06 +0530 |
| commit | d87a209b9efd2e32827aca20c66af7f94ce9e6c1 (patch) | |
| tree | 53ba78ccd7d29840994eb1213a561a53cf6c5ecb /modules/communication/neomutt/lib.nix | |
| parent | 8ad26b8900fdef35a884df7673a90dea054e721a (diff) | |
| download | home-manager-config-d87a209b9efd2e32827aca20c66af7f94ce9e6c1.tar.gz home-manager-config-d87a209b9efd2e32827aca20c66af7f94ce9e6c1.zip | |
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.
Diffstat (limited to 'modules/communication/neomutt/lib.nix')
| -rw-r--r-- | modules/communication/neomutt/lib.nix | 20 |
1 files changed, 20 insertions, 0 deletions
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"; + }; + }; +} |
