Re: <DKIM> python in offlineimaprc

Nicolas Sebrecht <[email protected]>
Newsgroups gmane.mail.imap.offlineimap.general
Message-ID <[email protected]>
On Sun, Aug 19, 2018 at 07:49:18PM +0200, Nicolas Sebrecht wrote:

> # pythonfile
> 
> FOLDERFILTER_DICT = {
>     'account_a': ['one', 'two'],
>     'account_b': ['three', 'four'],
> }
> 
> 
> def get_folderfilter_function(account_key_name):
>     def folderfilter_function(folder):
>         return folder in FOLDERFILTER_DICT[account_key_name]
>     return folderfilter_function
> 
# offlineimaprc

folderfilter = get_folderfilter_function('account_a')

-- 
Nicolas Sebrecht

_______________________________________________
OfflineIMAP-project mailing list: [email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/offlineimap-project

OfflineIMAP homepages:
- https://github.com/OfflineIMAP
- http://offlineimap.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.