(self)
| 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): |