[appengine-java] Re: receiving mail demo
Hi Dom, i have tried your solution, but i am getting a java.lang.OutOfMemoryError: Java heap space error. Did you have that as well? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/4QvY6S9k6l8J. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: receiving mail demo
Same issue: what I expected to be of type Multipart is of type ByteArrayInputStream... public static String getText(Part message) throws MessagingException, IOException { Object content = message.getContent(); if (message.isMimeType(text/*)) { return (String) content; } if (message != null message.isMimeType(multipart/*)) { if (!content instanceof Multipart) { // *** This stream contains the non parsed multipart version ! *** // *** content instanceof ByteArrayInputStream *** return ; } Multipart multipart = (Multipart) content; for(int i = 0; i multipart.getCount(); i++) { Part part = multipart.getBodyPart(i); String text = getText(part); if (!.equals(text)) { return text; } } } return ; } Any hint? On Oct 23, 9:29 pm, Kyle Roche k...@appirio.com wrote: Same here. Started a few threads on it. No replies yet. Sent from my iPhone On Oct 23, 2009, at 11:04 AM, vs ven...@gmail.com wrote: I'm having the same issue Can someone please help me with this? On Oct 19, 12:44 pm, Prashant antsh...@gmail.com wrote: yes, every thing is working fine except that I am not able to fetch message body in suitable format. --~--~-~--~~~---~--~~ 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: receiving mail demo
I'm having the same issue Can someone please help me with this? On Oct 19, 12:44 pm, Prashant antsh...@gmail.com wrote: yes, every thing is working fine except that I am not able to fetch message body in suitable format. --~--~-~--~~~---~--~~ 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: receiving mail demo
Same here. Started a few threads on it. No replies yet. Sent from my iPhone On Oct 23, 2009, at 11:04 AM, vs ven...@gmail.com wrote: I'm having the same issue Can someone please help me with this? On Oct 19, 12:44 pm, Prashant antsh...@gmail.com wrote: yes, every thing is working fine except that I am not able to fetch message body in suitable format. --~--~-~--~~~---~--~~ 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: receiving mail demo
msg.getContent () should return Multipart but here in GAE it returns ByteArrayInputStream . i tried reading Object after wrapping ByteArrayInputStream into ObjectStream but it doesn't work this way either. --~--~-~--~~~---~--~~ 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: receiving mail demo
Prashant, are you following the directions at: http://code.google.com/appengine/docs/java/mail/receiving.html ? On Mon, Oct 19, 2009 at 3:42 AM, Prashant antsh...@gmail.com wrote: msg.getContent () should return Multipart but here in GAE it returns ByteArrayInputStream . i tried reading Object after wrapping ByteArrayInputStream into ObjectStream but it doesn't work this way either. --~--~-~--~~~---~--~~ 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: receiving mail demo
yes, every thing is working fine except that I am not able to fetch message body in suitable format. --~--~-~--~~~---~--~~ 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: receiving mail demo
how do i separate both type msg bodies ? --~--~-~--~~~---~--~~ 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---