Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

Reply
Thread Tools

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

 
 
Andrea Gavana
Guest
Posts: n/a
 
      02-17-2011
Hi Malcolm,

On 17 February 2011 11:44, Malcolm Greene wrote:
> Andrea,
>
> What type of result do you get trying port 993 ?


Thank you for your answer. I have tried that, with imaplib and
libgmail. This is what I get with imaplib:

Traceback (most recent call last):
File "D:\MyProjects\gmail.py", line 17, in <module>
m = imaplib.IMAP4_SSL('imap.gmail.com', 993)
File "C:\Python26\lib\imaplib.py", line 1138, in __init__
IMAP4.__init__(self, host, port)
File "C:\Python26\lib\imaplib.py", line 163, in __init__
self.open(host, port)
File "C:\Python26\lib\imaplib.py", line 1149, in open
self.sock = socket.create_connection((host, port))
File "C:\Python26\lib\socket.py", line 514, in create_connection
raise error, msg
socket.error: [Errno 10061] No connection could be made because the
target machine actively refused it


And this with libgmail:

Traceback (most recent call last):
File "D:\MyProjects\gmail2.py", line 10, in <module>
ga.login()
File "C:\Python26\lib\site-packages\libgmail.py", line 305, in login
pageData = self._retrievePage(req)
File "C:\Python26\lib\site-packages\libgmail.py", line 348, in _retrievePage
resp = self.opener.open(req)
File "C:\Python26\lib\site-packages\mechanize\_opener.py", line 193, in open
response = urlopen(self, req, data)
File "C:\Python26\lib\site-packages\mechanize\_urllib2_fork.py",
line 344, in _open
'_open', req)
File "C:\Python26\lib\site-packages\mechanize\_urllib2_fork.py",
line 332, in _call_chain
result = func(*args)
File "C:\Python26\lib\site-packages\mechanize\_urllib2_fork.py",
line 1171, in https_open
return self.do_open(conn_factory, req)
File "C:\Python26\lib\site-packages\gmail_transport.py", line 143, in do_open
return ClientCookie.HTTPSHandler.do_open(self,
ProxyHTTPSConnection.new_auth(self.proxy, self.proxy_user,
self.proxy_passwd), req)
File "C:\Python26\lib\site-packages\mechanize\_urllib2_fork.py",
line 1118, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 10060] A connection attempt
failed because the connected party did not properly respond after a
period of time, or established connection failed because connected
host has failed to respond>


This thing is driving me crazy, and I'm not even doing it for fun...

Thank you for your suggestions.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

==> Never *EVER* use RemovalGroup for your house removal. You'll
regret it forever.
http://thedoomedcity.blogspot.com/20...nightmare.html <==
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IMAP4_SSL, libgmail, GMail and corporate firewall/proxy Andrea Gavana Python 1 08-11-2011 03:24 PM
Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy Andrea Gavana Python 0 02-18-2011 04:40 AM
Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy Andrea Gavana Python 0 02-17-2011 05:37 AM
Corporate Finance 9th edition Ross test Bank is available ataffordable prices. Email me at instructors.team[at]gmail.com if you need tobuy this. All emails will be answered ASAP. SolutionPerson C++ 0 01-05-2010 05:02 PM
Fundamentals of Corporate Finance 9th edition Ross test Bank isavailable. Email me at allsolutionmanuals11[at]gmail.com if you need to buythis. All emails will be answered as soon as possible. Pearson & prentice hall solutions C Programming 1 09-21-2009 03:52 PM



Advertisments