Skip to content

test(direct_imap): always pass mark_seen=False to fetch() - #8685

Open
link2xt wants to merge 1 commit into
mainfrom
link2xt/imap_tools-mark_seen-false
Open

link2xt wants to merge 1 commit into
mainfrom
link2xt/imap_tools-mark_seen-false

Conversation

@link2xt

@link2xt link2xt commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

mark_seen=True is the default and translates to fetching BODY of the message. mark_seen=False translates to fetching BODY.PEEK that is described in IETF RFC 3501 as "An alternate form of BODY[<section>] that does not implicitly set the \Seen flag."

It is unexpected unless you know this detail of IMAP protocol already,
but this is not going to be fixed in imap_tools: ikvk/imap_tools#179

@link2xt
link2xt force-pushed the link2xt/imap_tools-mark_seen-false branch from f9026f5 to d44d173 Compare September 13, 2026 22:26
mark_seen=True is the default and translates to fetching BODY
of the message. mark_seen=False translates to fetching BODY.PEEK
that is described in IETF RFC 3501 as
"An alternate form of BODY[<section>] that does not implicitly set the \Seen flag."

It is unexpected unless you know this detail of IMAP protocol already,
but this is not going to be fixed in imap_tools: <ikvk/imap_tools#179>
@link2xt
link2xt force-pushed the link2xt/imap_tools-mark_seen-false branch from d44d173 to da43e24 Compare September 13, 2026 22:27
@link2xt
link2xt marked this pull request as ready for review September 13, 2026 22:43
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