nametrans not working as expected

Florian Lindner mailinglists at xgm.de
Tue Aug 20 12:17:53 BST 2013


Hello,

I have this .offlineimaprc

[general]
accounts = florian

[Account florian]
localrepository = FloLocal
remoterepository = FloRemote

[Repository FloLocal]
type = Maildir
localfolders = ~/Mail/foo at xgm.de

[Repository FloRemote]
type = IMAP
ssl = yes
readonly = yes
remotehost = imap.gmail.com
remoteuser = foo at xgm.de
remotepass = 123
nametrans = lambda foldername: ("." + foldername).replace(
                               "[Gmail].Gesendet", "Sent")

Remote it a german gmail account.

The nametrans should replace "[Gmail].Gesendet" to ".Sent". It works fine
with a python shell:

>>> a = lambda foldername: ("." + foldername).replace(
...                                 "[Gmail].Gesendet", "Sent")
>>> a("[Gmail].Gesendet")
'.Sent'

But shows no effect when used in the configuration file. There is no .Sent
folder but still  [Gmail].Gesendet

What's wrong?

Thanks,
Florian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20130820/3b19377a/attachment-0002.html>


More information about the OfflineIMAP-project mailing list