Skip to content

How to fetch messages with setting the SEEN flag? #536

Answered by mjs
jsuto asked this question in Q&A
Discussion options

You must be logged in to vote

There's two ways to do this, open the folder as read only when calling select_folder or retrieve messages using BODY.PEEK[].

e.g.

client.fetch(msg_ids, ['BODY.PEEK[]'])

BODY.PEEK[] is the same RFC822 but won't affect the read status of messages.

https://www.rfc-editor.org/rfc/rfc3501#section-6.4.5

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants