Skip to content

Conversation

@bengotow
Copy link
Collaborator

@bengotow bengotow commented Jan 1, 2026

Cherry-pick fix from upstream mailcore2 PR #1621.

Outlook.com IMAP server sometimes omits message parts and returns them as zero-length when there is a vCalendar part in the message. Previously this would cause a MAILIMAP_ERROR_FETCH error, failing the entire fetch.

This fix:

  1. Adds mOutlookServer detection based on hostname
  2. When fetching from Outlook and encountering a NULL/empty part, returns zero-length data instead of an error

This allows messages with vCalendar attachments to be fetched successfully from Outlook.com accounts.

Upstream: MailCore/mailcore2#1621

Cherry-pick fix from upstream mailcore2 PR #1621.

Outlook.com IMAP server sometimes omits message parts and returns them
as zero-length when there is a vCalendar part in the message. Previously
this would cause a MAILIMAP_ERROR_FETCH error, failing the entire fetch.

This fix:
1. Adds mOutlookServer detection based on hostname
2. When fetching from Outlook and encountering a NULL/empty part,
   returns zero-length data instead of an error

This allows messages with vCalendar attachments to be fetched
successfully from Outlook.com accounts.

Upstream: MailCore/mailcore2#1621
@bengotow bengotow merged commit 0dcc926 into master Jan 1, 2026
3 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants