Deleting email message using imaplib?
bsneddon at yahoo.com
Mon Aug 25 22:40:05 CEST 2003
Mark Roach wrote:
Works for me too. I did not escape the \.
rookie mistake (:
> On Mon, 25 Aug 2003 16:14:45 -0400, Bill Sneddon wrote:
>>Anyone have an example they are willing to share that shows
>>how to use the store command in imaplib?
>> >>> m.send('A003 STORE 2:4 +FLAGS (\Deleted)')
> here's what I use, works just fine.
> imconn = imaplib.IMAP4(server)
> imconn.login(username, password)
> imconn.store(msgid, "+FLAGS", '(\\Deleted)')
More information about the Python-list