MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / close

Method close

tools/python-3.11.9-amd64/Lib/imaplib.py:466–478  ·  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

464
465
466 def close(self):
467 """Close currently selected mailbox.
468
469 Deleted messages are removed from writable mailbox.
470 This is the recommended command before 'LOGOUT'.
471
472 (typ, [data]) = <instance>.close()
473 """
474 try:
475 typ, dat = self._simple_command('CLOSE')
476 finally:
477 self.state = 'AUTH'
478 return typ, dat
479
480
481 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