diff options
author | Fred Drake <fdrake@acm.org> | 1999-04-28 18:11:09 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-04-28 18:11:09 (GMT) |
commit | ea0020571f498bc0ba3d58ac7ddef75f19bd9ec1 (patch) | |
tree | 142cdd31878becb426663d53bd7d24a5ae49cf61 /Doc | |
parent | 5712fa92501c28d4de5fbf174cfc706eef11023e (diff) | |
download | cpython-ea0020571f498bc0ba3d58ac7ddef75f19bd9ec1.zip cpython-ea0020571f498bc0ba3d58ac7ddef75f19bd9ec1.tar.gz cpython-ea0020571f498bc0ba3d58ac7ddef75f19bd9ec1.tar.bz2 |
Use \rfc to mark some remaining RFC references.
Remove comment about full name bug in getaddrlist(); this has been
fixed for a while now.
Work around LaTeX2HTML space-dropping bug.
Mention that the fp attribute can be used to read the message body.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/librfc822.tex | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/Doc/lib/librfc822.tex b/Doc/lib/librfc822.tex index b873763..3fe7505 100644 --- a/Doc/lib/librfc822.tex +++ b/Doc/lib/librfc822.tex @@ -8,7 +8,7 @@ This module defines a class, \class{Message}, which represents a collection of ``email headers'' as defined by the Internet standard \rfc{822}. It is used in various contexts, usually to read such headers from a file. This module also defines a helper class -\class{AddressList} for parsing RFC822 addresses. +\class{AddressList} for parsing \rfc{822} addresses. Note that there's a separate module to read \UNIX{}, MH, and MMDF style mailbox files: \refmodule{mailbox}\refstmodindex{mailbox}. @@ -86,8 +86,8 @@ difference; this may yield a slight error around daylight savings time switch dates. Not enough to worry about for common use. \end{funcdesc} -\subsection{Message Objects} -\label{message-objects} + +\subsection{Message Objects \label{message-objects}} A \class{Message} instance has the following methods: @@ -98,7 +98,7 @@ object is seekable. \begin{methoddesc}{isheader}{line} Returns a line's canonicalized fieldname (the dictionary key that will -be used to index it) if the line is a legal RFC822 header; otherwise +be used to index it) if the line is a legal \rfc{822} header; otherwise returns None (implying that parsing should stop here and the line be pushed back on the input stream). It is sometimes useful to override this method in a subclass. @@ -126,8 +126,8 @@ header matches \var{name}. \begin{methoddesc}{getfirstmatchingheader}{name} Return a list of lines comprising the first header matching -\var{name}, and its continuation line(s), if any. Return \code{None} -if there is no header matching \var{name}. +\var{name}, and its continuation line(s), if any. Return +\code{None} if there is no header matching \var{name}. \end{methoddesc} \begin{methoddesc}{getrawheader}{name} @@ -176,9 +176,6 @@ header matching \var{name}, return an empty list. If multiple headers exist that match the named header (e.g. if there are several \code{Cc} headers), all are parsed for addresses. Any continuation lines the named headers contain are also parsed. - -XXX The current version of this function is not really correct. It -yields bogus results if a full name contains a comma. \end{methoddesc} \begin{methoddesc}{getdate}{name} @@ -219,11 +216,12 @@ blank line terminating the headers is not contained in the list. \end{memberdesc} \begin{memberdesc}{fp} -The file object passed at instantiation time. +The file or file-like object passed at instantiation time. This can +be used to read the message content. \end{memberdesc} -\subsection{AddressList Objects} -\label{addresslist-objects} + +\subsection{AddressList Objects \label{addresslist-objects}} An \class{AddressList} instance has the following methods: |