Milan Oberkirch added the comment:

I looked into imaplib a bit to see how the problem is solved there; what I 
observed:
- login() does 'PLAIN' only (and does not use authobj but smtplib would)
- there exists an extra function login_cram_md5() for 'CRAM-MD5'

So I guess the right way to do it would be to write an authenticate() method as 
in imaplib and use it in new member functions of the form login_[method](). In 
contrast to imaplib login() could still be used to probe through the three main 
methods (to avoid breaking backward compatibility).

I'll try to implement this later today, so if you think it's completely dumb 
and read this before a patch is applied feel free to give me a quick reply to 
stop me from wasting my time :)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15014>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to