Skip to content

[bug] support iCalendar events with METHOD defined in body instead of Content-Type #552

@IvanPriests

Description

@IvanPriests

Simple Java Mail currently relies solely on the iCalendar MimePart's Content-Type to determine the METHOD, but this isn't fully spec-compliant. While many email providers include METHOD in the Content-Type for convenience, it's only mandatory in the actual calendar body.

ORIGINAL REPORT:

I received an email that was missing the calendar method, but it was still a calendar email. For my email parser, the specific method is not as important; what matters is that the email was received and its other parameters. However, the parser broke while trying to parse this type of email. I request that you add the ability to disable parsing of calendar content for

example broken email:
brokenMessageEml.txt

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions