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 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

_______________________________________________
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.