1. Mark Shannon
  2. hotpy_2


Fred Drake  committed 5559025

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! ;)

  • Participants
  • Parent commits 9701c50
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Doc/lib/libsmtplib.tex

View file
 \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.
 import rfc822, string, sys
 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: