You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] support iCalendar events with METHOD defined in body instead of Content-Type #552
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
changed the title [-]Add the flag to disable calendar method parsing[/-][+][bug] support iCalendar events with METHOD defined in body instead of Content-Type[/+]on Oct 5, 2024
Activity
IvanPriests commentedon Oct 4, 2024
I'm use
org.simplejavamail.converter.internal.mimemessage.MimeMessageParser.parseMimeMessage(mimeMessage)for parse email content and headers#552: [bug] support iCalendar events with METHOD defined in body inst…
[-]Add the flag to disable calendar method parsing[/-][+][bug] support iCalendar events with METHOD defined in body instead of Content-Type[/+]bbottema commentedon Oct 5, 2024
Thank you for reporting. This is actually a bug and the METHOD should be parsed properly nonetheless. I've fixed this in version 8.12.2.