Converting mailboxes from mbox to maildir.
Coleman Kane
cokane at cokane.org
Fri May 2 14:26:35 EDT 2008
On Fri, 2008-05-02 at 13:53 -0400, Scott Garman wrote:
> Since the subject of IMAP servers has come up, I thought I'd ask about
> something I really need to get around to soon. I have issues with mbox
> corruption about 1-2 times per year, and still haven't made the switch
> to Maildir. I'd like to do it before I get an urgent crisis again. :)
>
> I'm using dovecot as my IMAP/POP server. Does anyone know if it's
> possible for it to work with both mbox and Maildir at the same time so I
> can convert my users' mailboxes one user account at a time? From my
> research so far I'm under the impression that I can configure doevcot to
> use either mbox or Maildir for all user accounts, but not both.
>
> War stories and other advice on migrating from mbox to Maildir are welcome.
>
> Thanks,
>
> Scott
You can install procmail and use the formail and procmail programs to
perform the conversion.
I believe you want to set up a procmail rule to deliver mail into a
maildir (specify the destination with a trailing slash). Then you use
something like this:
formail -s procmail < mboxfile
I recommend reading up on the procmail/formail manpage before doing this
to ensure that memory serves me right.
--
Coleman Kane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20080502/60654e63/attachment.bin
More information about the gnhlug-discuss
mailing list