[issue20352] Add support for AUTH command to poplib
Daniël van Eeden
report at bugs.python.org
Wed Jan 22 19:17:39 CET 2014
New submission from Daniël van Eeden:
I use 'AUTH PLAIN <secret>' 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 %s' % (method, secret))
secret = "{user}\0{adminuser}\0{password}".format(
user=user,
adminuser=adminuser,
password=password)
secret = secret.encode('base64').strip('\n')
----------
components: Library (Lib)
messages: 208837
nosy: dveeden
priority: normal
severity: normal
status: open
title: Add support for AUTH command to poplib
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20352>
_______________________________________
More information about the Python-bugs-list
mailing list