Unlock the mailbox if it is locked.
(self)
| 1175 | self._locked = True |
| 1176 | |
| 1177 | def unlock(self): |
| 1178 | """Unlock the mailbox if it is locked.""" |
| 1179 | if self._locked: |
| 1180 | _unlock_file(self._file) |
| 1181 | _sync_close(self._file) |
| 1182 | del self._file |
| 1183 | self._locked = False |
| 1184 | |
| 1185 | def flush(self): |
| 1186 | """Write any pending changes to the disk.""" |