Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Matthias J. Lang on June 08, 2002, 10:56:09 PM

Title: Converting IMAP-Folders !!need HELP!!
Post by: Matthias J. Lang on June 08, 2002, 10:56:09 PM
Hey folks,
I really have a fucking problem:

I used SuSE Linux with Cyrus IMAP to provide e-mail to our workers, now I updated to e-smith. I saved the mailspace of every user (INBOX) which is in one file. How can I integrate the mails from these files to the new e-smith server? I didn't find any possibility to do so so far.

Please help me!

Thank you very much!
Matthias
Title: Re: Converting IMAP-Folders !!need HELP!!
Post by: Nathan Fowler on June 10, 2002, 06:39:00 PM
What kind of file did you save it as?  If your SuSE box was using qmail you could've tarred the Maildir contents and moved them over.
Title: Re: Converting IMAP-Folders !!need HELP!!
Post by: Matthias J. Lang on June 11, 2002, 01:36:14 AM
I used sendmail. The mails are all stored in one file, locateted in the sym-linked directory /var/mail

The mailbox names are equivalent to the user names, this means i. e.:
user sammer
mailbox /var/mail/sammer
Title: Re: Converting IMAP-Folders !!need HELP!!
Post by: Nathan Fowler on June 11, 2002, 02:01:37 AM
Well, you may be luckier than I had originally anticipated.  After some research and digging around I've found this:

http://www.firstpr.com.au/web-mail/mb2md/
http://www.qmail.org/mbox2maildir

Users maildir's are stored in /home/e-smith/files/{username}/Maildir/

The converse to what you want to do is already a qmail command called "maildir2mbox", so I assumed a mbox2maildir would exist.  You appear to be a power-user so I'm sure you can figure this out, good luck.  Please backup those mbox files before you run this in the event it hoses.  I'd try the one providied by qmail.org first, then default to the one on .au

Let me know if this works, take good notes along the way, and this would be something that would be useful in a FAQ.

Hope this helped, please let me know the outcome,
Nathan