Importing an mbox into Imap

Tim ignored_mailbox at yahoo.com.au
Tue May 25 09:41:37 UTC 2010


On Mon, 2010-05-24 at 23:49 -0700, Nataraj wrote:
> If it's your own mail server and your running an imap server like 
> dovecot which uses maildir format, then just use the dovecot script to
> convert your mbox file directly into the file space of the imap
> server.

I am, though don't know the script your referring to.  I should probably
have a look at a newer CentOS install, in case it has something that the
older one doesn't.

> You may have to build the indexes after the files are moved.

Hmm, the sort of thing I was hoping to avoid.  If I used a mail client
to move the mail, it'd move the messages in a manner that was directly
usable, straight away.  Rather than play games directly with the files.
> 
> Another option is to use a local mail client to split the file into 
> several smaller folders before trying to move it into imap.

Might give that a go, but I suspect that's still going to be a lot of
time-consuming work.  Likewise for taking the first 10,000 lines of text
from a spool, chopping into two files between message sections, and
proceeding that way.

-- 
[tim at localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.





More information about the users mailing list