libcmime  
A lightweight C mime library
parse_mime_message.c