deleting IMAP messages using imaplib
glevenson at mediaone.net
Wed Mar 14 00:35:05 CET 2001
"Donn Cave" <donn at oz.net> wrote in message
news:98m9af$ivm$0 at 220.127.116.11...
> Quoth "Gary" <garyl at directhit.com>:
> | Can anyone tell me how to delete messages in an IMAP mailbox? The doc
> | delete is used to delete a mailbox, while expunge is used to clear out
> | deleted items. How do I delete a message itself?
> It's only a flag, to identify the message that as you noted
> will be actually deleted later by an expunge.
> ok, error = imapobject.store(number, 'FLAGS', '(\Deleted)')
> Donn Cave, donn at oz.net
More information about the Python-list