I am using the imap library to access my unread messages on gmail and to print out the subjects, is there a way to make sure that the messages being read are still tagged as unread.
Thanks
I am using the imap library to access my unread messages on gmail and to print out the subjects, is there a way to make sure that the messages being read are still tagged as unread.
Thanks
Use PEEK instead. For example, something like:
typ, data = imap_conn.fetch(uid, '(BODY.PEEK[TEXT])')
For info, Yours is an inverse question of this one
Use peek, so that you do not affect the message.
But you should also be able to tag the message as unseen.