Commit 4f6499a0 authored by Fred Drake's avatar Fred Drake

Document the "unixfrom" attribute of the rfc822.Message class.

Based on a patch by Skip Montanaro, this closes SF bug #458885.
parent 5bc59927
......@@ -261,7 +261,7 @@ support the \method{clear()}, \method{copy()}, \method{popitem()}, or
\method{get()} and \method{setdefault()} was only added in Python
2.2.)
Finally, \class{Message} instances have two public instance variables:
Finally, \class{Message} instances have some public instance variables:
\begin{memberdesc}{headers}
A list containing the entire set of header lines, in the order in
......@@ -275,6 +275,12 @@ The file or file-like object passed at instantiation time. This can
be used to read the message content.
\end{memberdesc}
\begin{memberdesc}{unixfrom}
The \UNIX{} \samp{From~} line, if the message had one, or an empty
string. This is needed to regenerate the message in some contexts,
such as an \code{mbox}-style mailbox file.
\end{memberdesc}
\subsection{AddressList Objects \label{addresslist-objects}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment