Home
last modified time | relevance | path

Searched refs:unixfrom (Results 1 – 21 of 21) sorted by relevance

/external/python/cpython2/Lib/email/
Dgenerator.py67 def flatten(self, msg, unixfrom=False): argument
78 if unixfrom:
203 g.flatten(part, unixfrom=False)
261 g.flatten(part, unixfrom=False)
288 g.flatten(msg.get_payload(0), unixfrom=False)
Dmessage.py122 return self.as_string(unixfrom=True)
124 def as_string(self, unixfrom=False): argument
137 g.flatten(self, unixfrom=unixfrom)
147 def set_unixfrom(self, unixfrom): argument
148 self._unixfrom = unixfrom
/external/python/cpython3/Lib/email/
Dgenerator.py72 def flatten(self, msg, unixfrom=False, linesep=None): argument
111 if unixfrom:
276 g.flatten(part, unixfrom=False, linesep=self._NL)
335 g.flatten(part, unixfrom=False, linesep=self._NL)
362 g.flatten(msg.get_payload(0), unixfrom=False, linesep=self._NL)
Dmessage.py137 def as_string(self, unixfrom=False, maxheaderlen=0, policy=None): argument
158 g.flatten(self, unixfrom=unixfrom)
166 def as_bytes(self, unixfrom=False, policy=None): argument
178 g.flatten(self, unixfrom=unixfrom)
188 def set_unixfrom(self, unixfrom): argument
189 self._unixfrom = unixfrom
954 def as_string(self, unixfrom=False, maxheaderlen=None, policy=None): argument
/external/python/cpython2/Doc/library/
Demail.generator.rst53 .. method:: flatten(msg[, unixfrom])
60 Optional *unixfrom* is a flag that forces the printing of the envelope
132 ``unixfrom`` argument, and that you set maxheaderlen=0 (which will
Demail.message.rst39 .. method:: as_string([unixfrom])
41 Return the entire message flattened as a string. When optional *unixfrom*
43 *unixfrom* defaults to ``False``. Flattening the message may trigger
64 Equivalent to ``as_string(unixfrom=True)``.
74 .. method:: set_unixfrom(unixfrom)
76 Set the message's envelope header to *unixfrom*, which should be a string.
Drfc822.rst290 .. attribute:: Message.unixfrom
/external/python/cpython3/Doc/library/
Demail.generator.rst81 .. method:: flatten(msg, unixfrom=False, linesep=None)
104 If *unixfrom* is ``True``, print the envelope header delimiter used by
180 .. method:: flatten(msg, unixfrom=False, linesep=None)
197 If *unixfrom* is ``True``, print the envelope header delimiter used by
277 ``unixfrom``, and that there are no :mod:`policy` settings calling for
Demail.message.rst62 .. method:: as_string(unixfrom=False, maxheaderlen=None, policy=None)
65 *unixfrom* is true, the envelope header is included in the returned
66 string. *unixfrom* defaults to ``False``. For backward compatibility
104 .. method:: as_bytes(unixfrom=False, policy=None)
107 *unixfrom* is true, the envelope header is included in the returned
108 string. *unixfrom* defaults to ``False``. The *policy* argument may be
143 .. method:: set_unixfrom(unixfrom)
145 Set the message's envelope header to *unixfrom*, which should be a
Demail.compat32-message.rst67 .. method:: as_string(unixfrom=False, maxheaderlen=0, policy=None)
69 Return the entire message flattened as a string. When optional *unixfrom*
71 *unixfrom* defaults to ``False``. For backward compatibility reasons,
111 .. method:: as_bytes(unixfrom=False, policy=None)
114 *unixfrom* is true, the envelope header is included in the returned
115 string. *unixfrom* defaults to ``False``. The *policy* argument may be
163 .. method:: set_unixfrom(unixfrom)
165 Set the message's envelope header to *unixfrom*, which should be a string.
/external/python/cpython2/Lib/
Drfc822.py138 self.unixfrom = ''
161 self.unixfrom = self.unixfrom + line
Dhttplib.py299 self.unixfrom = ''
324 self.unixfrom = self.unixfrom + line
Dmailbox.py1595 unixfrom = message.get_unixfrom()
1596 if unixfrom is not None and unixfrom.startswith('From '):
1597 self.set_from(unixfrom[5:])
/external/python/cpython3/Lib/test/
Dtest_mailbox.py991 unixfrom = 'From foo@bar blah\n'
992 key0 = self._box.add(unixfrom + self._template % 0)
993 key1 = self._box.add(unixfrom + _sample_message)
999 (unixfrom + self._template % 0).encode('ascii'))
1001 unixfrom.encode('ascii') + _bytes_sample_message)
1005 unixfrom = 'From foo@bar blah\n'
1006 key0 = self._box.add(unixfrom + self._template % 0)
1007 key1 = self._box.add(unixfrom + _sample_message)
1013 unixfrom + self._template % 0)
1015 (unixfrom + _sample_message).split('\n'))
/external/python/apitools/apitools/base/py/
Dbatch.py360 gen.flatten(msg, unixfrom=False)
Dtransfer.py823 g.flatten(msg_root, unixfrom=False)
/external/python/cpython3/Lib/
Dmailbox.py790 self.get_bytes(key, from_)).as_string(unixfrom=from_)
1644 unixfrom = message.get_unixfrom()
1645 if unixfrom is not None and unixfrom.startswith('From '):
1646 self.set_from(unixfrom[5:])
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py300 fullrepr = msg.as_string(unixfrom=True)
354 fullrepr = msg.as_bytes(unixfrom=True)
2760 def _idempotent(self, msg, text, unixfrom=False): argument
2764 g.flatten(msg, unixfrom=unixfrom)
2853 self._idempotent(msg, text, unixfrom=True)
4065 email.generator.BytesGenerator(out).flatten(msg, unixfrom=True)
4221 def _idempotent(self, msg, data, unixfrom=False): argument
4224 g.flatten(msg, unixfrom=unixfrom, linesep=self.linesep)
/external/python/google-api-python-client/googleapiclient/
Dhttp.py1312 g.flatten(msg, unixfrom=False)
1436 g.flatten(message, unixfrom=False)
Ddiscovery.py885 g.flatten(msgRoot, unixfrom=False)
/external/python/cpython3/Doc/whatsnew/
D3.4.rst805 argument, but does accept the *unixfrom* and *policy* arguments. The