MCPcopy
hub / github.com/charlierguo/gmail / fetch

Method fetch

gmail/message.py:177–183  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175
176
177 def fetch(self):
178 if not self.message:
179 response, results = self.gmail.imap.uid('FETCH', self.uid, '(BODY.PEEK[] FLAGS X-GM-THRID X-GM-MSGID X-GM-LABELS)')
180
181 self.parse(results[0])
182
183 return self.message
184
185 # returns a list of fetched messages (both sent and received) in chronological order
186 def fetch_thread(self):

Callers 1

fetch_threadMethod · 0.95

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected