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