Hi all,
I am currently writing a zimlet that solely works on email messages (not conversations) and encoutered the following problem:
I want to access the mail message as a whole starting from the first line of the SMTP Header to the last line of the last mime attachement (in one string or stringbuffer). Just like what you get when you right click on a mail in the Webclient and select "Show Original".
In my jsp I want to access the message like:
Code:
Mailbox mbox = MailboxManager.getInstance().getMailboxByAccountId(...);
Message msg = mbox.getMessageById(...);
Then I get the Subject with:
Code:
String subj = msg.getSubject();
With other Mailbox methods I can access other parts of the mail. But how could I access the mail as one string?
My java knowledge is pathetic and I would be really happy if someone could give me a hint...
Regards
Thomas