I am unable to parse multipart email content. Could someone please help?
I am using tips from posts on stackoverflow to receive and parse email (from gmail) using javamail. Adding activation.jar & mail.jar to Android App
message getContent API returns com.sun.mail.imap.IMAPMessage@423ff878
Which means it's not handled by javamail datasource.
The content looks like:
Content-Type: multipart/alternative; boundary=mimepart_51c2a32167465_82e9b701343f
--mimepart_51c2a32167465_82e9b701343f Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: Quoted-printable Content-Disposition: inline
...text...
--mimepart_51c2a32167465_82e9b701343f Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: Quoted-printable Content-Disposition: inline
http://www.w3.org/1999/xhtml">
--mimepart_51c2a32167465_82e9b701343f--