Exception converting .eml file to .msg file with certain ATTENDEE values

I'm using Aspose.Email to convert .eml files to .msg files. I've encountered a couple of cases where converting a meeting message with specific content (or lack thereof) will generate an exception. This is another instance separate from the others I've recently entered.

I'm using this code to do the conversion

MailMessage msg = MailMessage.Load("file.eml", MessageFormat.Eml);

msg.Save("file.msg",MailMessageSaveType.OutlookMessageFormat); <-generates exception

In this case, the text/calendar section contains this line;

ATTENDEE;SENT-BY="MAILTO:1234@emc.com";ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=ES1TU 0000 04:MAILTO:ES1TU000004@customer.local

If I remove the part in red, the entry is converted successfully. Here's the entire text/calendar entry that causes the error.

Content-Type: text/calendar; charset="utf-8"; method=REQUEST
Content-Transfer-Encoding: 8bit

BEGIN:VCALENDAR
METHOD:REPLY
PRODID:Microsoft Exchange Server 2010
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Romance Standard Time
BEGIN:STANDARD
DTSTART:16010101T020000
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=11
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T020000
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ATTENDEE;SENT-BY="MAILTO:1234@emc.com";ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=ES1TU 0000
04:MAILTO:ES1TU000004@customer.local
COMMENT;LANGUAGE=enUS:\n\n
SUMMARY;LANGUAGE=en-US:test meeting
DTSTART;TZID=Romance Standard Time:20130413T080000
DTEND;TZID=Romance Standard Time:20130413T083000
UID:040000008200E00074C5B7101A82E008000000000043F24A5B2CCE01000000000000000
0100000003B1B807E8E7E4C4AAED6C88159B2ADFC
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20130329T125625Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:1
LOCATION;LANGUAGE=en-US:my office | dial in +44234 745\, PIN dkkd 2
5170#
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-OWNERAPPTID:-1357039651
X-MICROSOFT-CDO-BUSYSTATUS:TENTATIVE
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-DISALLOW-COUNTER:FALSE
END:VEVENT
END:VCALENDAR

Hi Tom,


Could you please confirm to us if you copy the above text to a text file and save it in ICS format, are you able to open the resultant file? I was unable to open the file at my end in Outlook which makes it doubtful to work in Aspose as well. I would request you to please provide us the sample EML file so that we can reproduce the issue at our end and assist you further.

I saved it as a .ics and was able to open it in Outlook. I've attached the file (with a .txt extension since the forum won't let me upload .ics files).

Tom

Hi Tom,


Thank you for providing the ICS file.

I was able to observe this issue at my end using the latest version of Aspose.Email for .NET 2.8.0 and have logged it in our issue tracking system as NETWORKNET-33740 for further investigation by our development team. You’ll be notified here once the issue is resolved and fix version is available.

The issues you have found earlier (filed as NETWORKNET-33740) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.