Lock the mailbox.
(self)
| 690 | return len(self._toc) |
| 691 | |
| 692 | def lock(self): |
| 693 | """Lock the mailbox.""" |
| 694 | if not self._locked: |
| 695 | _lock_file(self._file) |
| 696 | self._locked = True |
| 697 | |
| 698 | def unlock(self): |
| 699 | """Unlock the mailbox if it is locked.""" |
nothing calls this directly
no test coverage detected