[New-bugs-announce] [issue45706] Add IMAP4.login_plain to imaplib

Prem Buczkowski report at bugs.python.org
Wed Nov 3 20:29:59 EDT 2021


New submission from Prem Buczkowski <prem at prem.moe>:

Hi everyone and nice to meet you!

I would like to propose adding a method login_plain to Python IMAP4 standard library client.

Currently, one can use login, login_cram_md5 or add their own authentication method using authenticate. While login works great for plain text authentication for English users, it does not support characters out of ASCII, causing errors for users with non-ASCII passwords. 

I personally hit that with radicale-imap. It has been reported in issue34577, and its SMTP counterpart in issue29750.

RFC6855 recommends using AUTHENTICATE for such cases, and so this patch adds login_plain in a manner similar to login_cram_md5. Adding this to a standard library will improve the experience for non-English users not only when programming but also when using other programs written in Python. AUTHENTICATE PLAIN is on by default in Dovecot and most e-mail providers, like Gmail and Outlook, making it more common than, already supported, AUTHENTICATE CRAM-MD5.

Since this is my first patch, let me know if I could change something up - I did my best to RTFM!

----------
components: Library (Lib), email
files: 0107-Add-imaplib.IMAP4.login_plain.patch
keywords: patch
messages: 405659
nosy: barry, przemub, r.david.murray
priority: normal
severity: normal
status: open
title: Add IMAP4.login_plain to imaplib
Added file: https://bugs.python.org/file50424/0107-Add-imaplib.IMAP4.login_plain.patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45706>
_______________________________________


More information about the New-bugs-announce mailing list