Help in correct set reverse nametrans

Marcelo marcelolaia at gmail.com
Thu Feb 4 21:33:15 GMT 2016


Marcelo Laia <marcelolaia <at> gmail.com> writes:

> 
> Please, could you help me to do a reverse nametrans to my nametrans
> below?
> 
> [Repository Gmail-Remote]
> type = Gmail
> (snip)
> nametrans = lambda folder: re.sub('.*Rascunhos$', 'Rascunhos', 
>     re.sub('.*E-mails enviados$', 'Enviados', 
>     re.sub('.*Com estrela$', 'Importante', 
>     re.sub('.*Lixeira$', 'Lixeira',
>     re.sub('INBOX','Inbox', folder)))))
> 
> # Don't synchronize these folders
> folderfilter = lambda foldername: foldername not in ['.*Spam$',
> '.*spam$', '.*Lixeira$', 'Sent Mail', 'Trash']

Someone could help me? I read a lot off in the web and in the
http://offlineimap.org/doc/nametrans.html#reverse-nametrans and I am totally
idiots to do that.

Thank you very much!

Marcelo





More information about the OfflineIMAP-project mailing list