parameters: (self)
docstring: Lock the mailbox.
docstring_summary: Lock the mailbox.
docstring_tokens: Lock the mailbox .
function: def lock(self):
          """Lock the mailbox."""
          raise NotImplementedError('Method must be implemented by subclass')
function_tokens: def lock ( self ) : raise NotImplementedError ( 'Method must be implemented by subclass' )