Repository navigation
fix(email): exclude inline Outlook resources from attachment lists - #5425
Christiansada wants to merge 1 commit into
Conversation
Signed-off-by: Christian Sada <[email protected]>
|
✅ DCO Check Passed Thanks @Christiansada, all your commits are properly signed off. 🎉 |
Merge Protections🟢 Merge protection satisfied — ready to merge. Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
AI triage (advisory)Checked commit The PR changes Topic labels added: CI safety: no concern found. A maintainer must still approve CI. 1 related pull request(s) in the same code
The |
There was a problem hiding this comment.
AI first review (advisory): no blocker found
This review covers the full diff at c4deb9123a. It read the code and did not run it.
Checked Outlook .msg attachment filtering for hidden MAPI properties and HTML cid: references. Verified that attachment payloads are not read, unreferenced attachments remain listed, and minimal installations remain functional.
A maintainer makes the merge decision. This review never approves the pull request.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
An Outlook signature image currently becomes an ordinary MIME attachment during
.msgconversion. Withlist_attachments=True, its filename then appears beside real attachments in the exported document.This filters hidden MAPI attachments and content IDs referenced by HTML
src,href,background, ordataURLs before creating MIME placeholders. Unreferenced content IDs and ordinary image attachments remain listed. URI escapes are decoded and IDs are matched exactly. Attachment payloads are never read. The HTML parser stays a lazy import to preserve minimal-install compatibility.Fixes #5416. Thanks to the reporter for identifying the MAPI properties; their private emails were not used.
Checklist:
Review evidence:
e16c4b71a7b7d9154ffca164accad2581aed5c9f, the final regression file reports 9 failed, 9 passed. Referenced and hidden attachments remain in the generated MIME list.python-oxmsgproperty decoding with synthetic MAPI storage. Only the CFB loader boundary is replaced. They check MIME filenames, the Docling attachment list and its parents, Markdown output, retained real attachments and a failing guard against attachment payload reads.uv run --no-sync pytest -q -rs tests/test_backend_email_inline_attachments.py tests/test_backend_email.py tests/test_backend_html.py tests/test_backend_calendar.py tests/test_backend_optional_dependencies.py tests/test_input_doc.py: 342 passed, 1 skipped (4 warnings). The skipped HTML rendering test requires optional Playwright, which is not installed.UV_NO_SYNC=1 make validate: all applicable hooks passed, including Ruff, formatter, ty, Tach and module coverage.git diff --checkpassed.webrtcvad; no dependency/configuration files were changed.Limits: local macOS arm64/Python 3.12 validation. No reporter-original files or collection-wide results are claimed. CSS
url()andsrcsetCID references are outside this change; the supported URL attributes are documented. No reference data was regenerated. Full model/OCR/live-service tests were not run.