On Tue, Aug 23, 2016 at 08:04:20PM +0000, Jethro Tull wrote:
> Depending on how offlineimap is processing the config file, it could do make
> sense to have many nametrans instances per section. The documentation is not
> saying enough about this. Anyway, what if I need several folders name from a
> single imap account to be translated?
>
> In my personal case the folders on the gmail imap are [Gmail]/{Sent mail, All
> mails} and I want locally {sent,all} respectively. What are the suggestions
> for
> the content of my config file?
The proper way is to use a pythonfile with all the functions you need.
For example:
def nametrans_accountA_to_remote(folder):
if folder is 'something':
return 'something_else'
return folder
nametrans = nametrans_accountA_to_remote
> Well... what about my first question?
What about my previous response?
--
Nicolas Sebrecht
_______________________________________________
OfflineIMAP-project mailing list: [email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project
OfflineIMAP homepages:
- https://github.com/OfflineIMAP
- http://offlineimap.org