python in offlineimaprc

"J. Tull" <[email protected]>
Newsgroups gmane.mail.imap.offlineimap.general
Message-ID <DB6PR0801MB1718A90EC9BE711FB9EC9991AD330@DB6PR0801MB1718.eurprd08.prod.outlook.com>
it seems only one python file can be specified in offlineimaprc. As i
separated the functions in different files i created one python file
in which i'm importing the necessary functions and then i'm assigning
it to 'pythonfile' variable in the rc file. But it seems that doesn't
work, i think it's due to fact that importing is done within another
python session.

I created a dict containing tuples of remote folder names and
corresponding local ones within the rc file. I'm using these
variables like this '%(my_dict)s' later in a lambda funtion for
folderfilter. The function in pure python is like this:

    folders = lambda folder: folder in \
        [ my_dict[item_][0] for item_ in my_dict ]

this becomes in offlineimap rc file like this:

    folderfilter = lambda folder: folder in \
    	[ ??my_dict[item_][0]?? for item_ in %(my_dict)s ]

what i don't know how to translate from pure python to offlineimap rc
language is what i prepended and appended with '??'.

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