Commit 8e09faf
fix: SMTP email parsing — preserve CRLF line endings for MIME, filter bogus attachments
Two issues with email capture:
1. Line endings normalized to \n but MIME requires \r\n for boundary
and quoted-printable parsing. This caused mail-parser to fail on
multipart emails (e.g., GitHub verification codes).
2. multipart/* container parts and inline text body parts were listed
as "attachments" — filter them out.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 21e7827 commit 8e09faf
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
239 | 240 | | |
240 | 241 | | |
241 | | - | |
| 242 | + | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| |||
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
455 | 469 | | |
456 | 470 | | |
457 | 471 | | |
| |||
0 commit comments