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

Method fetch

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

616
617
618 def fetch(self, message_set, message_parts):
619 """Fetch (parts of) messages.
620
621 (typ, [data, ...]) = <instance>.fetch(message_set, message_parts)
622
623 'message_parts' should be a string of selected parts
624 enclosed in parentheses, eg: "(UID BODY[TEXT])".
625
626 'data' are tuples of message part envelope and data.
627 """
628 name = 'FETCH'
629 typ, dat = self._simple_command(name, message_set, message_parts)
630 return self._untagged_response(typ, dat, name)
631
632
633 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