Commit 9dac7ac
fixup! fix(imap): detect iMIP when method= is missing or mime is application/ics
Address review feedback from kesselb:
- drop application/ics handling in both detection sites
(Thunderbird's stance — re-evaluate if a real-world provider that
only ships application/ics shows up)
- tighten METHOD regex to /^METHOD:([A-Z]+)/mi with === 1 check
(matches the iCalendar grammar: METHOD value is bare token, no
whitespace allowed between colon and value per RFC 5545)
- remove the now-obsolete application/ics fixture + test row
NOTE for squash: original commit body still mentions application/ics
support. When squashing, please drop that section so the message only
covers the Proton Bridge / METHOD-from-body fix.
AI-assisted: Claude Code (Claude Opus 4.7)
Signed-off-by: Wolfgang Lubowski <w.lub92@gmail.com>1 parent 7d9442b commit 9dac7ac
4 files changed
Lines changed: 12 additions & 93 deletions
File tree
- lib/IMAP
- tests
- Unit/IMAP
- data/imip
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
291 | | - | |
292 | | - | |
| 290 | + | |
| 291 | + | |
293 | 292 | | |
294 | 293 | | |
295 | | - | |
296 | | - | |
| 294 | + | |
297 | 295 | | |
298 | 296 | | |
299 | 297 | | |
| |||
318 | 316 | | |
319 | 317 | | |
320 | 318 | | |
321 | | - | |
| 319 | + | |
322 | 320 | | |
323 | 321 | | |
324 | 322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
909 | 909 | | |
910 | | - | |
911 | | - | |
| 910 | + | |
912 | 911 | | |
913 | 912 | | |
914 | 913 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | 758 | | |
763 | 759 | | |
764 | 760 | | |
| |||
This file was deleted.
0 commit comments