javax.mail.MessagingException: Missing start boundary
843830Sep 4 2002 — edited Feb 3 2005Hi there -
i'm basically using the demo msgShow class
to try and display mime/multipart messages,
i've tried numerous variations to get this to work -
following the suggestions posted in this forum.
But i always end up with an exception like this:
javax.mail.MessagingException: Missing start boundary
at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:284)
at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:158)
at com.anam.jmail.sender.MailRetriever.dumpPart(MailRetriever.java:312)
the code where the problem is:
if (message.isMimeType("multipart/*")) {
Multipart mp = (Multipart)message.getContent();
int count = mp.getCount();
for (int i = 0; i < count; i++)
dumpPart(mp.getBodyPart(i));
}
the getCount() throws the exception.
Its not a casting problem (i think)
& i have the activation.jar in my path.
Any suggestions?