[Python-checkins] CVS: python/dist/src/Doc/lib libsmtplib.tex,1.18,1.19

Guido van Rossum gvanrossum@users.sourceforge.net
Fri, 14 Sep 2001 09:08:46 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv7837

Modified Files:
	libsmtplib.tex 
Log Message:
SF patch #461413 (Gerhard Häring): Add STARTTLS feature to smtplib

   This patch adds the features from RFC 2487 (Secure SMTP 
   over TLS) to the smtplib module: 

   - A starttls() function 
   - Wrapper classes that simulate enough of sockets and 
     files for smtplib, but really wrap a SSLObject 
   - reset the list of known SMTP extensions at each call 
     of ehlo(). This should have been the case anyway. 


Index: libsmtplib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libsmtplib.tex,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** libsmtplib.tex	2001/09/11 16:58:00	1.18
--- libsmtplib.tex	2001/09/14 16:08:44	1.19
***************
*** 179,182 ****
--- 179,190 ----
  \end{methoddesc}
  
+ \begin{methoddesc}{starttls}{\optional{keyfile, certfile}}
+ Put the SMTP connection in TLS (Transport Layer Security) mode. All SMTP
+ commands that follow will be encrypted. You should then call ehlo() again.
+ 
+ If \var{keyfile} and \var{certfile} are provided, these are passed to the
+ socket module's ssl function.
+ \end{methoddesc}
+ 
  \begin{methoddesc}{sendmail}{from_addr, to_addrs, msg\optional{,
                               mail_options, rcpt_options}}