I receive emails from my mail server using IMAPClient (Python), checking that email messages are marked as "\ Recent". After the message has been read, the mail server automatically sets the email flag to "\ Seen".
What I want to do is reset the email flag for "\ Recent", so when I check the email address directly on the server, it still appears as unread.
What I find is that IMAPClient throws an exception when I try to add the "\ Recent" flag to an email using the set_flag definition of IMAPClient. Adding any other flag works fine.
The IMAPClient documentation states that the Recent flag is read-only, but I was wondering if there was a way to mark the email as unreadable.
From my understanding of email software such as Thunderbird, you can set emails as unreadable, so I guess there should be a way to do this.
Thanks.
source share