Return a count of messages in the mailbox.
(self)
| 1143 | return os.path.exists(os.path.join(self._path, str(key))) |
| 1144 | |
| 1145 | def __len__(self): |
| 1146 | """Return a count of messages in the mailbox.""" |
| 1147 | return len(list(self.iterkeys())) |
| 1148 | |
| 1149 | def _open_mh_sequences_file(self, text): |
| 1150 | mode = '' if text else 'b' |