Hi all,
I have a ViewListener waiting for someone to open a particular email message, when he opens, i'd like to get the full message before passing it off to another function to process it. What i have is the following:
while(body.hasMore()){
if(!body.moreRequestSent()){
try {
Transport.more((BodyPart) contents, true);
} catch (MessagingException e1) {
showMessage("Transport is broken!!: " + e1.getMessage());
} // catch
} // if
} // while
processMessage(body.getBodyText());
However, it doesn't seem to work (if i write it into a file, it only gives me first 2k). However, if i now go into the message, scroll down until it finish downloading, and run the function again, it works fine and gets the full message.
Anyone know what i should be doing instead?
Jason