use of com.zimbra.cs.mime.ParsedMessageOptions in project zm-mailbox by Zimbra.
the class Message method getParsedMessage.
public ParsedMessage getParsedMessage() throws ServiceException {
ParsedMessage pm = null;
mMailbox.lock.lock();
try {
// force the pm's received-date to be the correct one
ParsedMessageOptions opt = new ParsedMessageOptions().setContent(getMimeMessage(false)).setReceivedDate(getDate()).setAttachmentIndexing(getMailbox().attachmentsIndexingEnabled()).setSize(getSize()).setDigest(getDigest());
pm = new ParsedMessage(opt);
return pm;
} finally {
mMailbox.lock.release();
}
}
Aggregations