IMAP4_SSL error

Russell Stewart nospam at nospam.net
Wed Jan 4 23:47:17 EST 2006


I'm trying to log into a secure IMAP4 server using imaplib,
and I'm getting a strange error. If I do the following (name
of mail server x'ed out in example):

 >>> import imaplib
 >>> m = imaplib.IMAP4_SSL("mail.xxx.xxx")

I get:
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "C:\Python24\lib\imaplib.py", line 1101, in __init__
     IMAP4.__init__(self, host, port)
   File "C:\Python24\lib\imaplib.py", line 160, in __init__
     self.open(host, port)
   File "C:\Python24\lib\imaplib.py", line 1114, in open
     self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
AttributeError: 'module' object has no attribute 'ssl'

Any ideas? I'm running Active State Python 2.4 in WinXP
SP2.

-- 
Russell Stewart   |  E-Mail: diamond at swcp.com
UNM CS Department |  WWW: http://www.russell-stewart.net

"The great thing about standards in the computer
industry is that there are so many to choose from"
                              --Spotted on Slashdot



More information about the Python-list mailing list