Lock the mailbox.
(self)
| 697 | return len(self._toc) |
| 698 | |
| 699 | def lock(self): |
| 700 | """Lock the mailbox.""" |
| 701 | if not self._locked: |
| 702 | _lock_file(self._file) |
| 703 | self._locked = True |
| 704 | |
| 705 | def unlock(self): |
| 706 | """Unlock the mailbox if it is locked.""" |
nothing calls this directly
no test coverage detected