IMAP4_SSL and OpenSSL compatibility

Antoine Pitrou solipsis at pitrou.net
Fri Mar 1 14:03:42 EST 2013


W. Martin Borgert <debacle <at> debian.org> writes:
> >
> > There is already the ssl_context option for that:
> > http://docs.python.org/3.3/library/imaplib.html#imaplib.IMAP4_SSL
> 
> Many thanks! Two more questions:
> 
>   1. Is there any plan to backport this Python >= 3.3 feature to
>      Python 2?

No, we don't backport new features to maintenance releases.

>   2. Would the following lines be correct for Python 3.3?
> 
>      >>> import imaplib
>      >>> IMAP4_SSL("192.168.1.1.", ssl_context =  
> SSLContext(ssl.PROTOCOL_SSLv3))

It should be, yes.

Regards

Antoine.





More information about the Python-list mailing list