Skip to content

fix(imap): use PEEK when fetching attachment/body content - #13390

Open
Pzipp wants to merge 1 commit into
nextcloud:mainfrom
Pzipp:fix/attachment-fetch-marks-as-read
Open

fix(imap): use PEEK when fetching attachment/body content#13390
Pzipp wants to merge 1 commit into
nextcloud:mainfrom
Pzipp:fix/attachment-fetch-marks-as-read

Conversation

@Pzipp

@Pzipp Pzipp commented Jul 31, 2026

Copy link
Copy Markdown

buildAttachmentsPartsQuery() and getAttachment() fetch full message text and body parts without the 'peek' option, unlike every other fetch in this file. Per RFC 3501, a non-PEEK fetch implicitly sets \Seen on the IMAP server, so viewing attachments or the HTML body (e.g. via itinerary detection) silently marks messages as read on the server without any explicit read action.

AI-assisted: Claude Code (Claude Sonnet 5)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

buildAttachmentsPartsQuery() and getAttachment() fetch full message
text and body parts without the 'peek' option, unlike every other
fetch in this file. Per RFC 3501, a non-PEEK fetch implicitly sets
\Seen on the IMAP server, so viewing attachments or the HTML body
(e.g. via itinerary detection) silently marks messages as read on
the server without any explicit read action.

AI-assisted: Claude Code (Claude Sonnet 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant