@@ -117,6 +117,11 @@ msgid ""
117117"``kwargs['mail_options']`` list. *decode_data* and *enable_SMTPUTF8* cannot "
118118"be set to ``True`` at the same time."
119119msgstr ""
120+ "*decode_data* 指明 SMTP 事务的数据部分是否应当使用 UTF-8 来解码。 当 *decode_data* 为 ``False`` "
121+ "时(默认值),服务器会声明 ``8BITMIME`` 扩展 (:rfc:`6152`),接受来自 ``MAIL`` 命令的 "
122+ "``BODY=8BITMIME`` 形参,并在该形参存在时将其传给 ``kwargs['mail_options']`` 列表中的 "
123+ ":meth:`process_message` 方法。 *decode_data* 和 *enable_SMTPUTF8* 不可同时被设为 "
124+ "``True``。"
120125
121126#: ../../library/smtpd.rst:71
122127msgid ""
@@ -128,20 +133,26 @@ msgid ""
128133"containing the contents of the e-mail (which should be in :rfc:`5321` "
129134"format)."
130135msgstr ""
136+ "引发 :exc:`NotImplementedError` 异常。 请在子类中重载此方法以实际运用此消息。 在构造器中作为 *remoteaddr* "
137+ "传入的任何东西都可以 :attr:`_remoteaddr` 属性的形式来访问。 *peer* 是远程主机的地址,*mailfrom* "
138+ "是封包的发送方,*rcpttos* 是封包的接收方而 *data* 是包含电子邮件内容的字符串(应该为 :rfc:`5321` 格式)。"
131139
132140#: ../../library/smtpd.rst:79
133141msgid ""
134142"If the *decode_data* constructor keyword is set to ``True``, the *data* "
135143"argument will be a unicode string. If it is set to ``False``, it will be a "
136144"bytes object."
137145msgstr ""
146+ "如果构造器关键字参数 *decode_data* 被设为 ``True``,则 *data* 参数将为 Unicode 字符串。 如果被设为 "
147+ "``False``,则将为字节串对象。"
138148
139149#: ../../library/smtpd.rst:83
140150msgid ""
141151"*kwargs* is a dictionary containing additional information. It is empty if "
142152"``decode_data=True`` was given as an init argument, otherwise it contains "
143153"the following keys:"
144154msgstr ""
155+ "*kwargs* 是包含附加信息的字典。 如果给出 ``decode_data=True`` 作为初始参数则该字典为空,否则它会包含以下的键:"
145156
146157#: ../../library/smtpd.rst:90
147158msgid "*mail_options*:"
0 commit comments