diff options
author | Piers Lauder <piers@cs.su.oz.au> | 2002-03-08 01:53:24 (GMT) |
---|---|---|
committer | Piers Lauder <piers@cs.su.oz.au> | 2002-03-08 01:53:24 (GMT) |
commit | a4f8313cbb5239a5f18abad93b4156246de2c13b (patch) | |
tree | d7b638f76e2cb3a6a4366fcf5963a5f1e92f44e3 /Doc/lib/libimaplib.tex | |
parent | 6cb64f9e4650c101179134850f414435abab95ee (diff) | |
download | cpython-a4f8313cbb5239a5f18abad93b4156246de2c13b.zip cpython-a4f8313cbb5239a5f18abad93b4156246de2c13b.tar.gz cpython-a4f8313cbb5239a5f18abad93b4156246de2c13b.tar.bz2 |
add SSL class submitted by Tino Lange
Diffstat (limited to 'Doc/lib/libimaplib.tex')
-rw-r--r-- | Doc/lib/libimaplib.tex | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/Doc/lib/libimaplib.tex b/Doc/lib/libimaplib.tex index f4c3e19..38323cf 100644 --- a/Doc/lib/libimaplib.tex +++ b/Doc/lib/libimaplib.tex @@ -9,16 +9,18 @@ % Based on HTML documentation by Piers Lauder <piers@staff.cs.usyd.edu.au>; % converted by Fred L. Drake, Jr. <fdrake@acm.org>. % Revised by ESR, January 2000. +% Changes for IMAP4_SSL by Tino Lange <Tino.Lange@isg.de>, March 2002 \indexii{IMAP4}{protocol} +\indexii{IMAP4_SSL}{protocol} -This module defines a class, \class{IMAP4}, which encapsulates a -connection to an IMAP4 server and implements a large subset of the +This module defines two classes, \class{IMAP4} and \class{IMAP4_SSL}, which encapsulate a +connection to an IMAP4 server and implement a large subset of the IMAP4rev1 client protocol as defined in \rfc{2060}. It is backward compatible with IMAP4 (\rfc{1730}) servers, but note that the \samp{STATUS} command is not supported in IMAP4. -A single class is provided by the \module{imaplib} module: +Two classes are provided by the \module{imaplib} module, \class{IMAP4} is the base class: \begin{classdesc}{IMAP4}{\optional{host\optional{, port}}} This class implements the actual IMAP4 protocol. The connection is @@ -48,6 +50,17 @@ sub-class of \exception{IMAP4.error}. Some other client now has write permissio and the mailbox will need to be re-opened to re-obtain write permission. \end{excdesc} +There's also a subclass for secure connections: + +\begin{classdesc}{IMAP4_SSL}{\optional{host\optional{, port\optional{, keyfile\optional{, certfile}}}}} +This is a subclass derived from \class{IMAP4} that connects over an SSL encrypted socket +(to use this class you need a socket module that was compiled with SSL support). +If \var{host} is not specified, \code{''} (the local host) is used. +If \var{port} is omitted, the standard IMAP4-over-SSL port (993) is used. +\var{keyfile} and \var{certfile} are also optional - they can contain a PEM formatted +private key and certificate chain file for the SSL connection. +\end{classdesc} + The following utility functions are defined: \begin{funcdesc}{Internaldate2tuple}{datestr} @@ -311,6 +324,13 @@ msgnums = M.search(None, '(FROM "LDJ")') \end{methoddesc} +Instances of \class{IMAP4_SSL} have just one additional method: + +\begin{methoddesc}{ssl}{} + Returns SSLObject instance used for the secure connection with the server. +\end{methoddesc} + + The following attributes are defined on instances of \class{IMAP4}: |