When processing an EML file where the subject line is split incorrectly between 2 lines, the body of the email is not being read. There are also no errors/warnings to let us know that the body was not processed so it appears that the email was blank when in fact it has content. Testing this in Outlook reveals that Outlook skips the 2nd line of the subject but correctly reads in the remainder of the email.
Sample Code:
string filename; // set to attached file location
// Set up the Aspose options for reading in EML files
var opts = new AsposeMail.EmlLoadOptions
{
PreserveTnefAttachments = true,
};
AsposeMail.MailMessage mailMessage = AsposeMail.MailMessage.Load(filename);
AsposeMapi.MapiMessage msg = AsposeMapi.MapiMessage.FromMailMessage(mailMessage);
// Check message body here
// For attached document, the message body is blank which is incorrect
Attached .eml file
PageBreakSubject.zip (553 Bytes)