Deleting mails with imapib
Morten W. Petersen
morten at src.no
Thu Jun 29 08:19:33 EDT 2000
> | The imaplib.IMAP connection doesn't seem to have a method that lets you
> | delete mails? only expunge etc..
>
> Of course expunge is what really deletes them - the delete option
> in the mailer just sets a flag on the message. Here's how I do it -
>
> ok, stuff = self.service.store(number, 'FLAGS', '(\Deleted)')
> if ok != 'OK':
> raise self.error(stuff)
Where did you take the self.service from?
-Morten
More information about the Python-list
mailing list