VMime is a free mail library for C++, an open-source solution for working with MIME messages and Internet messaging services like IMAP, POP or SMTP. This requires libgsasl.