[issue20352] Add support for AUTH command to poplib

2014-01-23 Thread R. David Murray
R. David Murray added the comment: imaplib has an API for handling that kind of thing. Maybe we can model the poplib support off of that API. It would be nice to be consistent, assuming it in fact makes sense for poplib as well. -- ___ Python trac

[issue20352] Add support for AUTH command to poplib

2014-01-23 Thread Daniël van Eeden
Daniël van Eeden added the comment: As far as I understood the RFC: A client should send CAPA and check if there is a SASL tag in the response (e.g. "SASL PLAIN"). === +OK Dovecot ready. AUTH PLAIN base64_encoded_info +OK Logged in. LIST

[issue20352] Add support for AUTH command to poplib

2014-01-22 Thread R. David Murray
R. David Murray added the comment: This is basically rfc 5034 support? Sounds like a good idea. I'm going to mark this issue as 'easy' because it isn't a whole lot of code, but for anyone who wants to tackle it, know that understanding the RFC and getting it *right* is not necessarily trivial

[issue20352] Add support for AUTH command to poplib

2014-01-22 Thread Daniël van Eeden
New submission from Daniël van Eeden: I use 'AUTH PLAIN ' to login to a POP3 server with a proxy user. I can't use 'pass_()' as I need to supply a admin user and the user to proxy into. class adminpopserver(poplib.POP3): def auth(self, method, secret): return self._shortcmd('AUTH %s