Home
last modified time | relevance | path

Searched refs:mimetype (Results 1 – 25 of 88) sorted by relevance

1234

/external/python/cpython2/Doc/library/
Demail.mime.rst35 *_maintype* is the :mailheader:`Content-Type` major type (e.g. :mimetype:`text`
36 or :mimetype:`image`), and *_subtype* is the :mailheader:`Content-Type` minor
37 type (e.g. :mimetype:`plain` or :mimetype:`gif`). *_params* is a parameter
53 class for MIME messages that are not :mimetype:`multipart`. The primary
56 :mimetype:`multipart` messages. If :meth:`~email.message.Message.attach`
69 class for MIME messages that are :mimetype:`multipart`. Optional *_subtype*
70 defaults to :mimetype:`mixed`, but can be used to specify the subtype of the
71 message. A :mailheader:`Content-Type` header of :mimetype:`multipart/_subtype`
99 major type :mimetype:`application`. *_data* is a string containing the raw
101 :mimetype:`octet-stream`.
[all …]
Demail.generator.rst92 except that non-\ :mimetype:`text` parts are substituted with a format string
99 message. If the subpart is of main type :mimetype:`text`, then it prints the
103 If the subpart is not of main type :mimetype:`text`, optional *fmt* is a format
107 * ``type`` -- Full MIME type of the non-\ :mimetype:`text` part
109 * ``maintype`` -- Main MIME type of the non-\ :mimetype:`text` part
111 * ``subtype`` -- Sub-MIME type of the non-\ :mimetype:`text` part
113 * ``filename`` -- Filename of the non-\ :mimetype:`text` part
115 * ``description`` -- Description associated with the non-\ :mimetype:`text` part
117 * ``encoding`` -- Content transfer encoding of the non-\ :mimetype:`text` part
Demail.errors.rst45 terminating boundary in a :mimetype:`multipart/\*` message when strict parsing
54 :mimetype:`multipart` or missing. :exc:`MultipartConversionError` multiply
67 :mimetype:`multipart/alternative` had a malformed header, that nested message
77 but had no :mimetype:`boundary` parameter.
92 :mimetype:`multipart`, but no subparts were found. Note that when a message
94 return false even though its content type claims to be :mimetype:`multipart`.
Demail.message.rst22 MIME container documents (e.g. :mimetype:`multipart/\*` and
23 :mimetype:`message/rfc822`).
141 will be added with a value of :mimetype:`text/plain`. Whether the
153 The message will be assumed to be of type :mimetype:`text/\*`, with the
320 lower case of the form :mimetype:`maintype/subtype`. If there was no
326 :rfc:`2045` defines a message's default type to be :mimetype:`text/plain`
327 unless it appears inside a :mimetype:`multipart/digest` container, in
328 which case it would be :mimetype:`message/rfc822`. If the
330 :rfc:`2045` mandates that the default type be :mimetype:`text/plain`.
337 Return the message's main content type. This is the :mimetype:`maintype`
[all …]
Demail.parser.rst197 * Most non-\ :mimetype:`multipart` type messages are parsed as a single message
202 * All :mimetype:`multipart` type messages will be parsed as a container message
209 * Most messages with a content type of :mimetype:`message/\*` (e.g.
210 :mimetype:`message/delivery-status` and :mimetype:`message/rfc822`) will also be
216 their :mimetype:`multipart`\ -edness. Such messages may have a
217 :mailheader:`Content-Type` header of type :mimetype:`multipart`, but their
Demail.iterators.rst34 :mimetype:`text`.
37 MIME type of :mimetype:`text/\*`.
Demail.encoders.rst10 is especially true for :mimetype:`image/\*` and :mimetype:`text/\*` type messages
Demail.rst169 * The object structure has changed in the face of :mimetype:`message/rfc822`
177 representation for :mimetype:`message/rfc822` content types was changed. In
188 type of :mimetype:`message/rfc822`.
303 :mimetype:`message/delivery-status` type messages, which it represents as a
332 with main type :mimetype:`message`. It takes an optional argument *_subtype*
334 :mimetype:`rfc822`.
Dmultifile.rst167 def extract_mime_part_matching(stream, mimetype):
169 matching mimetype."""
187 if submsg.gettype() == mimetype:
Dic.rst100 flags, extension, appname, postappname, mimetype, entryname)``, where *version*
107 the name of the postprocessing application, *mimetype* is the MIME type of this
Dmimewriter.rst50 :mimetype:`message/rfc822` that's (mis)used to store some header-like
Dcgi.rst163 files from one field (using a recursive :mimetype:`multipart/\*` encoding).
166 :mimetype:`multipart/form-data` (or perhaps another MIME type matching
167 :mimetype:`multipart/\*`). In this case, it can be iterated over recursively
171 data part of type :mimetype:`application/x-www-form-urlencoded`), the items will
307 Parse input of type :mimetype:`multipart/form-data` (for file uploads).
Dmailcap.rst16 :mimetype:`video/mpeg`, ``%s`` will be replaced by a filename (usually one
/external/curl/docs/examples/
Dcurlx.c278 char *mimetype; in main() local
344 mimetype = *(++args); in main()
372 if(mimetype==NULL || mimetypeaccept == NULL) in main()
484 contenttype = malloc(15+strlen(mimetype)); in main()
485 snprintf(contenttype, 15+strlen(mimetype), "Content-type: %s", mimetype); in main()
/external/python/cpython2/Lib/
Dmimetypes.py262 mimetype, datatype = _winreg.QueryValueEx(
267 mimetype = mimetype.encode(default_encoding)
270 self.add_type(mimetype, subkeyname, strict)
/external/googletest/googlemock/scripts/
Dupload.py715 mimetype = mimetypes.guess_type(filename)[0]
716 if not mimetype:
718 return mimetype.startswith("image/")
910 mimetype = RunShell(["svn", "propget", "svn:mime-type", filename],
913 is_binary = mimetype and not mimetype.startswith("text/")
927 mimetype, returncode = RunShellWithReturnCode(cmd)
931 mimetype = ""
933 is_binary = mimetype and not mimetype.startswith("text/")
/external/googletest/googletest/scripts/
Dupload.py715 mimetype = mimetypes.guess_type(filename)[0]
716 if not mimetype:
718 return mimetype.startswith("image/")
910 mimetype = RunShell(["svn", "propget", "svn:mime-type", filename],
913 is_binary = mimetype and not mimetype.startswith("text/")
927 mimetype, returncode = RunShellWithReturnCode(cmd)
931 mimetype = ""
933 is_binary = mimetype and not mimetype.startswith("text/")
/external/v8/testing/gtest/scripts/
Dupload.py715 mimetype = mimetypes.guess_type(filename)[0]
716 if not mimetype:
718 return mimetype.startswith("image/")
910 mimetype = RunShell(["svn", "propget", "svn:mime-type", filename],
913 is_binary = mimetype and not mimetype.startswith("text/")
927 mimetype, returncode = RunShellWithReturnCode(cmd)
931 mimetype = ""
933 is_binary = mimetype and not mimetype.startswith("text/")
/external/google-breakpad/src/testing/scripts/
Dupload.py715 mimetype = mimetypes.guess_type(filename)[0]
716 if not mimetype:
718 return mimetype.startswith("image/")
910 mimetype = RunShell(["svn", "propget", "svn:mime-type", filename],
913 is_binary = mimetype and not mimetype.startswith("text/")
927 mimetype, returncode = RunShellWithReturnCode(cmd)
931 mimetype = ""
933 is_binary = mimetype and not mimetype.startswith("text/")
/external/v8/testing/gmock/scripts/
Dupload.py715 mimetype = mimetypes.guess_type(filename)[0]
716 if not mimetype:
718 return mimetype.startswith("image/")
910 mimetype = RunShell(["svn", "propget", "svn:mime-type", filename],
913 is_binary = mimetype and not mimetype.startswith("text/")
927 mimetype, returncode = RunShellWithReturnCode(cmd)
931 mimetype = ""
933 is_binary = mimetype and not mimetype.startswith("text/")
/external/google-breakpad/src/testing/gtest/scripts/
Dupload.py715 mimetype = mimetypes.guess_type(filename)[0]
716 if not mimetype:
718 return mimetype.startswith("image/")
910 mimetype = RunShell(["svn", "propget", "svn:mime-type", filename],
913 is_binary = mimetype and not mimetype.startswith("text/")
927 mimetype, returncode = RunShellWithReturnCode(cmd)
931 mimetype = ""
933 is_binary = mimetype and not mimetype.startswith("text/")
/external/autotest/frontend/afe/feeds/
Dfeed.py34 response = HttpResponse(mimetype=feedgen.mime_type)
/external/icu/icu4c/source/tools/genrb/
Dwrtxml.cpp549 …SResource *res, const char *container, const char *restype, const char *mimetype, const char *id, … in printContainer() argument
571 if (mimetype != NULL) { in printContainer()
572 printAttribute("mime-type", mimetype, (int32_t) uprv_strlen(mimetype)); in printContainer()
/external/autotest/frontend/tko/
Dcsv_encoder.py18 response = django.http.HttpResponse(mimetype='text/csv')
/external/regex-re2/lib/codereview/
Dcodereview.py3319 mimetype = mimetypes.guess_type(filename)[0]
3320 if not mimetype:
3322 return mimetype.startswith("image/")
3326 mimetype = mimetypes.guess_type(filename)[0]
3327 if not mimetype:
3330 if mimetype in TEXT_MIMETYPES:
3332 return not mimetype.startswith("text/")

1234