Sync -> Mails there. Sync -> mails gone

Matthias Beyer mail at beyermatthias.de
Thu Jan 29 10:20:13 GMT 2015


I found the issue, but I don't know how to solve it:

My nametrans renames the folders as requested, BUT the "INBOX" folder
gets renamed to "localPREFIX.INBOX" (which is fine) when syncing
remote->local. But on syncing local to remote, it gets renamed
"INBOX.INBOX", which is obviousely wrong.

The problem is, that I don't know how to solve this issue properly.
Doing an if-else in the nametrans results in syntax errors, I don't
know how much python this thing understands, so I tried solving it
with regex only, but ... well, I can't get it working.

Maybe you guys can?

On 29-01-2015 10:44:49, Matthias Beyer wrote:
>     [Repository LocalFoo]
>     ...
>     nametrans = lambda foldername = "INBOX." + re.sub('^localPREFIX\.', '', foldername)
>     folderfilter = lambda foldername = foldername.startswith('localPREFIX.')
> 
>     [Repository RemoteFoo]
>     ...
>     nametrans = lambda foldername = "localPREFIX." + re.sub('^INBOX\.', '', foldername)
> 

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20150129/bcac5e8e/attachment-0003.sig>


More information about the OfflineIMAP-project mailing list