I am following instructions on 
http://code.google.com/appengine/docs/java/mail/receiving.html
to process incoming mail but failing on retrieving content (headers
are fine).

"The getContent() method returns an object that implements the
Multipart interface. You can then call getCount() to determine the
number of parts and getBodyPart(int index) to return a particular body
part."

MimeMultipart mmp = (MimeMultipart) message.getContent();

Error:
java.lang.ClassCastException: java.io.ByteArrayInputStream cannot be
cast to javax.mail.internet.MimeMultipart

And when I check at runtime what class is returned by getContent() it
really is java.io.ByteArrayInputStream.

Am I doing something wrong?

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to