Help with Nametrans dovecot imap <-> courier imap

Sven Scheuten sven.scheuten at weiss-software.de
Wed Nov 30 08:27:31 GMT 2011


Hi all,

i`m having a little trouble setting up offlineimap to sync dovecot <->
courier IMAP.

Working with Maildir is not possible because the local part is dovecot 0.9x
with mbox.

 

So, syncing the INBOX isn`t a problem, but the containing folders.

As far as I know the folders have to be under the INBOX Folder (restriction
on the courier imap server site)

INBOX

-Archive2009

-Archive2010

-Archive2011

-Sent

-Trash

 

Here is the dovecot folder: * LIST (\HasNoChildren) "." "INBOX.Archive2011"

And the courier folder: * LIST (\NoInferiors) "/" "INBOX/Archive2011"

(got these settings by logging in on IMAP port via telnet and do command .
list "" "*")

 

I tried different settings (sep, nametrans) but none of them worked as
expected. Some crashed the INBOX Folder on Outlook, so I have to re-setup
the Outlook Settings.

 

Here is my config

[general]

accounts = test

maxsyncaccounts = 1

ui = basic

maxconnections = 1

 

[Account test]

localrepository = local

remoterepository = remote

quick = 10

 

[Repository local]

type = IMAP

remotehost = 127.0.0.1

remoteuser = 

remotepass = 

#folderfilter = lambda folder: folder in ['INBOX','INBOX/Archiv2011']

folderfilter = lambda folder: folder not in ['Junk-E-Mail']

#readonly = False

sep = /

#nametrans = lambda foldername:
re.sub('^INBOX/Archiv2011','INBOX\.Archiv2011', re.sub('^INBOX/Sent',
'INBOX\.Sent',foldername))

 

[Repository remote]

type = IMAP

remotehost = 

remoteuser = 

remotepass = 

#folderfilter = lambda folder: folder in ['INBOX', 'Archiv2011']

#readonly = False

#sep = .

#nametrans = lambda foldername: re.sub('INBOX/Archiv2011',
'INBOX\.Archiv2011',foldername)

#nametrans = lambda foldername: re.sub('INBOX/Archiv2011',
'INBOX\.Archiv2011', re.sub('INBOX/Sent', 'INBOX\.Sent',foldername))

 

Thanks for your help.

 

Sven

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20111130/ace650ba/attachment-0002.html>


More information about the OfflineIMAP-project mailing list