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 following body :
this is great
this is great
this is great
following is what i got as output :
[image:
?ui=2&view=att&th=12468634e50e53d8&attid=0.1&disp=attd&realattid=ii_12468634e50e53d8&zw]
is this right way to read message body? why i am getting same body twice in
two different forms (plain text & html)?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
<<inline: Untitled.jpg>>
