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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -