@@ -479,31 +479,36 @@ msgid ""
479479":attr:`linesep` characters at the appropriate places. See :rfc:`5322` for a"
480480" discussion of the rules for folding email headers."
481481msgstr ""
482+ "email 包调用此方法时会附带当前保存在 ``Message`` 中的给定标头的 *name* 和 *value*。 "
483+ "此方法应当返回一个代表该标头的(根据策略设置)通过处理 *name* 和 *value* 并在适当位置插入 :attr:`linesep` "
484+ "字符来正确地“折叠”的字符串。 请参阅 :rfc:`5322` 了解有关折叠电子邮件标头的规则的讨论。"
482485
483486#: ../../library/email.policy.rst:354
484487msgid ""
485488"*value* may contain surrogateescaped binary data. There should be no "
486489"surrogateescaped binary data in the string returned by the method."
487- msgstr ""
490+ msgstr "*value* 可能包含经替代转义的二进制数据。 此方法所返回的字符串应当没有经替代转义的二进制数据。 "
488491
489492#: ../../library/email.policy.rst:360
490493msgid ""
491494"The same as :meth:`fold`, except that the returned value should be a bytes "
492495"object rather than a string."
493- msgstr ""
496+ msgstr "与 :meth:`fold` 类似,不同之处在于返回的值应当为字节串对象而非字符串。 "
494497
495498#: ../../library/email.policy.rst:363
496499msgid ""
497500"*value* may contain surrogateescaped binary data. These could be converted "
498501"back into binary data in the returned bytes object."
499- msgstr ""
502+ msgstr "*value* 可能包含经替代转义的二进制数据。 这些数据可以在被返回的字节串对象中被转换回二进制数据。 "
500503
501504#: ../../library/email.policy.rst:370
502505msgid ""
503506"This concrete :class:`Policy` provides behavior that is intended to be fully"
504507" compliant with the current email RFCs. These include (but are not limited "
505508"to) :rfc:`5322`, :rfc:`2047`, and the current MIME RFCs."
506509msgstr ""
510+ "这个实体 :class:`Policy` 提供了完全遵循当前电子邮件 RFC 的行为。 这包括 (但不限于) :rfc:`5322`, "
511+ ":rfc:`2047` 以及当前的各种 MIME RFC。"
507512
508513#: ../../library/email.policy.rst:374
509514msgid ""
@@ -512,18 +517,22 @@ msgid ""
512517"on the type of the field. The parsing and folding algorithm fully implement"
513518" :rfc:`2047` and :rfc:`5322`."
514519msgstr ""
520+ "此策略添加了新的标头解析和折叠算法。 标头不是简单的字符串,而是带有依赖于字段类型的属性的 ``str`` 的子类。 这个解析和折叠算法完整实现了 "
521+ ":rfc:`2047` 和 :rfc:`5322`。"
515522
516523#: ../../library/email.policy.rst:379
517524msgid ""
518525"The default value for the :attr:`~email.policy.Policy.message_factory` "
519526"attribute is :class:`~email.message.EmailMessage`."
520527msgstr ""
528+ ":attr:`~email.policy.Policy.message_factory` 属性的默认值为 "
529+ ":class:`~email.message.EmailMessage`。"
521530
522531#: ../../library/email.policy.rst:382
523532msgid ""
524533"In addition to the settable attributes listed above that apply to all "
525534"policies, this policy adds the following additional attributes:"
526- msgstr ""
535+ msgstr "除了上面列出的适用于所有策略的可设置属性,此策略还添加了下列额外属性: "
527536
528537#: ../../library/email.policy.rst:385
529538msgid "[1]_"
@@ -537,6 +546,9 @@ msgid ""
537546"passed to SMTP servers that support the ``SMTPUTF8`` extension "
538547"(:rfc:`6531`)."
539548msgstr ""
549+ "如为 ``False``,则遵循 :rfc:`5322`,通过编码为“已编码字”来支持标头中的非 ASCII 字符。 如为 ``True``,则遵循 "
550+ ":rfc:`6532` 并对标头使用 ``utf-8`` 编码格式。 以此方式格式化的消息可被传递给支持 ``SMTPUTF8`` 扩展 "
551+ "(:rfc:`6531`) 的 SMTP 服务器。"
540552
541553#: ../../library/email.policy.rst:399
542554msgid ""
@@ -546,14 +558,16 @@ msgid ""
546558"transforming the message back into serialized form. The possible values "
547559"are:"
548560msgstr ""
561+ "如果 ``Message`` 对象中标头的值源自 :mod:`~email.parser` "
562+ "(而非由程序设置),此属性会表明当将消息转换回序列化形式时是否应当由生成器来重新折叠该值。 可能的值如下:"
549563
550564#: ../../library/email.policy.rst:406
551565msgid "``none``"
552- msgstr ""
566+ msgstr "``none`` "
553567
554568#: ../../library/email.policy.rst:406
555569msgid "all source values use original folding"
556- msgstr ""
570+ msgstr "所有源值使用原始折叠 "
557571
558572#: ../../library/email.policy.rst:408
559573msgid "``long``"
@@ -563,19 +577,19 @@ msgstr "``long``"
563577msgid ""
564578"source values that have any line that is longer than ``max_line_length`` "
565579"will be refolded"
566- msgstr ""
580+ msgstr "具有任何长度超过 ``max_line_length`` 的行的源值将被折叠 "
567581
568582#: ../../library/email.policy.rst:411
569583msgid "``all``"
570- msgstr ""
584+ msgstr "``all`` "
571585
572586#: ../../library/email.policy.rst:411
573587msgid "all values are refolded."
574- msgstr ""
588+ msgstr "所有值会被重新折叠。 "
575589
576590#: ../../library/email.policy.rst:414
577591msgid "The default is ``long``."
578- msgstr ""
592+ msgstr "默认值为 ``long``。 "
579593
580594#: ../../library/email.policy.rst:419
581595msgid ""
0 commit comments