Commit 0dcc926
Handle empty IMAP parts from Outlook.com servers (#29)
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
Co-authored-by: Claude <noreply@anthropic.com>1 parent 29dc8eb commit 0dcc926
File tree
2 files changed
+26
-12
lines changed- Vendor/mailcore2/src/core/imap
2 files changed
+26
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
404 | 405 | | |
405 | 406 | | |
406 | 407 | | |
| |||
733 | 734 | | |
734 | 735 | | |
735 | 736 | | |
| 737 | + | |
736 | 738 | | |
737 | 739 | | |
738 | 740 | | |
| |||
2066 | 2068 | | |
2067 | 2069 | | |
2068 | 2070 | | |
2069 | | - | |
2070 | | - | |
2071 | | - | |
2072 | | - | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
2073 | 2074 | | |
2074 | 2075 | | |
2075 | 2076 | | |
| |||
2126 | 2127 | | |
2127 | 2128 | | |
2128 | 2129 | | |
2129 | | - | |
2130 | | - | |
2131 | | - | |
2132 | | - | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
2133 | 2142 | | |
2134 | 2143 | | |
2135 | | - | |
| 2144 | + | |
2136 | 2145 | | |
2137 | 2146 | | |
2138 | 2147 | | |
| |||
2803 | 2812 | | |
2804 | 2813 | | |
2805 | 2814 | | |
2806 | | - | |
2807 | | - | |
| 2815 | + | |
| 2816 | + | |
2808 | 2817 | | |
2809 | 2818 | | |
2810 | 2819 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
329 | 334 | | |
330 | 335 | | |
331 | 336 | | |
| |||
0 commit comments