This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author przemub
Recipients barry, przemub, r.david.murray
Date 2021-11-04.00:29:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635985799.82.0.278344713307.issue45706@roundup.psfhosted.org>
In-reply-to
Content
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!
History
Date User Action Args
2021-11-04 00:29:59przemubsetrecipients: + przemub, barry, r.david.murray
2021-11-04 00:29:59przemubsetmessageid: <1635985799.82.0.278344713307.issue45706@roundup.psfhosted.org>
2021-11-04 00:29:59przemublinkissue45706 messages
2021-11-04 00:29:59przemubcreate