File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -683,6 +683,10 @@ msgid ""
683683"Folding of a header object is done by calling its ``fold`` method with the "
684684"current policy."
685685msgstr ""
686+ "标头折叠是由 :attr:`refold_source` 策略设置来控制的。 当且仅当一个值没有 ``name`` 属性(具有 ``name`` "
687+ "属性就意味着它是某种标头对象)它才会被当作是“源值”。 如果一个原值需要按照策略来重新折叠,则会通过将 *name* 和去除了所有 CR 和 LF "
688+ "字符的 *value* 传递给 ``header_factory`` 来将其转换为标头对象。 标头对象的折叠是通过调用其 ``fold`` "
689+ "方法并附带当前策略来完成的。"
686690
687691#: ../../library/email.policy.rst:492
688692msgid ""
@@ -693,6 +697,9 @@ msgid ""
693697"``refold_source`` setting, which causes the binary data to be CTE encoded "
694698"using the ``unknown-8bit`` charset."
695699msgstr ""
700+ "源值会使用 :meth:`~str.splitlines` 来拆分成多行。 如果该值不被重新折叠,则会使用策略中的 ``linesep`` "
701+ "重新合并这些行并将其返回。 例外的是包含非 ascii 二进制数据的行。 在此情况下无论 ``refold_source`` "
702+ "如何设置该值都会被重新折叠,这会导致二进制数据使用 ``unknown-8bit`` 字符集进行 CTE 编码。"
696703
697704#: ../../library/email.policy.rst:502
698705msgid ""
You can’t perform that action at this time.
0 commit comments