Program to convert from Apple Mail's .EMLX format to Maildir. See the associated blog post for a description of the EMLX format and the motivation for this program.
emlx2maildir.py ~/Library/Mail/Messages /tmp/newmaildir --recursive
I haven't thought about licensing, so for the moment, permission is granted to use this program or a modified version of this program for its original intended purpose. Permission is not granted to redistribute this program. If you'd like different licencing (more FOSS), it probably wouldn't be too hard to convince me - just ask.