Sample code:
var fs = new FileStream(filePath, FileMode.Open, FileAccess.Read);
var mBox = MboxStorageReader.CreateReader(fs, new MboxLoadOptions()
{
LeaveOpen = true,
PreferredTextEncoding = Encoding.UTF8
});
Aspose.Email.MailMessage msg = mBox.ExtractMessage(“AAAAAMUAAQCEAAAAAAAAAA==”, new Aspose.Email.EmlLoadOptions()
{
PreferredTextEncoding = Encoding.UTF8
});
msg.Save(@“message.msg”, Aspose.Email.SaveOptions.DefaultMsg); // Save wrong sent date
msg.Save(@“message.eml”, Aspose.Email.SaveOptions.DefaultEml); // Save Correct sent date
Note: If we save the file as .eml then sent date correctly update. image.png (55.9 KB)
@hemalp
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): EMAILNET-41342
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Hi @hemalp
This is expected behavior. The MIME content in the mbox file does not contain the lastmodified and created date, so if you set PreserveOriginalDates=true then it will not be set when saving as msg.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.