/external/python/cpython2/Lib/email/ |
D | generator.py | 67 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)
|
D | message.py | 122 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/ |
D | generator.py | 72 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)
|
D | message.py | 137 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/ |
D | email.generator.rst | 53 .. 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
|
D | email.message.rst | 39 .. 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.
|
D | rfc822.rst | 290 .. attribute:: Message.unixfrom
|
/external/python/cpython3/Doc/library/ |
D | email.generator.rst | 81 .. 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
|
D | email.message.rst | 62 .. 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
|
D | email.compat32-message.rst | 67 .. 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/ |
D | rfc822.py | 138 self.unixfrom = '' 161 self.unixfrom = self.unixfrom + line
|
D | httplib.py | 299 self.unixfrom = '' 324 self.unixfrom = self.unixfrom + line
|
D | mailbox.py | 1595 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/ |
D | test_mailbox.py | 991 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/ |
D | batch.py | 360 gen.flatten(msg, unixfrom=False)
|
D | transfer.py | 823 g.flatten(msg_root, unixfrom=False)
|
/external/python/cpython3/Lib/ |
D | mailbox.py | 790 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/ |
D | test_email.py | 300 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/ |
D | http.py | 1312 g.flatten(msg, unixfrom=False) 1436 g.flatten(message, unixfrom=False)
|
D | discovery.py | 885 g.flatten(msgRoot, unixfrom=False)
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.4.rst | 805 argument, but does accept the *unixfrom* and *policy* arguments. The
|