[Python-Dev] imaplib.py and SSL (original) (raw)

Tino Lange tino.lange@isg.de
Fri, 01 Mar 2002 14:31:53 +0100


This is a multi-part message in MIME format. --------------096780CBE735D0919E9873DF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit

Hallo!

Our company has decided to allow only SSL connections to the e-mailbox from outside. So I needed a SSL capable "imaplib.py" to run my mailwatcher-scripts from home.

Thanks to the socket.ssl() in recent Pythons it was nearly no problem to derive an IMAP4_SSL-class from the existing IMAP4-class in Python's standard library.

Maybe you want to look over the very small additions that were necessary to implement the IMAP-over-SSL-functionality and add it as a part of the next official "imaplib.py"?

Here's the context diff from the most recent CVS version (1.43). It works fine for me this way and it's only a few straight-forward lines of code.

Maybe I could contribute a bit to the Python project with this patch? Best regards

Tino Lange --------------096780CBE735D0919E9873DF Content-Type: text/plain; charset=us-ascii; name="imaplib.py_to_ssl_imaplib.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="imaplib.py_to_ssl_imaplib.diff"

*** imaplib_143.py Fri Mar 1 08:52:29 2002 --- SSL_imaplib_143.py Fri Mar 1 14🔞15 2002


*** 28,33 **** --- 28,34 ---- CRLF = '\r\n' Debug = 0 IMAP4_PORT = 143


*** 980,985 **** --- 981,1056 ---- i = 0 n -= 1

+

--------------096780CBE735D0919E9873DF--