Return a count of messages in the mailbox.
(self)
| 411 | return key in self._toc |
| 412 | |
| 413 | def __len__(self): |
| 414 | """Return a count of messages in the mailbox.""" |
| 415 | self._refresh() |
| 416 | return len(self._toc) |
| 417 | |
| 418 | def flush(self): |
| 419 | """Write any pending changes to disk.""" |