-
I have a script that imports a user's emails to an archive daily by fetching today's data. However the user is confused because after the script has run all of his emails are marked as read (=seen). So I wonder of there's a way to instruct fetch not to set the SEEN flag? |
Beta Was this translation helpful? Give feedback.
Answered by
mjs
Sep 10, 2023
Replies: 1 comment
-
There's two ways to do this, open the folder as read only when calling e.g. client.fetch(msg_ids, ['BODY.PEEK[]'])
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mjs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's two ways to do this, open the folder as read only when calling
select_folder
or retrieve messages usingBODY.PEEK[]
.e.g.
BODY.PEEK[]
is the sameRFC822
but won't affect the read status of messages.https://www.rfc-editor.org/rfc/rfc3501#section-6.4.5