Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-27-2009, 07:35 AM
Moderator
 
Posts: 2,207
Default mbox to imap

Hi everyone.

I'm currently fighting with a mbox migration (I'm not the only one, considering the threads on the subject) on 5.0.20.

I'm using the Python mbox2imap script but I'm having several issues with it.
This is the one I'm using : http://people.cs.uchicago.edu/~brend...ipts/mbox2imap

First of all, the imported messages are shown with the import date/time in the ZWC, not the message date.
Fixing it is quite easy but needs to re-import each message: you just have to use the "Thunderbird hack", ie add "/tb" at the end of the username.

Then, I have a first issue when dealing with recursive import. The script fails with a Python error (and I don't code Python at all). I fixed this by removing ".group(1)" at the end of line 285.

But the worst issue, still in recursive import, is the way the folders are created on the ZCS server.
mbox2imap creates the folders tree based on the mbox files folders (on the hardrive) and, as it's using IMAP, it uses dot in order to separate the levels.

Example, on the hardrive, I have several folders and files (each file is a mbox file):
/import
/import/leads
/import/leads/yahoo
/import/leads/google
/import/leads/microsoft

mbox2imap creates, on the ZCS server, these folders using IMAP:
import
import.leads
import.leads.yahoo
import.leads.google
import.leads.microsoft

The dot is supposed to be the IMAP separator between folder and sub-folder but this doesn't work (at all): in the ZWC, instead of getting the same tree than on the harddisk, I'm getting all the folders at the same level with the dots in their name...

Does anyone know why the dot is not working properly as separator in IMAP?
Reply With Quote
  #2 (permalink)  
Old 11-27-2009, 09:11 AM
Moderator
 
Posts: 7,929
Default

Change the IMAP separator in the script to be a slash instead ?
__________________
Reply With Quote
  #3 (permalink)  
Old 11-27-2009, 09:17 AM
Moderator
 
Posts: 2,207
Default

When the folders already exists, I can rename them to anything (even with slash in the name) with no problem. I'm afraid it'll be the same on creation.

And I'm quite sure the dot is "IMAP standard" while slash is not.

I'll try this tonight and let you know.
Reply With Quote
  #4 (permalink)  
Old 11-27-2009, 09:59 AM
Moderator
 
Posts: 7,929
Default

RFC 3501 (rfc3501) - INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1
__________________
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.