@@ -499,34 +499,38 @@ msgid ""
499499" in :rfc:`4954` can be sent along with the ``AUTH`` command, rather than "
500500"requiring a challenge/response."
501501msgstr ""
502+ "可选的关键字参数 *initial_response_ok* 对于支持它的认证方法,是否可以与 ``AUTH`` 命令一起发送 :rfc:`4954` "
503+ "中所规定的“初始响应”,而不是要求回复/响应。"
502504
503505#: ../../library/smtplib.rst:348
504506msgid ""
505507":exc:`SMTPNotSupportedError` may be raised, and the *initial_response_ok* "
506508"parameter was added."
507- msgstr ""
509+ msgstr "可能会引发 :exc:`SMTPNotSupportedError`,并添加 *initial_response_ok* 形参。 "
508510
509511#: ../../library/smtplib.rst:355
510512msgid ""
511513"Issue an ``SMTP`` ``AUTH`` command for the specified authentication "
512514"*mechanism*, and handle the challenge response via *authobject*."
513- msgstr ""
515+ msgstr "为指定的认证机制 *mechanism* 发送 ``SMTP`` ``AUTH`` 命令,并通过 *authobject* 处理回复响应。 "
514516
515517#: ../../library/smtplib.rst:358
516518msgid ""
517519"*mechanism* specifies which authentication mechanism is to be used as "
518520"argument to the ``AUTH`` command; the valid values are those listed in the "
519521"``auth`` element of :attr:`esmtp_features`."
520522msgstr ""
523+ "*mechanism* 指定要使用何种认证机制作为 ``AUTH`` 命令的参数;可用的值是在 :attr:`esmtp_features` 的 "
524+ "``auth`` 元素中列出的内容。"
521525
522526#: ../../library/smtplib.rst:362
523527msgid ""
524528"*authobject* must be a callable object taking an optional single argument:"
525- msgstr ""
529+ msgstr "*authobject* 必须是接受一个可选的单独参数的可调用对象: "
526530
527531#: ../../library/smtplib.rst:364
528532msgid "data = authobject(challenge=None)"
529- msgstr ""
533+ msgstr "data = authobject(challenge=None) "
530534
531535#: ../../library/smtplib.rst:366
532536msgid ""
@@ -538,6 +542,11 @@ msgid ""
538542"``None`` when called with ``challenge=None``. If *initial_response_ok* is "
539543"false, then ``authobject()`` will not be called first with ``None``."
540544msgstr ""
545+ "如果可选的关键字参数 *initial_response_ok* 为真值,则将先不带参数地调用 ``authobject()``。 它可以返回 "
546+ ":rfc:`4954` \" 初始响应\" ASCII ``str``,其内容将被编码并使用下述的 ``AUTH`` 命令来发送。 如果 "
547+ "``authobject()`` 不支持初始响应(例如由于要求一个回复),它应当将 ``None`` 作为附带 ``challenge=None`` "
548+ "调用的返回值。 如果 *initial_response_ok* 为假值,则 ``authobject()`` 将不会附带 ``None`` "
549+ "被首先调用。"
541550
542551#: ../../library/smtplib.rst:374
543552msgid ""
@@ -547,6 +556,9 @@ msgid ""
547556"should return ASCII ``str`` *data* that will be base64 encoded and sent to "
548557"the server."
549558msgstr ""
559+ "如果初始响应检测返回了 ``None``,或者如果 *initial_response_ok* 为假值,则将调用 ``authobject()`` "
560+ "来处理服务器的回复响应;它所传递的 *challenge* 参数将为一个 ``bytes``。 它应当返回用 base64 进行编码的 ASCII "
561+ "``str`` *data* 并发送给服务器。"
550562
551563#: ../../library/smtplib.rst:380
552564msgid ""
0 commit comments