Help in correct set reverse nametrans
Marcelo Laia
marcelolaia at gmail.com
Thu Jan 14 22:16:30 GMT 2016
Debian maintainers released the offlineimap version 6.6.1+dfsg1-1 with
the capabilities to do reverse nametrans.
I downgrade to version 6.3.4-1.
I have googled and foun [1] and [2] documentations.
However, I am insecure to do, because I never wold like to got my mails
deleted from server.
Please, could you help me to do a reverse nametrans to my nametrans
below?
[Repository Yahoo-Remote]
type = IMAP
(snip)
nametrans = lambda folder: re.sub ('Draft', 'Rascunhos',
re.sub ('Sent','Enviados',
re.sub ('Trash','Lixeira',
re.sub (' ', '_', folder))))
# Don't synchronize these folders
folderfilter = lambda foldername: foldername not in ['Y! Chats', 'Bulk
Mail', 'Y! Conversations', 'Trash']
[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']
1. https://wiki.archlinux.org/index.php/OfflineIMAP
2. http://offlineimap.org/doc/nametrans.html
Thank you very much!
--
Marcelo
More information about the OfflineIMAP-project
mailing list