parameters: (self)
docstring: Flush and close the mailbox.
docstring_summary: Flush and close the mailbox.
docstring_tokens: Flush and close the mailbox .
function: def close(self):
          """Flush and close the mailbox."""
          if self._locked:
              self.unlock()
function_tokens: def close ( self ) : if self . _locked : self . unlock ( )