@@ -513,23 +513,25 @@ msgstr "可能会引发 :exc:`SMTPNotSupportedError`,并添加 *initial_respon
513513msgid ""
514514"Issue an ``SMTP`` ``AUTH`` command for the specified authentication "
515515"*mechanism*, and handle the challenge response via *authobject*."
516- msgstr ""
516+ msgstr "为指定的认证机制 *mechanism* 发送 ``SMTP`` ``AUTH`` 命令,并通过 *authobject* 处理回复响应。 "
517517
518518#: ../../library/smtplib.rst:357
519519msgid ""
520520"*mechanism* specifies which authentication mechanism is to be used as "
521521"argument to the ``AUTH`` command; the valid values are those listed in the "
522522"``auth`` element of :attr:`esmtp_features`."
523523msgstr ""
524+ "*mechanism* 指定要使用何种认证机制作为 ``AUTH`` 命令的参数;可用的值是在 :attr:`esmtp_features` 的 "
525+ "``auth`` 元素中列出的内容。"
524526
525527#: ../../library/smtplib.rst:361
526528msgid ""
527529"*authobject* must be a callable object taking an optional single argument:"
528- msgstr ""
530+ msgstr "*authobject* 必须是接受一个可选的单独参数的可调用对象: "
529531
530532#: ../../library/smtplib.rst:363
531533msgid "data = authobject(challenge=None)"
532- msgstr ""
534+ msgstr "data = authobject(challenge=None) "
533535
534536#: ../../library/smtplib.rst:365
535537msgid ""
@@ -541,6 +543,11 @@ msgid ""
541543"``None`` when called with ``challenge=None``. If *initial_response_ok* is "
542544"false, then ``authobject()`` will not be called first with ``None``."
543545msgstr ""
546+ "如果可选的关键字参数 *initial_response_ok* 为真值,则将先不带参数地调用 ``authobject()``。 它可以返回 "
547+ ":rfc:`4954` \" 初始响应\" ASCII ``str``,其内容将被编码并使用下述的 ``AUTH`` 命令来发送。 如果 "
548+ "``authobject()`` 不支持初始响应(例如由于要求一个回复),它应当将 ``None`` 作为附带 ``challenge=None`` "
549+ "调用的返回值。 如果 *initial_response_ok* 为假值,则 ``authobject()`` 将不会附带 ``None`` "
550+ "被首先调用。"
544551
545552#: ../../library/smtplib.rst:373
546553msgid ""
@@ -550,6 +557,9 @@ msgid ""
550557"should return ASCII ``str`` *data* that will be base64 encoded and sent to "
551558"the server."
552559msgstr ""
560+ "如果初始响应检测返回了 ``None``,或者如果 *initial_response_ok* 为假值,则将调用 ``authobject()`` "
561+ "来处理服务器的回复响应;它所传递的 *challenge* 参数将为一个 ``bytes``。 它应当返回用 base64 进行编码的 ASCII "
562+ "``str`` *data* 并发送给服务器。"
553563
554564#: ../../library/smtplib.rst:379
555565msgid ""
0 commit comments