python - Fetch an email with imaplib but do not mark it as SEEN -


I want to parse some emails from the user's inbox, but when I do:

 < Code> type, msg_data = imap_conn.fetch (uid, '(RFC822)')  

This email is viewed or read. This is not the desired functionality Do you know how can I see an email in my previous nest, or have not I seen it or not?

You can also really read_only set while selecting the folder. .select ('inbox', readonly = true)


Comments