It's pretty trivial to bind MIME C-libraries like GMime for use in any language on any platform.
http://spruce.sourceforge.net/gmime/
It's a high-level library (unlike most other MIME libraries) which makes constructing and parsing MIME trivial.
http://spruce.sourceforge.net/gmime/
It's a high-level library (unlike most other MIME libraries) which makes constructing and parsing MIME trivial.