Return a count of messages in the mailbox.
(self)
| 1087 | return os.path.exists(os.path.join(self._path, str(key))) |
| 1088 | |
| 1089 | def __len__(self): |
| 1090 | """Return a count of messages in the mailbox.""" |
| 1091 | return len(list(self.iterkeys())) |
| 1092 | |
| 1093 | def lock(self): |
| 1094 | """Lock the mailbox.""" |