[appengine-java] Re: receiving mail demo

2011-09-12 Thread Sven Busse
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

[appengine-java] Re: receiving mail demo

2009-11-09 Thread Dom Derrien
Thanks for the directions ;) A simple "new MimeMultipart(part.getDataHandler().getDataSource());" does the trick! I've written a test case which submits an embedded message in one of the multipart/mixed and this conversion works fine even recursively. Thanks for the help, A+, Dom On Nov 8, 1:

[appengine-java] Re: receiving mail demo

2009-11-07 Thread zhiw...@gmail.com
Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); Message message = new MimeMessage(session, request.getInputStream()); String subject = message.getSubject(); DataHandler dataHandler = messa

[appengine-java] Re: receiving mail demo

2009-11-07 Thread m seleron
Hi GAE's getContent (or javamailAPI current version ?) is message.isMimeType ( "multipart / *") even when the ByteArrayInputStream so to return. When the isMimeType is multipart try to convert this source InputStream inputStream = (InputStream)mimeMessage.getContent(); String ContentType = mi

[appengine-java] Re: receiving mail demo

2009-11-07 Thread Dom Derrien
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) con

[appengine-java] Re: receiving mail demo

2009-10-23 Thread Kyle Roche
Same here. Started a few threads on it. No replies yet. Sent from my iPhone On Oct 23, 2009, at 11:04 AM, vs wrote: > > I'm having the same issue Can someone please help me with this? > > On Oct 19, 12:44 pm, Prashant wrote: >> yes, every thing is working fine except that I am not able

[appengine-java] Re: receiving mail demo

2009-10-23 Thread vs
I'm having the same issue Can someone please help me with this? On Oct 19, 12:44 pm, Prashant wrote: > yes, every thing is working fine except that I am not able to fetch message > body in suitable format. --~--~-~--~~~---~--~~ You received this message bec

[appengine-java] Re: receiving mail demo

2009-10-19 Thread Prashant
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 emai

[appengine-java] Re: receiving mail demo

2009-10-19 Thread Don Schwarz
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 wrote: > msg.getContent () should return Multipart but here in GAE it returns > ByteArrayInputStream . i tried reading Object after wrapping

[appengine-java] Re: receiving mail demo

2009-10-19 Thread Prashant
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

[appengine-java] Re: receiving mail demo

2009-10-19 Thread Roy Smith
It's a standard Java Mail task, nothing to do with GAE. Try googling "java mail multipart examples" On Mon, Oct 19, 2009 at 3:03 AM, Prashant wrote: > how do i separate both type msg bodies ? > > > > > --~--~-~--~~~---~--~~ You received this message because you a

[appengine-java] Re: receiving mail demo

2009-10-18 Thread Prashant
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 f

[appengine-java] Re: receiving mail demo

2009-10-18 Thread Prashant
I used GMail to send mail... --~--~-~--~~~---~--~~ 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 gro

[appengine-java] Re: receiving mail demo

2009-10-18 Thread Roy Smith
> > > is this right way to read message body? why i am getting same body twice > in two different forms (plain text & html)? because that's what your email client is sending. It's quite normal. > > > > > --~--~-~--~~~---~--~~ You received this message because you

[appengine-java] Re: receiving mail demo

2009-10-18 Thread Prashant
i tried reading mail body using following code : // print message.getContentType() ByteArrayInputStream arrayStream = (ByteArrayInputStream) message.getContent(); while(arrayStream.read(buffer) != -1) // print new String(buffer) i tested by sending a mail with