- Is a fix available for the FormatException shown below?
- Are there other known issues or unsupported attached file types when converting a RFC822 message to a MapiMessage?
The following exception occurs when converting a MailMessage that has an attached ICS calendar event to a MapiMessage:
class com.aspose.email.system.exceptions.FormatException: Invalid format string
com.aspose.email.system.DateTime.a(Unknown Source)
com.aspose.email.system.DateTime.parseExact(Unknown Source)
com.aspose.email.system.DateTime.parseExact(Unknown Source)
com.aspose.email.CalendarDateTime.a(SourceFile:73)
com.aspose.email.CalendarDateTime.(SourceFile:203)
com.aspose.email.DateProperty.setValue(SourceFile:170)
com.aspose.email.DateTimeStartProperty.(SourceFile:65)
com.aspose.email.ami$p.a(SourceFile:200)
com.aspose.email.ami.a(SourceFile:1176)
com.aspose.email.CalendarPropertyCollection.a(SourceFile:239)
com.aspose.email.CalendarObject.b(SourceFile:380)
com.aspose.email.CalendarObject.a(SourceFile:283)
com.aspose.email.CalendarObject.a(SourceFile:252)
com.aspose.email.MapiMessage.d(SourceFile:2916)
com.aspose.email.MapiMessage.fromMailMessage(SourceFile:1508)
The content of the ICS attachment is as follows:
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft Exchange Server 2010
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Tokyo Standard Time
BEGIN:STANDARD
DTSTART:17090201T000000
TZOFFSETFROM:+0900
TZOFFSETTO:+0900
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:17092001T000000
TZOFFSETFROM:+0900
TZOFFSETTO:+0900
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
[ORGANIZER;CN=“EXAMPLE,SAMPLE”:MAILTO:sample@example.com](mailto:ORGANIZER;CN=%22EXAMPLE,SAMPLE%22:MAILTO:sample@example.com)
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=example
[example:MAILTO:sample@example.com](mailto:example:MAILTO:sample@example.com)
DESCRIPTION;LANGUAGE=ja-JP:これはテストメールです。\n\nスケ
ジューラの空きスケジュールを選択し送付\n\n
SUMMARY;LANGUAGE=ja-JP:空きスケジュールに登録
DTSTART;TZID=Tokyo Standard Time:20170920T200000
DTEND;TZID=Tokyo Standard Time:20170920T203000
UID:040000008200E00074C5B7101A82E00800000000C09E746BA165D101000000000000000
010000000A88E50DD78F07944A7CD6DA460C35AF2
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20170920T052724Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:0
LOCATION;LANGUAGE=ja-JP:
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-OWNERAPPTID:543959008
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
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:REMINDER
TRIGGER;RELATED=START:-PT15M
END:VALARM
END:VEV