[Dovecot] convert wu-imap Maildir format to dovecot
Hello,
I intend to migrate a mail server with Maildir from wu-imap to dovecot imap. Using horde/IMP, users can not access their imap forders, as wu-imap created Mail directory that holds all created folders. Dovecot could not detect the mail directory so I had to put default_mail_env = ~/Maildir in dovecot.conf. Before I begin to read the source-code of dovecot or try to migrate the the mailboxes using a shell script, is there any way I can make dovecot read the wu-imap folders format? Please suggest any solution that you find viable. Thank you.
--
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
Alin Osan
On Sun, 2003-09-21 at 15:11, Alin Osan wrote:
I intend to migrate a mail server with Maildir from wu-imap to dovecot imap. Using horde/IMP, users can not access their imap forders, as wu-imap created Mail directory that holds all created folders. Dovecot could not detect the mail directory so I had to put default_mail_env = ~/Maildir in dovecot.conf.
Mail or Maildir? ..
Before I begin to read the source-code of dovecot or try to migrate the the mailboxes using a shell script, is there any way I can make dovecot read the wu-imap folders format?
I don't really know what format uw-imap's maildir patch uses, but I'm guessing it's not Maildir++ which Dovecot and Courier use. Maildir++ works like:
~/Maildir/{cur,new,tmp} = INBOX ~/Maildir/.folder/{cur,new,tmp} = folder ~/Maildir/.folder.subfolder/{cur,new,tmp} = folder.subfolder
ie. everything under ~/Maildir/, hierarchies separated by dot.
I've been thinking on supporting something like what I'd guess uw-imap's maildir uses:
~/Maildir/{cur,new,tmp} = INBOX ~/Maildir/folder/{cur,new,tmp} = folder ~/Maildir/folder/subfolder/{cur,new,tmp} = folder/subfolder
One bad thing with that format is that you can't have mailbox named cur, new or tmp. Anyway, supporting that format isn't really in my short term plans..
Hmm. Was it also uw-imap's maildir patch that added the UID into maildir filename like: 12345,U=uid? I was also considering on supporting it, but I think it had some problems..
On Sunday 21 September 2003 15:34, Timo Sirainen wrote:
Mail or Maildir? ..
Maildir. I also lets you put folders in a Mail directory, but that has nothing to do with Maildir. From IMP you can create an imap directory pretty much where you want.
I don't really know what format uw-imap's maildir patch uses, but I'm guessing it's not Maildir++ which Dovecot and Courier use. Maildir++ works like:
No, it's not Maildir++, that is my problem.
~/Maildir/{cur,new,tmp} = INBOX ~/Maildir/.folder/{cur,new,tmp} = folder ~/Maildir/.folder.subfolder/{cur,new,tmp} = folder.subfolder
ie. everything under ~/Maildir/, hierarchies separated by dot.
I've been thinking on supporting something like what I'd guess uw-imap's maildir uses:
~/Maildir/{cur,new,tmp} = INBOX ~/Maildir/folder/{cur,new,tmp} = folder ~/Maildir/folder/subfolder/{cur,new,tmp} = folder/subfolder
Yes, that is the format used by wu-imap.
One bad thing with that format is that you can't have mailbox named cur, new or tmp. Anyway, supporting that format isn't really in my short term plans..
No problem, I think that a converter added to dovecot would be a much better solution.
Hmm. Was it also uw-imap's maildir patch that added the UID into maildir filename like: 12345,U=uid? I was also considering on supporting it, but I think it had some problems..
No, it's not IMO. Thank you, Timo.
--
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
Alin Osan
On Sunday 21 September 2003 15:49, Eero Volotinen wrote:
No problem, I think that a converter added to dovecot would be a much better solution.
There is to maildir conversion scripts in qmail.org
I was thinking of a Maildir to Maildir++ converter.
--
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
Alin Osan
On Sunday 21 September 2003 16:04, Eero Volotinen wrote:
Why? Maildir quota is not supported by dovecot.
I didn't know that.
Maildir and maildir++ are compatible.
Well, actually I need to convert the wu-imap Maildir format to something dovecot can work with. Maildir++ seemed the best solution for this, as this is supported by dovecot. But Maildir would do just fine, I suppose.
--
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
Alin Osan
participants (3)
-
Alin Osan
-
Eero Volotinen
-
Timo Sirainen