MCPcopy Index your code
hub / github.com/RustPython/RustPython / close

Method close

Lib/imaplib.py:550–562  ·  view source on GitHub ↗

Close currently selected mailbox. Deleted messages are removed from writable mailbox. This is the recommended command before 'LOGOUT'. (typ, [data]) = .close()

(self)

Source from the content-addressed store, hash-verified

548
549
550 def close(self):
551 """Close currently selected mailbox.
552
553 Deleted messages are removed from writable mailbox.
554 This is the recommended command before 'LOGOUT'.
555
556 (typ, [data]) = <instance>.close()
557 """
558 try:
559 typ, dat = self._simple_command('CLOSE')
560 finally:
561 self.state = 'AUTH'
562 return typ, dat
563
564
565 def copy(self, message_set, new_mailbox):

Callers 2

shutdownMethod · 0.45
shutdownMethod · 0.45

Calls 1

_simple_commandMethod · 0.95

Tested by

no test coverage detected