Moving emails from Kmail (maildir format) to Evolution

Asked by AndyS

HI I have recently upgraded my machine and moved to Ubuntu 7.1, I want to move my emails from multiple users from my old box which was running Mandrake with KDE as a desk top and Kmail as an email client which was setup in the maildir format to Evolution. How do I convert the maildir folders into the mbox format required.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu evolution Edit question
Assignee:
No assignee Edit question
Solved by:
Tim Bateman
Solved:
Last query:
Last reply:
Revision history for this message
Best Tim Bateman (tim-bateman) said :
#1

Evolution does support Maildirs (Maildir-format mail directories - under server type).
I am running Hardy which comes with Evolution 2.22.1 but make sure it doesn't have support
before you start play around with all your mail archives!

You can use formail to do it for you....

cd <your maildir>
: > ../mbox
for x in ./new/*; do
       formail -I Status: <"$x" >>../mbox
done
for x in ./cur/*; do
       formail -a "Status: RO" <"$x" >>../mbox
done

You might need to apt-get install procmail - so get formail

Revision history for this message
AndyS (a-d-skerrett) said :
#2

Thanks Tim Bateman, that solved my question.