]> granicus.if.org Git - python/commitdiff
Add an explanation about what the example does and doesn't do.
authorFred Drake <fdrake@acm.org>
Tue, 22 Dec 1998 18:04:48 +0000 (18:04 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 22 Dec 1998 18:04:48 +0000 (18:04 +0000)
Fix an appearantly new behavior with latex2html with quoting.  (Good
incentive to work on the SGML conversion! ;)

Doc/lib/libsmtplib.tex

index de295a15ecb3e30af47b10b56ae76a1a917e9a64..21c222515fddc83f4918302666592c48599c13a3 100644 (file)
@@ -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: