- mh is, I believe, the MH Message Handling System
http://offog.org/git/misccode/mh-to-maildir
#!/bin/sh # Convert an mh folder into a maildir. # Adam Sampson <ats@offog.org> # The "maildir" command is part of safecat: if [ $# != 2 ] ; then echo "Usage: mh-to-maildir mhdir maildir" exit 1 fi mhdir="$1" maildir="$2" mkdir -p "$maildir/new" "$maildir/cur" "$maildir/tmp" || exit 1 ls "$mhdir" | egrep '^[0-9]+$' | sort -n | while read n ; do maildir "$maildir" <"$mhdir/$n" || exit 1 done
Usage
./mh-to-maildir ~/Mail ~/Maildir-test
I had various accounts in Claws Mail, so I did stuff like this:
./mh-to-maildir ~/Mail/subfolder1 ~/Maildir-test
