MCPcopy Index your code
hub / github.com/python/cpython / close

Method close

Lib/imaplib.py:547–559  ·  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

545
546
547 def close(self):
548 """Close currently selected mailbox.
549
550 Deleted messages are removed from writable mailbox.
551 This is the recommended command before 'LOGOUT'.
552
553 (typ, [data]) = <instance>.close()
554 """
555 try:
556 typ, dat = self._simple_command('CLOSE')
557 finally:
558 self.state = 'AUTH'
559 return typ, dat
560
561
562 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