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

Method enable

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

509 return self._simple_command('DELETEACL', mailbox, who)
510
511 def enable(self, capability):
512 """Send an RFC5161 enable string to the server.
513
514 (typ, [data]) = <instance>.enable(capability)
515 """
516 if 'ENABLE' not in self.capabilities:
517 raise IMAP4.error("Server does not support ENABLE")
518 typ, data = self._simple_command('ENABLE', capability)
519 if typ == 'OK' and 'UTF8=ACCEPT' in capability.upper():
520 self._mode_utf8()
521 return typ, data
522
523 def expunge(self):
524 """Permanently remove deleted items from selected mailbox.

Callers 6

runctxMethod · 0.45
runcallMethod · 0.45
__enter__Method · 0.45
timeitMethod · 0.45
_exitfuncMethod · 0.45
do_enableMethod · 0.45

Calls 4

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

Tested by

no test coverage detected