Ugh. Time to upgrade my server

Dan Ritter dsr-mzpnVDyJpH4k7aNtvndDlA at public.gmane.org
Sun May 24 18:11:26 EDT 2009


On Sun, May 24, 2009 at 04:52:45PM -0400, David Kramer wrote:
> I'm still running Fedora 8 on my server, and haven't had a compelling 
> reason to switch.  Until now.  It looks like atrpms no longer supports 
> Fedora 8.  I hope to load Ubuntu 9.04 tonight.
> 
> One question: If I feel like pressing my luck and converting over from 
> MBox format to Maildir for Dovecot/Postfix (something I've been meaning 
> to do for a LONG time), is there an easy way of copying over the mail? 
> I found http://www.gerg.ca/hacks/mb2md/
> but it's from 2002, and that makes me nervous.

It's very easy if you're turning each Mbox into one Maildir. 

1. Create the Maildir.  

maildirmake ~/Mail/nameofmaildir

2. Use formail to extract each message from the Mbox
and pipe that into safecat or another Maildir delivery program

formail -s nameofMbox | safecat ~/Mail/nameofmaildir

3. Inspect your new maildir before deleting the Mbox.

safecat should be installable on Ubuntu through apt-get, and if
you can't find maildirmake any other way, installing maildrop
(also via apt) will give you one.

-dsr-


-- 
http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.

You can't defend freedom by getting rid of it.





More information about the Discuss mailing list