[issue15014] smtplib: add support for arbitrary auth methods

Milan Oberkirch report at bugs.python.org
Mon Mar 3 20:57:50 CET 2014


Milan Oberkirch added the comment:

I implemented one approach to solve this by writing new member functions for each method (see the patch attached). Bonus: It does not change the usage of login() in any way (which uses the new functions internally).
Another option would be to make those functions private/put them into login() and provide an optional keyarg. Or auth objects, but as far as I can see only 3 methods are relevant so it might be an overkill?

So that's the easy way to fix it, would be glad if it helps!

----------
keywords: +patch
nosy: +zvyn
Added file: http://bugs.python.org/file34279/smtplib.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15014>
_______________________________________


More information about the Python-bugs-list mailing list