We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Mail Subject with double quotation (and other symbols) wrongly decoded

Hi,
before version 22.4 there was no issue about subject decoding.
After release 22.4 (included) of Aspose.Email, mail subject is now wrongly decoded.
ex.
Original Subject decoded into a desktop client:

CONSEGNA: XXX - Arch N°1421 - Trasmissione "bollettino dati e misure" mese di Maggio 2022 - [RIF.PROT.:8080/2022]

Wrongly decoded value:

CONSEGNA: XXX - Arch N°1421 - Trasmissione olletti?= no dati e misuremese_di_Maggio_2022_-_[RIF.PROT.:8080/2022]?=

The issue is also present into latest version 22.6

This is a sample eml file.
sampleMail_BadSubject.zip (912 Bytes)

The code to use is the simple call to load method of MailMessage:
var bytes = <load here eml bytes>
var mm = MailMessage.Load(new MemoryStream(bytes));
var subject = mm.Subject;

@biagio_carratu_dedagroup_it

We have logged this problem in our issue tracking system as EMAILNET-40649. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.