From a056c2777e1021dfdcc26551a101f5d3ffd797a4 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Sat, 5 Nov 2016 23:07:34 +0100 Subject: [PATCH] offlineimap.conf: mbnames: provide sample for the folderfilter option Signed-off-by: Nicolas Sebrecht --- offlineimap.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/offlineimap.conf b/offlineimap.conf index 1cc853a..cf2776c 100644 --- a/offlineimap.conf +++ b/offlineimap.conf @@ -220,6 +220,19 @@ accounts = Test # This filter can be used only to further restrict mbnames to a subset of # folders that pass the account's folderfilter. # +# E.g.: with mbnames_folderfilter defined like this in the python file: +# +# def mbnames_folderfilter(accountname, foldername): +# allowed = {'myaccount': ['folderA', 'folderB']} +# if accountname in allowed: +# return foldername in allowed[accountname] +# return False +# +#folderfilter = mbnames_folderfilter + + +# This option stands in the [mbnames] section. +# # You can customize the order in which mailbox names are listed in the generated # file by specifying a sort_keyfunc, which takes a single dict argument # containing keys 'accountname' and 'foldername'. This function will be called