summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libsmtplib.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-12-22 18:04:48 (GMT)
committerFred Drake <fdrake@acm.org>1998-12-22 18:04:48 (GMT)
commit7be0cde3a0976099214f03c119a640e3e73d0d94 (patch)
tree712d14850c4fdf95160c836b671898d733e47e73 /Doc/lib/libsmtplib.tex
parent2eff3c5273a686b911f2b1ac968654b4315b8e25 (diff)
downloadcpython-7be0cde3a0976099214f03c119a640e3e73d0d94.zip
cpython-7be0cde3a0976099214f03c119a640e3e73d0d94.tar.gz
cpython-7be0cde3a0976099214f03c119a640e3e73d0d94.tar.bz2
Add an explanation about what the example does and doesn't do.
Fix an appearantly new behavior with latex2html with quoting. (Good incentive to work on the SGML conversion! ;)
Diffstat (limited to 'Doc/lib/libsmtplib.tex')
-rw-r--r--Doc/lib/libsmtplib.tex9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/lib/libsmtplib.tex b/Doc/lib/libsmtplib.tex
index de295a1..21c2225 100644
--- a/Doc/lib/libsmtplib.tex
+++ b/Doc/lib/libsmtplib.tex
@@ -134,7 +134,12 @@ consult the module code.
\subsection{SMTP Example \label{SMTP-example}}
-% really need a little description here...
+This example prompts the user for addresses needed in the message
+envelop (`To' and `From' addresses), and the message to be
+delivered. Note that the headers to be included with the message must
+be included in the message as entered; this example doesn't do any
+processing of the \rfc{822} headers. In particular, the `To' and
+`From' addresses must be included in the message headers explicitly.
\begin{verbatim}
import rfc822, string, sys
@@ -147,7 +152,7 @@ def prompt(prompt):
fromaddr = prompt("From")
toaddrs = string.splitfields(prompt("To"), ',')
print "Enter message, end with ^D:"
-msg = ''
+msg = ""
while 1:
line = sys.stdin.readline()
if not line: