Browse our Products

Aspose.Email for Java 22.8 Release Notes

All Changes

KeySummaryCategory
EMAILJAVA-35083Preserve TNEF attachments in MBOX->PST and PST->MBOXEnhancement
EMAILJAVA-35091Add OrderBy feature for listing messagesFeature
EMAILNET-40661Danish characters are lost after re-saving MSGBug
EMAILNET-40658MSG to HTML conversion generates incorrect outputBug
EMAILNET-40655Creating Appointment in O365 with Aspose 22.6 returns ErrorInvalidPropertySetBug
EMAILJAVA-35095Email signature is not recognized by ThunderbirdBug
EMAILJAVA-35092Mail header is not correct (one with smime.p7m vs smime.p7s)Bug

New Enhancements

Configuring the load options when reading messages from MBOX

Changes in public API:

  • MailStorageConverter.MboxMessageOptions property - Gets or sets email load options when parsing an Mbox storage.
  • MboxrdStorageReader.readNextMessage(EmlLoadOptions options) method - EmlLoadOptions parameter specifies options when reading message from Mbox storage.
  • MboxrdStorageReader.enumerateMessages(EmlLoadOptions options) method - Specifies EmlLoadOptions when reading message from Mbox storage.

Code samples:

EmlLoadOptions emlLoadOptions = new EmlLoadOptions();
emlLoadOptions.setPreserveTnefAttachments(true);
MailStorageConverter.setMboxMessageOptions(emlLoadOptions);
// Convert messages from mbox to pst preserving tnef attachments.
PersonalStorage storage = MailStorageConverter.mboxToPst("Input.mbox", "Output.pst");
MboxrdStorageReader reader = new MboxrdStorageReader("Input.mbox", new MboxLoadOptions());
// Read messages preserving tnef attachments.
EmlLoadOptions emlLoadOptions = new EmlLoadOptions();
emlLoadOptions.setPreserveTnefAttachments(true);
MailMessage eml = reader.readNextMessage(emlLoadOptions);
EmlLoadOptions emlLoadOptions = new EmlLoadOptions();
emlLoadOptions.setPreserveTnefAttachments(true);
// Enumerate messages preserving tnef attachments.
for (MailMessage message : reader.enumerateMessages(emlLoadOptions)) {
    // do something
}

Configuring OrderBy feature for listing messages with Graph API

Code samples:

// create orderby messages query 'ASC'
GraphQueryBuilder builder = new GraphQueryBuilder();
builder.getSentDate().orderBy(true);
MailQuery query = builder.getQuery();

GraphMessagePageInfo pageInfo = client.listMessages(GraphKnownFolders.Inbox, new PageInfo(10), query);