Aspose.Email for .NET 21.5 Release Notes

All Changes

Key Summary Category
EMAILNET-40231 “header doesn’t correspond to vCard format” exception when loading VCF file Bug
EMAILNET-40232 Retrieving appointments from Google calendar throws exceptions Bug
EMAILNET-40223 Attachments appear after saving EML message Bug
EMAILNET-40209 Message header is incorrect if the subject ends with backslash Bug
EMAILNET-40225 Task attached to the meeting request gets converted to embedded message Bug
EMAILNET-40218 Unable to retrieve content from EML file Bug
EMAILNET-40210 “Object reference not set to an instance of an object.” exception when rendering specific entry of OST file Bug
EMAILNET-40189 OLM processing throws System.FormatException: One of the identified items was in an invalid format Investigation
EMAILNET-40201 Enumerating MAPI messages throws ArgumentException Bug
EMAILNET-40208 OutOfMemory error while trying to extract a message Bug
EMAILNET-40222 SelectFolder method takes a long time to fail Bug

New Enhancements

Obtaining preamble and epilogue from eml messages

The MIME format allows text (i.e. preamble) between the blank line following the headers, and the first multipart boundary and text (i.e. epilogue) between the last boundary and the end of the message. Normally this text is never visible in mail readers. However, some MIME implementations use this space to insert a note for recipients who read the message using non-MIME-compliant programs.

We have added appropriate properties to the MailMessage:

// Gets or sets a preamble text.
public string Preamble

// Gets or sets an epilogue text.
public string Epilogue

Support for multiple contacts in VCard format

We have added support for reading multiple contacts in VCard format.

Changes in public API:

// Checks whether VCard source stream contains multiple contacts.
VCardContact.IsMultiContacts(Stream stream)

// Loads list of all contacts from VCard file.
VCardContact.LoadAsMultiple(string filePath, Encoding encoding)

// Loads list of all contacts from VCard stream.
VCardContact.LoadAsMultiple(Stream stream, Encoding encoding)

Code sample:

using (FileStream stream = new FileStream("test.vcf", FileMode.Open, FileAccess.Read))
        List<VCardContact> contacts = VCardContact.LoadAsMultiple(stream, Encoding.UTF8);