My program reads all of the messages in my inbox, but only replies to the sender that I specified. I want to somehow make it to where the messages that weren't replied to become unread again. I'm using a Visual Code on MACOSX.
I tried setting the readonly value as True for when it checks the Inbox. The issue with this is that the program leaves the same emails unread and ends up replying to them multiple times. Is there a better way to select a folder ?
def imap_init():
print("Initializing IMAP . . . ", end = '')
global client
client = imapclient.IMAPClient(imapserver)
client.login(radr,pwd)
client.select_folder("Inbox", readonly=False)