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

Free Support Forum - aspose.com

MIME with 2 attachments named the same causes infinite loop in Aspose.Network.Mail.MailMessage.Load

Hi,

I’m seeing a new problem in Aspose.Network version 3.9.1.0 (this problem was not present in 3.9.0.0) where if a MIME stream contains two attachments with the same name, Aspose.Network.Mail.MailMessage.Load() never returns (looks like an infinite loop, as the CPU stays pegged).

The following block will cause the problem:

MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----_=NextPart_001_01C86CCE.3AF4C8C4"
Subject: FW:
Date: Mon, 11 Feb 2008 16:50:38 -0000
From: “M” <M@h.com>
To: “G” <g@w.com>

This is a multi-part message in MIME format.

------
=NextPart_001_01C86CCE.3AF4C8C4
Content-Type: application/octet-stream; name="Document.pdf"
Content-Transfer-Encoding: base64
Content-Description: Document.pdf
Content-Disposition: attachment; filename=“Document.pdf”

------
=NextPart_001_01C86CCE.3AF4C8C4
Content-Type: application/octet-stream; name="Document.pdf"
Content-Transfer-Encoding: base64
Content-Description: Document.pdf
Content-Disposition: attachment; filename=“Document.pdf”

------
=_NextPart_001_01C86CCE.3AF4C8C4–

Thanks,
Jeremy

Hello, Jeremy,

We are now working on this issue. I will keep you posted.

Thanks very much.

Hello,

Please check the attached dll. Let me know if it works.

Thanks again.

Thanks for the quick turnaround! This fixes the issue.

Thanks,
Jeremy