Lock the mailbox.
(self)
| 1168 | pass |
| 1169 | |
| 1170 | def lock(self): |
| 1171 | """Lock the mailbox.""" |
| 1172 | if not self._locked: |
| 1173 | self._file = self._open_mh_sequences_file(text=False) |
| 1174 | _lock_file(self._file) |
| 1175 | self._locked = True |
| 1176 | |
| 1177 | def unlock(self): |
| 1178 | """Unlock the mailbox if it is locked.""" |