Deleting mails with imapib

Donn Cave donn at u.washington.edu
Thu Jun 29 14:17:08 EDT 2000


Quoth "Morten W. Petersen" <morten at src.no>:
[quoting me]

|>     ok, stuff = self.service.store(number, 'FLAGS', '(\Deleted)')
|>     if ok != 'OK':
|>         raise self.error(stuff)
|
| Where did you take the self.service from?

Didn't take it from anywhere, "service" is just the IMAP4 instance,

    self.service = imaplib.IMAP4(host, port)

Here "self" is the BeOS message dispatch interface for the thread
that handles the IMAP service connection.

	Donn Cave, donn at u.washington.edu



More information about the Python-list mailing list