Home
last modified time | relevance | path

Searched refs:subparts (Results 1 – 25 of 31) sorted by relevance

12

/external/python/cpython2/Lib/email/
Dgenerator.py190 subparts = msg.get_payload()
191 if subparts is None:
192 subparts = []
193 elif isinstance(subparts, basestring):
195 self._fp.write(subparts)
197 elif not isinstance(subparts, list):
199 subparts = [subparts]
200 for part in subparts:
/external/python/cpython3/Lib/email/
Dgenerator.py259 subparts = msg.get_payload()
260 if subparts is None:
261 subparts = []
262 elif isinstance(subparts, str):
264 self.write(subparts)
266 elif not isinstance(subparts, list):
268 subparts = [subparts]
269 for part in subparts:
Dmessage.py1001 subparts = part.get_payload()
1002 candidate = subparts[0] if subparts else None
/external/curl/src/
Dtool_formparse.c53 m->prev = parent->subparts; in tool_mime_new()
54 parent->subparts = m; in tool_mime_new()
165 if(mime->subparts) in tool_mime_free()
166 tool_mime_free(mime->subparts); in tool_mime_free()
334 ret = tool2curlparts(curl, m->subparts, *mime); in tool2curlmime()
799 tool_mime *subparts = NULL; in formparse() local
814 if(!subparts) { in formparse()
816 subparts = *mimecurrent; in formparse()
818 NULL_CHECK(subparts, tool_mime_new_parts(*mimecurrent), 8); in formparse()
823 tool_mime_new_filedata(subparts, data, TRUE, &res), 9); in formparse()
[all …]
Dtool_formparse.h52 tool_mime *subparts; /* Part's subparts. */ member
Dtool_setopt.c568 if(toolmime->subparts) { in libcurl_generate_mime()
571 toolmime->subparts, *mimeno); in libcurl_generate_mime()
/external/python/cpython2/Doc/library/
Demail.iterators.rst16 This iterates over all the payloads in all the subparts of *msg*, returning the
29 This iterates over all the subparts of *msg*, returning only those subparts that
Demail.generator.rst66 Note that for subparts, no envelope header is ever printed.
98 This class, derived from :class:`Generator` walks through all the subparts of a
Demail.parser.rst21 the subparts can be accessed via the :meth:`~email.message.Message.get_payload`
139 message (which may contain MIME-encoded subparts).
207 :class:`~email.message.Message` subparts.
Demail.encoders.rst22 must be applied to individual subparts instead, and will raise a
Demail.mime.rst79 *_subparts* is a sequence of initial subparts for the payload. It must be
80 possible to convert this sequence to a list. You can always attach new subparts
Demail.errors.rst92 :mimetype:`multipart`, but no subparts were found. Note that when a message
Demail.message.rst354 type of :mimetype:`text/plain`, except for messages that are subparts of
355 :mimetype:`multipart/digest` containers. Such subparts have a default
537 iterate over all the parts and subparts of a message object tree, in
/external/curl/lib/
Dmime.c1468 curl_mime *subparts, int take_ownership) in Curl_mime_set_subparts() argument
1476 if(part->kind == MIMEKIND_MULTIPART && part->arg == subparts) in Curl_mime_set_subparts()
1481 if(subparts) { in Curl_mime_set_subparts()
1483 if(part->easy && subparts->easy && part->easy != subparts->easy) in Curl_mime_set_subparts()
1487 if(subparts->parent) in Curl_mime_set_subparts()
1495 if(subparts == root) { in Curl_mime_set_subparts()
1502 subparts->parent = part; in Curl_mime_set_subparts()
1506 part->arg = subparts; in Curl_mime_set_subparts()
1514 CURLcode curl_mime_subparts(curl_mimepart *part, curl_mime *subparts) in curl_mime_subparts() argument
1516 return Curl_mime_set_subparts(part, subparts, TRUE); in curl_mime_subparts()
[all …]
Dmime.h134 curl_mime *subparts, int take_ownership);
/external/python/cpython3/Doc/library/
Demail.iterators.rst19 This iterates over all the payloads in all the subparts of *msg*, returning the
32 This iterates over all the subparts of *msg*, returning only those subparts that
Demail.parser.rst25 method, and the subparts can be accessed via the payload manipulation methods,
166 message (which may contain MIME-encoded subparts, including subparts
304 :meth:`~email.message.EmailMessage.iter_parts` will yield a list of subparts.
Demail.encoders.rst31 must be applied to individual subparts instead, and will raise a
Demail.message.rst341 type of :mimetype:`text/plain`, except for messages that are subparts of
342 :mimetype:`multipart/digest` containers. Such subparts have a default
478 iterate over all the parts and subparts of a message object tree, in
504 ``walk`` iterates over the subparts of any part where
532 subparts. ``is_multipart()`` returns ``True`` and ``walk`` descends
533 into the subparts.
Demail.compat32-message.rst459 type of :mimetype:`text/plain`, except for messages that are subparts of
460 :mimetype:`multipart/digest` containers. Such subparts have a default
654 iterate over all the parts and subparts of a message object tree, in
684 ``walk`` iterates over the subparts of any part where
712 subparts. ``is_multipart()`` returns ``True`` and ``walk`` descends
713 into the subparts.
Demail.errors.rst100 :mimetype:`multipart`, but no subparts were found. Note that when a message
Demail.mime.rst93 *_subparts* is a sequence of initial subparts for the payload. It must be
94 possible to convert this sequence to a list. You can always attach new subparts
Demail.generator.rst104 Note that for subparts, no envelope header is ever printed.
197 Note that for subparts, no envelope header is ever printed.
/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py2412 subparts = 0
2414 subparts += 1
2416 eq(subparts, 2)
2429 subparts = 0
2431 subparts += 1
2433 eq(subparts, 1)
Dtest_email.py2551 subparts = 0
2553 subparts += 1
2555 eq(subparts, 2)
2568 subparts = 0
2570 subparts += 1
2572 eq(subparts, 1)

12