Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5072b9

Browse files
committed
Document the "unixfrom" attribute of the rfc822.Message class.
Based on a patch by Skip Montanaro, this closes SF bug #458885.
1 parent ccc7562 commit f5072b9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Doc/lib/librfc822.tex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ \subsection{Message Objects \label{message-objects}}
261261
\method{get()} and \method{setdefault()} was only added in Python
262262
2.2.)
263263

264-
Finally, \class{Message} instances have two public instance variables:
264+
Finally, \class{Message} instances have some public instance variables:
265265

266266
\begin{memberdesc}{headers}
267267
A list containing the entire set of header lines, in the order in
@@ -275,6 +275,12 @@ \subsection{Message Objects \label{message-objects}}
275275
be used to read the message content.
276276
\end{memberdesc}
277277

278+
\begin{memberdesc}{unixfrom}
279+
The \UNIX{} \samp{From~} line, if the message had one, or an empty
280+
string. This is needed to regenerate the message in some contexts,
281+
such as an \code{mbox}-style mailbox file.
282+
\end{memberdesc}
283+
278284

279285
\subsection{AddressList Objects \label{addresslist-objects}}
280286

0 commit comments

Comments
 (0)