A script to import messages into Mail from KMail, etc.

Oct 05, '05 06:18:00AM

Contributed by: romaninsh

After I couldn't find solution for mail import from KMail, I wrote a simple shell script that converts the maildir hierarchy into importable mbox files.

  1. Copy this script and save it as convert.sh into the directory containing all your maildirs (Mail).
  2. Run the script (make sure it's executable with chmod +x convert.sh, of course). It will create *.mbox files having the full path converted into their names.
  3. In Mail.app, choose Import -> Other and specify the directory (Mail).
Hope this helps!

Comments (10)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20051002175356349