<DKIM> python in offlineimaprc
Nicolas Sebrecht
nicolas.s-dev at laposte.net
Sun Aug 19 17:58:00 BST 2018
On Sun, Aug 19, 2018 at 02:17:07PM +0000, J. Tull wrote:
> this becomes in offlineimap rc file like this:
>
> folderfilter = lambda folder: folder in \
> [ ??my_dict[item_][0]?? for item_ in %(my_dict)s ]
# pythonfile:
ALL_ACCOUNTS_FOLDERFILTER_DICT = {
'account_a': ['one', 'two'],
'account_b': ['three', 'four'],
}
def get_filtered_folders(account_key_name):
return ALL_ACCOUNTS_FOLDERFILTER_DICT[account_key_name]
# offlineimaprc
folderfilter = get_filtered_folders('account_a')
--
Nicolas Sebrecht
More information about the OfflineIMAP-project
mailing list