Lock the mailbox.
(self)
| 1091 | return len(list(self.iterkeys())) |
| 1092 | |
| 1093 | def lock(self): |
| 1094 | """Lock the mailbox.""" |
| 1095 | if not self._locked: |
| 1096 | self._file = open(os.path.join(self._path, '.mh_sequences'), 'rb+') |
| 1097 | _lock_file(self._file) |
| 1098 | self._locked = True |
| 1099 | |
| 1100 | def unlock(self): |
| 1101 | """Unlock the mailbox if it is locked.""" |
nothing calls this directly
no test coverage detected