<div dir="ltr">Hello,<div><br></div><div>I have this .offlineimaprc</div><div><br></div><div><div>[general]</div><div>accounts = florian</div><div><br></div><div>[Account florian]</div><div>localrepository = FloLocal</div>
<div>remoterepository = FloRemote</div><div><br></div><div>[Repository FloLocal]</div><div>type = Maildir</div><div>localfolders = ~/Mail/<a href="mailto:foo@xgm.de">foo@xgm.de</a></div><div><br></div><div>[Repository FloRemote]</div>
<div>type = IMAP</div><div>ssl = yes</div><div>readonly = yes</div><div>remotehost = <a href="http://imap.gmail.com">imap.gmail.com</a></div><div>remoteuser = <a href="mailto:foo@xgm.de">foo@xgm.de</a></div><div>remotepass = 123</div>
<div>nametrans = lambda foldername: ("." + foldername).replace(<br></div><div> "[Gmail].Gesendet", "Sent")</div></div><div><br></div><div>Remote it a german gmail account. </div>
<div><br></div><div>The nametrans should replace "[Gmail].Gesendet" to ".Sent". It works fine with a python shell:</div><div><br></div><div><div>>>> a = lambda foldername: ("." + foldername).replace(</div>
<div>... "[Gmail].Gesendet", "Sent")</div><div>>>> a("[Gmail].Gesendet")</div><div>'.Sent'</div></div><div><br></div><div>But shows no effect when used in the configuration file. There is no .Sent folder but still [Gmail].Gesendet </div>
<div><br></div><div>What's wrong?</div><div><br></div><div>Thanks,</div><div>Florian</div></div>