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

Method enable

Lib/imaplib.py:592–602  ·  view source on GitHub ↗

Send an RFC5161 enable string to the server. (typ, [data]) = .enable(capability)

(self, capability)

Source from the content-addressed store, hash-verified

590 return self._simple_command('DELETEACL', mailbox, who)
591
592 def enable(self, capability):
593 """Send an RFC5161 enable string to the server.
594
595 (typ, [data]) = <instance>.enable(capability)
596 """
597 if 'ENABLE' not in self.capabilities:
598 raise IMAP4.error("Server does not support ENABLE")
599 typ, data = self._simple_command('ENABLE', capability)
600 if typ == 'OK' and 'UTF8=ACCEPT' in capability.upper():
601 self._mode_utf8()
602 return typ, data
603
604 def expunge(self):
605 """Permanently remove deleted items from selected mailbox.

Callers 15

timeitMethod · 0.45
_exitfuncMethod · 0.45
do_enableMethod · 0.45
runctxMethod · 0.45
runcallMethod · 0.45
__enter__Method · 0.45
test_xxtestfuzz.pyFile · 0.45
test_delMethod · 0.45
test_del_newclassMethod · 0.45
test_trashcanMethod · 0.45

Calls 4

_simple_commandMethod · 0.95
_mode_utf8Method · 0.95
errorMethod · 0.45
upperMethod · 0.45