Incorrect reading of UTF-7 encoded emails

Email messages are not correctly read from UTF-7 encoded ‘eml’ files using Aspose.Email in .net 6 and .net 8. This issue has been found in both old and latest (23.12.0) versions of Email.Aspose and occurs when the MailMessage.Load(Stream stream) method is used.

A message saved in ‘msg’ format loads correctly in the latest version. However, in version 23.9.0, a System.NotSupportedException exception was encountered when attempting to load it.

In an application based on .NET framework 4.7.2, the message loads correctly until version 23.9.0, but in later versions it does not.

MailMessageMsg.png (21.0 KB)
MailMessageEml.png (22.9 KB)
Messages.zip (18.5 KB)

Hello @abruks ,

Could you please send us the source message that caused the problem?

Thank you.

Absolutely, I have edited the original post.

@abruks
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-41262

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 @abruks
This issue has been fixed for the .NET Framework version of Aspose.Email. A fix will be available in an upcoming 24.01 release.
We do not plan to support UTF7 encoding in the .NET 6 version of Aspose.Email, as Microsoft has deprecated this encoding since of .NET 5.