Unlock the mailbox if it is locked.
(self)
| 1168 | self._locked = True |
| 1169 | |
| 1170 | def unlock(self): |
| 1171 | """Unlock the mailbox if it is locked.""" |
| 1172 | if self._locked: |
| 1173 | _unlock_file(self._file) |
| 1174 | _sync_close(self._file) |
| 1175 | del self._file |
| 1176 | self._locked = False |
| 1177 | |
| 1178 | def flush(self): |
| 1179 | """Write any pending changes to the disk.""" |