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:
Then I get the Subject with:
Mailbox mbox = MailboxManager.getInstance().getMailboxByAccountId(...);
Message msg = mbox.getMessageById(...);
With other Mailbox methods I can access other parts of the mail. But how could I access the mail as one string?
String subj = msg.getSubject();
My java knowledge is pathetic and I would be really happy if someone could give me a hint...