Aspose.Email for Java 20.9 Release Notes

All Changes

KeySummaryCategory
EMAILNET-39912MapiMessage RTF compressionFeature
EMAILNET-39914MailMessage.Date issue in Aspose.EmailBug
EMAILNET-39915Memory leak when invoking Print on MailPrinter (PrintFormat.Tiff)Bug
EMAILNET-39905Exception thrown after changing attachment content and savingBug
EMAILNET-39935HeaderCollection.SetHeaderObject duplicate existing header keyBug
EMAILNET-39907DisplayName is read as BlankBug
EMAILNET-39888Initialize logging properties while using EWS connectionBug
EMAILNET-39921QuotedPrintable trailing space/tab issueBug
EMAILNET-39924Wrong email body value reading body message propertyBug
EMAILNET-39926Take the value of “ClientSubmitTime” and paste it in “DeliveryTime” Automatically for many .msgBug
EMAILNET-39923Converting from MSG to MHTML takes to longBug
EMAILNET-39930Attachment name encoding issueBug
EMAILNET-39918PST GetContents is very slowBug
EMAILJAVA-34693Corrupt PST is generated on adding messageBug
EMAILNET-39922Issue using OAuth2 TokenBug
EMAILNET-39941Incorrect number of messages after adding to pstBug
EMAILNET-39940Failed to create the EWS clientBug
EMAILJAVA-34738ArgumentOutOfRangeException on loading MSG fileBug
EMAILJAVA-34737Order of Extracted Email Headers is Different from that Displayed in OutlookBug
EMAILJAVA-34729Not preserving format when converting from EML to PST and reverseBug

New features

RTF Compression While Setting MAPI Message Body

RTF compression allows to reduce the message size and the size of the created PST files.

The following overloaded methods have been added:

MapiMessageItemBase.setBodyContent(String content, /*BodyContentType*/int contentType, boolean compression)
MapiMessageItemBase.setBodyRtf(String content, boolean compression)

The last compression parameter specifies that the content should be compressed. Code Example

MapiMessage msg = new MapiMessage("from@doamin.com", "to@domain.com", "subject", "body");
// set the html body and keep it compressed
// this will reduce the message size
msg.setBodyContent(htmlBody, BodyContentType.Html, true);