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

Method fetch

tools/python-3.11.9-amd64/Lib/imaplib.py:537–549  ·  view source on GitHub ↗

Fetch (parts of) messages. (typ, [data, ...]) = .fetch(message_set, message_parts) 'message_parts' should be a string of selected parts enclosed in parentheses, eg: "(UID BODY[TEXT])". 'data' are tuples of message part envelope and data.

(self, message_set, message_parts)

Source from the content-addressed store, hash-verified

535
536
537 def fetch(self, message_set, message_parts):
538 """Fetch (parts of) messages.
539
540 (typ, [data, ...]) = <instance>.fetch(message_set, message_parts)
541
542 'message_parts' should be a string of selected parts
543 enclosed in parentheses, eg: "(UID BODY[TEXT])".
544
545 'data' are tuples of message part envelope and data.
546 """
547 name = 'FETCH'
548 typ, dat = self._simple_command(name, message_set, message_parts)
549 return self._untagged_response(typ, dat, name)
550
551
552 def getacl(self, mailbox):

Callers

nothing calls this directly

Calls 2

_simple_commandMethod · 0.95
_untagged_responseMethod · 0.95

Tested by

no test coverage detected