@@ -451,9 +451,9 @@ msgid ""
451451" If the :mailheader:`Content-Type` header is invalid, return "
452452"``text/plain``."
453453msgstr ""
454- "返回信息的内容类型,其形如 :mimetype:`maintype/subtype` ,强制全小写。如果信息的 :mailheader "
455- ":`Content-Type` 头字段不存在则返回 :meth:`get_default_type` 的返回值;如果信息的 :mailheader "
456- ":`Content-Type` 头字段无效则返回 ``text/plain`` 。"
454+ "返回信息的内容类型,其形如 :mimetype:`maintype/subtype` ,强制全小写。如果信息的 "
455+ ":mailheader: `Content-Type` 头字段不存在则返回 :meth:`get_default_type` 的返回值;如果信息的 "
456+ ":mailheader: `Content-Type` 头字段无效则返回 ``text/plain`` 。"
457457
458458#: ../../library/email.message.rst:317
459459msgid ""
@@ -467,8 +467,9 @@ msgid ""
467467msgstr ""
468468"(根据 :rfc:`2045` 所述,信息永远都有一个默认类型,所以 :meth:`get_content_type` 一定会返回一个值。 "
469469":rfc:`2045` 定义信息的默认类型为 :mimetype:`text/plain` 或 :mimetype:`message/rfc822` "
470- ",其中后者仅出现在消息头位于一个 :mimetype:`multipart/digest` 容器中的场合中。如果消息头的 :mailheader"
471- ":`Content-Type` 字段所指定的类型是无效的, :rfc:`2045` 令其默认类型为 :mimetype:`text/plain` 。)"
470+ ",其中后者仅出现在消息头位于一个 :mimetype:`multipart/digest` 容器中的场合中。如果消息头的 "
471+ ":mailheader:`Content-Type` 字段所指定的类型是无效的, :rfc:`2045` 令其默认类型为 "
472+ ":mimetype:`text/plain` 。)"
472473
473474#: ../../library/email.message.rst:328
474475msgid ""
@@ -501,10 +502,10 @@ msgstr ""
501502msgid ""
502503"Set the default content type. *ctype* should either be "
503504":mimetype:`text/plain` or :mimetype:`message/rfc822`, although this is not "
504- "enforced. The default content type is not stored in the :mailheader "
505- ":`Content-Type` header, so it only affects the return value of the "
506- "``get_content_type`` methods when no :mailheader:`Content-Type` header is "
507- "present in the message."
505+ "enforced. The default content type is not stored in the "
506+ ":mailheader: `Content-Type` header, so it only affects the return value of "
507+ "the ``get_content_type`` methods when no :mailheader:`Content-Type` header "
508+ "is present in the message."
508509msgstr ""
509510"设置默认的内容类型。 尽管并非强制,但是 *ctype* 仍应当是 :mimetype:`text/plain` 或 "
510511":mimetype:`message/rfc822` 二者取一。默认内容类型并不存储在 :mailheader:`Content-Type` "
@@ -608,8 +609,8 @@ msgid ""
608609"has no :mailheader:`Content-Type` header."
609610msgstr ""
610611"将 :mailheader:`Content-Type` 头字段的 ``boundary`` 参数设置为 *boundary* 。 "
611- ":meth:`set_boundary` 方法永远都会在必要的时候为 *boundary* 添加引号。如果信息对象中没有 :mailheader "
612- ":`Content-Type` 头字段,抛出 :exc:`~email.errors.HeaderParseError` 异常。"
612+ ":meth:`set_boundary` 方法永远都会在必要的时候为 *boundary* 添加引号。如果信息对象中没有 "
613+ ":mailheader: `Content-Type` 头字段,抛出 :exc:`~email.errors.HeaderParseError` 异常。"
613614
614615#: ../../library/email.message.rst:424
615616msgid ""
@@ -758,8 +759,8 @@ msgid ""
758759"it when looking for candidate matches. Otherwise consider only the first "
759760"(default root) part of the ``multipart/related``."
760761msgstr ""
761- "当遇到一个 ``multipart/related`` 时,将检查 ``start`` 形参并且如果找到了一个匹配 :mailheader "
762- ":`Content-ID` 的部分,在查找候选匹配时只考虑它。 在其他情况下则只考虑 ``multipart/related`` "
762+ "当遇到一个 ``multipart/related`` 时,将检查 ``start`` 形参并且如果找到了一个匹配 "
763+ ":mailheader: `Content-ID` 的部分,在查找候选匹配时只考虑它。 在其他情况下则只考虑 ``multipart/related`` "
763764"的第一个(默认的根)部分。"
764765
765766#: ../../library/email.message.rst:557
@@ -791,9 +792,9 @@ msgstr ""
791792"注: (1) 对于大多数应用来说有意义的 *preferencelist* 组合仅有 ``('plain',)``, ``('html', "
792793"'plain')`` 以及默认的 ``('related', 'html', 'plain')``。 (2) 由于匹配是从调用 ``get_body``"
793794" 的对象开始的,因此在 ``multipart/related`` 上调用 ``get_body`` 将返回对象本身,除非 "
794- "*preferencelist* 具有非默认值。 (3) 未指定 :mailheader:`Content-Type` 或者 :mailheader "
795- ":`Content-Type` 标头无效的消息(或消息部分)将被当作具有 ``text/plain`` 类型来处理,这有时可能导致 "
796- "``get_body`` 返回非预期的结果。"
795+ "*preferencelist* 具有非默认值。 (3) 未指定 :mailheader:`Content-Type` 或者 "
796+ ":mailheader: `Content-Type` 标头无效的消息(或消息部分)将被当作具有 ``text/plain`` 类型来处理,这有时可能导致"
797+ " ``get_body`` 返回非预期的结果。"
797798
798799#: ../../library/email.message.rst:577
799800msgid ""
@@ -805,8 +806,8 @@ msgid ""
805806" parts. When applied directly to a ``multipart/related``, return an "
806807"iterator over the all the related parts except the root part (ie: the part "
807808"pointed to by the ``start`` parameter, or the first part if there is no "
808- "``start`` parameter or the ``start`` parameter doesn't match the :mailheader "
809- ":`Content-ID` of any of the parts). When applied directly to a "
809+ "``start`` parameter or the ``start`` parameter doesn't match the "
810+ ":mailheader: `Content-ID` of any of the parts). When applied directly to a "
810811"``multipart/alternative`` or a non-``multipart``, return an empty iterator."
811812msgstr ""
812813"返回包含所有不是候选 \" body\" 部分的消息的直接子部分的迭代器。 也就是说,跳过首次出现的每个 ``text/plain``, "
@@ -908,8 +909,8 @@ msgstr ""
908909":meth:`~email.message.Message.attach` 到 ``multipart``。 如果消息为非 "
909910"``multipart``,则先调用 :meth:`make_related` 然后再继续上述步骤。 如果消息为任何其他类型的 "
910911"``multipart``,则会引发 :exc:`TypeError`。 如果未指定 *content_manager*,则使用当前 "
911- ":mod:`~email.policy` 所指定的 ``content_manager``。 如果添加的部分没有 :mailheader "
912- ":`Content-Disposition` 标头,则会添加一个值为 ``inline`` 的标头。"
912+ ":mod:`~email.policy` 所指定的 ``content_manager``。 如果添加的部分没有 "
913+ ":mailheader: `Content-Disposition` 标头,则会添加一个值为 ``inline`` 的标头。"
913914
914915#: ../../library/email.message.rst:661
915916msgid ""
0 commit comments