Home
last modified time | relevance | path

Searched refs:unixfrom (Results 1 – 20 of 20) 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:
272 g.flatten(part, unixfrom=False, linesep=self._NL)
331 g.flatten(part, unixfrom=False, linesep=self._NL)
358 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.rst77 .. method:: flatten(msg, unixfrom=False, linesep=None)
100 If *unixfrom* is ``True``, print the envelope header delimiter used by
176 .. method:: flatten(msg, unixfrom=False, linesep=None)
193 If *unixfrom* is ``True``, print the envelope header delimiter used by
273 ``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.rst66 .. method:: as_string(unixfrom=False, maxheaderlen=0, policy=None)
68 Return the entire message flattened as a string. When optional *unixfrom*
70 *unixfrom* defaults to ``False``. For backward compatibility reasons,
110 .. method:: as_bytes(unixfrom=False, policy=None)
113 *unixfrom* is true, the envelope header is included in the returned
114 string. *unixfrom* defaults to ``False``. The *policy* argument may be
162 .. method:: set_unixfrom(unixfrom)
164 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/apitools/apitools/base/py/
Dbatch.py350 gen.flatten(msg, unixfrom=False)
Dtransfer.py765 g.flatten(msg_root, unixfrom=False)
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py300 fullrepr = msg.as_string(unixfrom=True)
319 fullrepr = msg.as_bytes(unixfrom=True)
2716 def _idempotent(self, msg, text, unixfrom=False): argument
2720 g.flatten(msg, unixfrom=unixfrom)
2809 self._idempotent(msg, text, unixfrom=True)
4005 email.generator.BytesGenerator(out).flatten(msg, unixfrom=True)
4161 def _idempotent(self, msg, data, unixfrom=False): argument
4164 g.flatten(msg, unixfrom=unixfrom, linesep=self.linesep)
/external/python/cpython3/Lib/
Dmailbox.py787 self.get_bytes(key)).as_string(unixfrom=from_)
1641 unixfrom = message.get_unixfrom()
1642 if unixfrom is not None and unixfrom.startswith('From '):
1643 self.set_from(unixfrom[5:])
/external/python/google-api-python-client/googleapiclient/
Dhttp.py1252 g.flatten(msg, unixfrom=False)
1374 g.flatten(message, unixfrom=False)
Ddiscovery.py865 g.flatten(msgRoot, unixfrom=False)
/external/python/cpython3/Doc/whatsnew/
D3.4.rst805 argument, but does accept the *unixfrom* and *policy* arguments. The