Searched refs:get_payload (Results 1 – 19 of 19) sorted by relevance
141 filenames = [p.get_filename() for p in msg.get_payload()]145 subpart = msg.get_payload(1)152 filenames = [p.get_filename() for p in msg.get_payload()]187 eq(msg.get_payload(decode=True), None)189 eq(msg.get_payload(0).get_payload(decode=True),192 eq(msg.get_payload(1).get_payload(decode=True),195 eq(msg.get_payload(2).get_payload(decode=True),199 eq(msg.get_payload(3).get_payload(decode=True),202 eq(msg.get_payload(4).get_payload(decode=True),211 eq(msg.get_payload(decode=True), 'hello world')[all …]
146 filenames = [p.get_filename() for p in msg.get_payload()]150 subpart = msg.get_payload(1)157 filenames = [p.get_filename() for p in msg.get_payload()]215 eq(msg.get_payload(decode=True), None)217 eq(msg.get_payload(0).get_payload(decode=True),220 eq(msg.get_payload(1).get_payload(decode=True),223 eq(msg.get_payload(2).get_payload(decode=True),227 eq(msg.get_payload(3).get_payload(decode=True),230 eq(msg.get_payload(4).get_payload(decode=True),239 eq(msg.get_payload(decode=True), 'hello world')[all …]
60 ustr = unicode(msg.get_payload(), msg.get_content_charset())
52 payload = msg.get_payload()
44 orig = msg.get_payload()56 orig = msg.get_payload()65 orig = msg.get_payload()
28 for subpart in self.get_payload():41 payload = subpart.get_payload(decode=decode)72 for subpart in msg.get_payload():
173 payload = msg.get_payload()190 subparts = msg.get_payload()258 for part in msg.get_payload():286 payload = msg.get_payload()288 g.flatten(msg.get_payload(0), unixfrom=False)334 print >> self, part.get_payload(decode=True)
392 payload = self._last.get_payload()
168 def get_payload(self, i=None, decode=False): member in Message
80 def get_payload(self): member in Message120 userId='me', body=message.get_payload()).execute()
23 Optional *decode* is passed through to :meth:`Message.get_payload24 <email.message.Message.get_payload>`.
173 :meth:`~email.message.Message.get_payload` was not a list object, but a180 :meth:`~email.message.Message.get_payload` returns a list containing a single185 :meth:`~email.message.Message.get_payload`, you should be fine. You just need252 * The :meth:`~email.message.Message.get_payload` method has grown a *decode*290 :meth:`~email.message.Message.get_payload` method.
106 :meth:`~email.message.Message.get_payload` and136 :meth:`~email.message.Message.get_payload` and164 :meth:`~email.message.Message.get_payload` and
21 the subparts can be accessed via the :meth:`~email.message.Message.get_payload`200 :meth:`~email.message.Message.get_payload` method will return a string object.206 :meth:`~email.message.Message.get_payload` method will return the list of
94 .. method:: get_payload([i[, decode]])101 With optional argument *i*, :meth:`get_payload` will return the *i*-th
33 self.assertEqual(len(msg.get_payload()), len(_sample_payloads))35 part = msg.get_payload(i)38 self.assertEqual(part.get_payload(), payload)140 self.assertEqual(msg.get_payload(), '0\n')156 self.assertEqual(msg.get_payload(), '0\n')168 self.assertEqual(msg0.get_payload(), '0\n')252 self.assertLess(int(value.get_payload()), repetitions)340 self.assertEqual(self._box.pop(key0).get_payload(), '0\n')345 self.assertEqual(self._box.pop(key2).get_payload(), '2\n')348 self.assertEqual(self._box.pop(key1).get_payload(), '1\n')[all …]
63 fp.write(part.get_payload(decode=True))
6645 - Issue #7143: email: ``get_payload()`` used to strip any trailing newline from