Lock the mailbox.
(self)
| 638 | return len(self._toc) |
| 639 | |
| 640 | def lock(self): |
| 641 | """Lock the mailbox.""" |
| 642 | if not self._locked: |
| 643 | _lock_file(self._file) |
| 644 | self._locked = True |
| 645 | |
| 646 | def unlock(self): |
| 647 | """Unlock the mailbox if it is locked.""" |
nothing calls this directly
no test coverage detected