Re: poplib - retr() getting stuck

2008-06-26 Thread Roopesh
Thanks for the help. At present I have modified the poplib code as follows (In POP3 and POP3_SSL classes): Is it the correct way? def __init__(self, host, port = POP3_PORT): self.host = host self.port = port msg = "getaddrinfo returns an empty list" self.sock =

Re: poplib - retr() getting stuck

2008-06-24 Thread Gabriel Genellina
En Fri, 20 Jun 2008 04:37:32 -0300, Roopesh <[EMAIL PROTECTED]> escribió: I am using poplib's retr() to fetch mails from my gmail account. It works fine, in some cases it gets stuck inside the retr() method and does not come out. Probably the server stopped responding. By default, sockets ha