Delete Mail with Python Outlook IMAP -
i´m trying delete mails in outlook mail account.
this code :
message_to_delete in messages: print(message_to_delete) server.store(message_to_delete, '+flags', '\\deleted') print(server.expunge())
wont work. last print returns:
b'584' ('ok', [none])
is there different flag in outlook? or problem?
greetings
Comments
Post a Comment