Skip to content

text/calendar as string -> ClassCastException #311

@abrunelliere

Description

@abrunelliere

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions