@@ -451,9 +451,9 @@ msgid ""
451451" If the :mailheader:`Content-Type` header is invalid, return "
452452"``text/plain``."
453453msgstr ""
454- "返回信息的内容类型,其形如 :mimetype:`maintype/subtype` ,强制全小写。如果信息的 "
455- ":mailheader: `Content-Type` 头字段不存在则返回 :meth:`get_default_type` 的返回值;如果信息的 "
456- ":mailheader: `Content-Type` 头字段无效则返回 ``text/plain`` 。"
454+ "返回信息的内容类型,其形如 :mimetype:`maintype/subtype` ,强制全小写。如果信息的 :mailheader "
455+ ":`Content-Type` 头字段不存在则返回 :meth:`get_default_type` 的返回值;如果信息的 :mailheader "
456+ ":`Content-Type` 头字段无效则返回 ``text/plain`` 。"
457457
458458#: ../../library/email.message.rst:317
459459msgid ""
@@ -467,9 +467,8 @@ msgid ""
467467msgstr ""
468468"(根据 :rfc:`2045` 所述,信息永远都有一个默认类型,所以 :meth:`get_content_type` 一定会返回一个值。 "
469469":rfc:`2045` 定义信息的默认类型为 :mimetype:`text/plain` 或 :mimetype:`message/rfc822` "
470- ",其中后者仅出现在消息头位于一个 :mimetype:`multipart/digest` 容器中的场合中。如果消息头的 "
471- ":mailheader:`Content-Type` 字段所指定的类型是无效的, :rfc:`2045` 令其默认类型为 "
472- ":mimetype:`text/plain` 。)"
470+ ",其中后者仅出现在消息头位于一个 :mimetype:`multipart/digest` 容器中的场合中。如果消息头的 :mailheader"
471+ ":`Content-Type` 字段所指定的类型是无效的, :rfc:`2045` 令其默认类型为 :mimetype:`text/plain` 。)"
473472
474473#: ../../library/email.message.rst:328
475474msgid ""
@@ -502,10 +501,10 @@ msgstr ""
502501msgid ""
503502"Set the default content type. *ctype* should either be "
504503":mimetype:`text/plain` or :mimetype:`message/rfc822`, although this is not "
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."
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."
509508msgstr ""
510509"设置默认的内容类型。 尽管并非强制,但是 *ctype* 仍应当是 :mimetype:`text/plain` 或 "
511510":mimetype:`message/rfc822` 二者取一。默认内容类型并不存储在 :mailheader:`Content-Type` "
@@ -609,8 +608,8 @@ msgid ""
609608"has no :mailheader:`Content-Type` header."
610609msgstr ""
611610"将 :mailheader:`Content-Type` 头字段的 ``boundary`` 参数设置为 *boundary* 。 "
612- ":meth:`set_boundary` 方法永远都会在必要的时候为 *boundary* 添加引号。如果信息对象中没有 "
613- ":mailheader: `Content-Type` 头字段,抛出 :exc:`~email.errors.HeaderParseError` 异常。"
611+ ":meth:`set_boundary` 方法永远都会在必要的时候为 *boundary* 添加引号。如果信息对象中没有 :mailheader "
612+ ":`Content-Type` 头字段,抛出 :exc:`~email.errors.HeaderParseError` 异常。"
614613
615614#: ../../library/email.message.rst:424
616615msgid ""
@@ -759,8 +758,8 @@ msgid ""
759758"it when looking for candidate matches. Otherwise consider only the first "
760759"(default root) part of the ``multipart/related``."
761760msgstr ""
762- "当遇到一个 ``multipart/related`` 时,将检查 ``start`` 形参并且如果找到了一个匹配 "
763- ":mailheader: `Content-ID` 的部分,在查找候选匹配时只考虑它。 在其他情况下则只考虑 ``multipart/related`` "
761+ "当遇到一个 ``multipart/related`` 时,将检查 ``start`` 形参并且如果找到了一个匹配 :mailheader "
762+ ":`Content-ID` 的部分,在查找候选匹配时只考虑它。 在其他情况下则只考虑 ``multipart/related`` "
764763"的第一个(默认的根)部分。"
765764
766765#: ../../library/email.message.rst:557
@@ -792,9 +791,9 @@ msgstr ""
792791"注: (1) 对于大多数应用来说有意义的 *preferencelist* 组合仅有 ``('plain',)``, ``('html', "
793792"'plain')`` 以及默认的 ``('related', 'html', 'plain')``。 (2) 由于匹配是从调用 ``get_body``"
794793" 的对象开始的,因此在 ``multipart/related`` 上调用 ``get_body`` 将返回对象本身,除非 "
795- "*preferencelist* 具有非默认值。 (3) 未指定 :mailheader:`Content-Type` 或者 "
796- ":mailheader: `Content-Type` 标头无效的消息(或消息部分)将被当作具有 ``text/plain`` 类型来处理,这有时可能导致"
797- " ``get_body`` 返回非预期的结果。"
794+ "*preferencelist* 具有非默认值。 (3) 未指定 :mailheader:`Content-Type` 或者 :mailheader "
795+ ":`Content-Type` 标头无效的消息(或消息部分)将被当作具有 ``text/plain`` 类型来处理,这有时可能导致 "
796+ "``get_body`` 返回非预期的结果。"
798797
799798#: ../../library/email.message.rst:577
800799msgid ""
@@ -806,8 +805,8 @@ msgid ""
806805" parts. When applied directly to a ``multipart/related``, return an "
807806"iterator over the all the related parts except the root part (ie: the part "
808807"pointed to by the ``start`` parameter, or the first part if there is no "
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 "
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 "
811810"``multipart/alternative`` or a non-``multipart``, return an empty iterator."
812811msgstr ""
813812"返回包含所有不是候选 \" body\" 部分的消息的直接子部分的迭代器。 也就是说,跳过首次出现的每个 ``text/plain``, "
@@ -909,8 +908,8 @@ msgstr ""
909908":meth:`~email.message.Message.attach` 到 ``multipart``。 如果消息为非 "
910909"``multipart``,则先调用 :meth:`make_related` 然后再继续上述步骤。 如果消息为任何其他类型的 "
911910"``multipart``,则会引发 :exc:`TypeError`。 如果未指定 *content_manager*,则使用当前 "
912- ":mod:`~email.policy` 所指定的 ``content_manager``。 如果添加的部分没有 "
913- ":mailheader: `Content-Disposition` 标头,则会添加一个值为 ``inline`` 的标头。"
911+ ":mod:`~email.policy` 所指定的 ``content_manager``。 如果添加的部分没有 :mailheader "
912+ ":`Content-Disposition` 标头,则会添加一个值为 ``inline`` 的标头。"
914913
915914#: ../../library/email.message.rst:661
916915msgid ""
0 commit comments