FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Soften the AUTH=PLAIN capability note and add a What's New entry · python/cpython@c0c2c29 · GitHub

Repository navigation

Commit c0c2c29

Browse files
Soften the AUTH=PLAIN capability note and add a What's New entry
RFC 3501 makes the PLAIN mechanism mandatory, so a server may support it without advertising AUTH=PLAIN in its CAPABILITY response. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 7a2843b commit c0c2c29

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎Doc/library/imaplib.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,9 @@ An :class:`IMAP4` instance has the following methods:
447447
method should only be used over a TLS-protected connection, such as
448448
:class:`IMAP4_SSL` or after :meth:`starttls`.
449449

450-
It will only work if the server ``CAPABILITY`` response includes
451-
the phrase ``AUTH=PLAIN``.
450+
It will only work if the server supports the ``PLAIN`` mechanism,
451+
which it need not advertise as ``AUTH=PLAIN`` in its ``CAPABILITY``
452+
response.
452453

453454
.. versionadded:: next
454455

‎Doc/whatsnew/3.16.rst‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ imaplib
235235
a wrapper for the ``MOVE`` command (:rfc:`6851`).
236236
(Contributed by Serhiy Storchaka in :gh:`77508`.)
237237

238+
* Add the :meth:`~imaplib.IMAP4.login_plain` method, which authenticates
239+
using the ``PLAIN`` SASL mechanism (:rfc:`4616`) and supports non-ASCII
240+
user names and passwords.
241+
(Contributed by Przemysław Buczkowski and Serhiy Storchaka in :gh:`89869`.)
242+
238243

239244
logging
240245
-------

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL