#10288 - Always load attachments - #10295
Draft
g-Bergsma wants to merge 3 commits into
Draft
Conversation
Contributor
|
Issue #10288 is not valid. Please make sure you link an issue that exists, is open and is approved. |
Author
|
@microsoft-github-policy-service agree company="Boltrics Professionals BV" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Fixes a defect in the Outlook/Graph email attachment retrieval logic where the hasAttachments property on a Graph message is used as a gate before fetching attachments. hasAttachments only reflects regular (non-inline) attachments, so messages containing only inline attachments (e.g. a screenshot pasted into the email body) report hasAttachments: false and are skipped entirely — even though the attachment is present and retrievable via $expand=attachments. This change removes the hasAttachments gate and instead always fetches attachments, applying inline/regular distinction afterward via isInline and contentId/cid: correlation.
Linked work
Fixes #10288
How I validated this
What I tested and the outcome (required — be specific: scenarios, commands, screenshots for UI changes)
Risk & compatibility