From c62cb82e653c98eb49d9da2809d3ce12514877c7 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Sat, 27 Jun 2020 02:18:50 +0200 Subject: [PATCH] mbsync: per-account groups can have additional patterns Gave the `accounts.email.accounts..mbsync.groups..channel.` set a `patterns` option, which will allow for greater customization and filtering of the master maildir to sync to the slave maildir. --- modules/programs/mbsync-accounts.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/programs/mbsync-accounts.nix b/modules/programs/mbsync-accounts.nix index 3d3a4489..3b26455d 100644 --- a/modules/programs/mbsync-accounts.nix +++ b/modules/programs/mbsync-accounts.nix @@ -76,6 +76,19 @@ let INBOX. ''; }; + + patterns = mkOption { + type = types.listOf types.str; + default = [ ]; + example = [ "INBOX" ]; + description = '' + Instead of synchronizing just the mailboxes that + match the masterPattern, use it as a prefix which is + not matched against the patterns, and is not affected by mailbox list + overrides. + ''; + }; + }; };