[Tutor] does poplib have proxy support ?

Shashwat Anand anand.shashwat at gmail.com
Tue Dec 1 05:49:30 CET 2009


Does poplib/imaplib have proxy support like urllib?
I was unable to get connected to my mail.
Here is what i tried :

>>> proxies = {'http': 'http://username:password@proxy:8080'}
>>> host = 'pop.gmail.com'
>>> me = 'username at gmail.com'
>>> pass = '******'
>>> pop = poplib.POP3_SSL(host)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __init__() got an unexpected keyword argument 'proxies'
>>> pop = poplib.POP3_SSL(host)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/poplib.py",
line 357, in __init__
    raise socket.error, msg
socket.error: (60, 'Operation timed out')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091201/4462ae9e/attachment.htm>


More information about the Tutor mailing list