iOS port of mimetic (http://www.codesink.org/mimetic_mime_library.html)