]> code.delx.au - offlineimap/commitdiff
Fix non-SSL connection
authorJohn Goerzen <jgoerzen@complete.org>
Thu, 12 Jul 2007 10:02:19 +0000 (11:02 +0100)
committerJohn Goerzen <jgoerzen@complete.org>
Thu, 12 Jul 2007 10:02:19 +0000 (11:02 +0100)
fixes deb#432727

offlineimap/imaplibutil.py

index 61d7b04521bd1ee05b23067c200f63b6e1a1ed22..373d227bc2ab0bba33d86505dd8d9dad12776957 100644 (file)
@@ -113,7 +113,6 @@ def new_open(self, host = '', port = IMAP4_PORT):
         self.port = port
         res = socket.getaddrinfo(host, port, socket.AF_UNSPEC,
                                  socket.SOCK_STREAM)
-        self.sock = socket.socket(af, socktype, proto)
 
         # Try each address returned by getaddrinfo in turn until we
         # manage to connect to one.