deleting IMAP messages using imaplib

Gary glevenson at
Wed Mar 14 00:35:05 CET 2001


"Donn Cave" <donn at> wrote in message
news:98m9af$ivm$0 at
> Quoth "Gary" <garyl at>:
> | 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 =, 'FLAGS', '(\Deleted)')
> Donn Cave, donn at

More information about the Python-list mailing list