Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ugh. Time to upgrade my server



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.






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org