text/calendar as string -> ClassCastException
hayblondin opened this issue · 1 comments
hayblondin commented
Hello,
i have got a mail with a part having a "text/calendar" mimetype converted as a string content :
--000000000000b7af0405bf5ce7e3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/calendar; charset="UTF-8"; method=REQUEST
BEGIN:VCALENDAR
PRODID:-//Events Calendar//iCal4j 1.0//EN
VERSION:2.0
CALSCALE:GREGORIAN
etc...
Which throws this exception (tested with the 6.5.1 version) :
java.lang.ClassCastException: class java.lang.String cannot be cast to class java.io.InputStream (java.lang.String and java.io.InputStream are in module java.base of loader 'bootstrap')
at org.simplejavamail.converter.internal.mimemessage.MimeMessageParser.parseMimePartTree(MimeMessageParser.java:159)
it seems that the RFC 2445 allow this format.
bbottema commented
Fix released in 6.5.2. Thank you for your effort!