[Dovecot] Maildir format migration
Hi all,
I am planning to use dovecot IMAP on my server. Currently it is running UW-IMAP server with Maildir format storing users' mail. I've found that dovecot uses different Maildir format from UW-IMAP. Is there any configuration option for adapting dovecot to use format used by UW-IMAP?
Thanks a lot.
Tony.
I am planning to use dovecot IMAP on my server. Currently it is running UW-IMAP server with Maildir format storing users' mail. I've found that dovecot uses different Maildir format from UW-IMAP. Is there any configuration option for adapting dovecot to use format used by UW-IMAP?
http://wiki.dovecot.org/Migration/UW
--
Best regards,
Charles
On May 17, 2007, at 3:47 AM, Tony Tsang wrote:
I am planning to use dovecot IMAP on my server. Currently it is running UW-IMAP server with Maildir format storing users' mail. I've found that dovecot uses different Maildir format from UW-IMAP. Is there any configuration option for adapting dovecot to use format used by UW-IMAP?
I just finished conversion from UW-IMAP mbox to Dovecot Maildir using
only Dovecot's "convert" plug-in. The plug-in worked far better than
other conversion scripts that I've tried such as perfect_maildir.pl
and mb2md. It made the conversion totally automatic as each user
logged into their account.
http://wiki.dovecot.org/Plugins
Good luck, B. Bodger New York, NY
I am planning to use dovecot IMAP on my server. Currently it is running UW-IMAP server with Maildir format storing users' mail. I've found that dovecot uses different Maildir format from UW-IMAP. Is there any configuration option for adapting dovecot to use format used by UW-IMAP?
I just finished conversion from UW-IMAP mbox to Dovecot Maildir using only Dovecot's "convert" plug-in.
His UW-IMAP is already storing in maldir, not mbox - that plugin - while excellent! - is for converting from mbox to maildir...
And after re-reading this - he said that UW's maildir format is 'different' from dovecot - but this apparently is not true...
http://wiki.dovecot.org/Migration/UW
--
Best regards,
Charles
On Thu, 2007-05-17 at 15:47 +0800, Tony Tsang wrote:
Hi all,
I am planning to use dovecot IMAP on my server. Currently it is running UW-IMAP server with Maildir format storing users' mail. I've found that dovecot uses different Maildir format from UW-IMAP. Is there any configuration option for adapting dovecot to use format used by UW-IMAP?
A standard UW-IMAP distribution doesn't include support for maildir. Do you mean you're using that unofficial patch which used UID=xyz in the maildir filenames? If so, you'll have to change the directory layout to Maildir++, but otherwise those filenames would work, even though new UIDs will be given to them unless you write a script that writes them to dovecot-uidlist file.
Alternatively you could try CVS HEAD version of Dovecot which supports filesystem layout for Maildirs (mail_location = maildir:~/Maildir:LAYOUT=FS), but then again CVS HEAD is an actual stable release.
Hi all,
Thanks for the suggestions. I have used patch to UW IMAP to support maildir, the problem is dovecot uses dot for delimiter, while the patch for UW IMAP uses slash. So UW IMAP and dovecot have different directory structure. If this is configurable in dovecot, it would be nice.
Tony.
On 5/17/07, Timo Sirainen <tss@iki.fi> wrote:
On Thu, 2007-05-17 at 15:47 +0800, Tony Tsang wrote:
Hi all,
I am planning to use dovecot IMAP on my server. Currently it is running UW-IMAP server with Maildir format storing users' mail. I've found that dovecot uses different Maildir format from UW-IMAP. Is there any configuration option for adapting dovecot to use format used by UW-IMAP?
A standard UW-IMAP distribution doesn't include support for maildir. Do you mean you're using that unofficial patch which used UID=xyz in the maildir filenames? If so, you'll have to change the directory layout to Maildir++, but otherwise those filenames would work, even though new UIDs will be given to them unless you write a script that writes them to dovecot-uidlist file.
Alternatively you could try CVS HEAD version of Dovecot which supports filesystem layout for Maildirs (mail_location = maildir:~/Maildir:LAYOUT=FS), but then again CVS HEAD is an actual stable release.
On Thu, 2007-05-17 at 23:04 +0800, Tony Tsang wrote:
Hi all,
Thanks for the suggestions. I have used patch to UW IMAP to support maildir, the problem is dovecot uses dot for delimiter, while the patch for UW IMAP uses slash. So UW IMAP and dovecot have different directory structure. If this is configurable in dovecot, it would be nice.
Oh, so it works differently than I thought. I'll make the separator configurable in some future Dovecot version, but for now it would be easiest if you just renamed the maildirs. Or you can also change the sources:
src/lib-storage/index/maildir/maildir-storage.h: #define MAILDIR_FS_SEP '.' #define MAILDIR_FS_SEP_S "."
But do the maildirs still begin with "-" character? If not, then just changing the above defines won't be enough.
participants (4)
-
Bruce Bodger
-
Charles Marcus
-
Timo Sirainen
-
Tony Tsang