diff options
author | Guido van Rossum <guido@python.org> | 1997-06-02 21:04:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-06-02 21:04:41 (GMT) |
commit | 39a23cc1e36e49838f230f8afd72fc0e893a43af (patch) | |
tree | f9ae205291f59f6eee1e085b220c397afff13f5d /Doc | |
parent | 6cb2ac226ec787bf520793d0849cc8e86f263a5c (diff) | |
download | cpython-39a23cc1e36e49838f230f8afd72fc0e893a43af.zip cpython-39a23cc1e36e49838f230f8afd72fc0e893a43af.tar.gz cpython-39a23cc1e36e49838f230f8afd72fc0e893a43af.tar.bz2 |
Doc for mailbox.tex (Jack)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libmailbox.tex | 42 | ||||
-rw-r--r-- | Doc/libmailbox.tex | 42 |
2 files changed, 84 insertions, 0 deletions
diff --git a/Doc/lib/libmailbox.tex b/Doc/lib/libmailbox.tex new file mode 100644 index 0000000..31618b2 --- /dev/null +++ b/Doc/lib/libmailbox.tex @@ -0,0 +1,42 @@ +\section{Standard Module \sectcode{mailbox}} +\stmodindex{mailbox} + +\renewcommand{\indexsubitem}{(in module mailbox)} + +This module defines a number of classes that allow easy and uniform +access to mail messages in a (unix) mailbox. + +\begin{funcdesc}{UnixMailbox}{fp} +Access a classic unix-style mailbox, where all messages are contained +in a single file and separated by ``From name time'' lines. \var{Fp} +is the file object pointing to the mailbox file. +\end{funcdesc} + +\begin{funcdesc}{MmdfMailbox}{fp} +Access an MMDF-style mailbox, where all messages are contained +in a single file and separated by lines consisting of 4 control-A +characters. \var{Fp} +is the file object pointing to the mailbox file. +\end{funcdesc} + +\begin{funcdesc}{MHMailbox}{dirname} +Access an MH mailbox, a directory with each message in a separate +file with a numeric name. \var{Dirname} +is the name of the mailbox directory. +\end{funcdesc} + +\subsection{Mailbox Objects} + +All implementations of Mailbox objects have one externally visible +method: + +\begin{funcdesc}{next}{} +Return the next message in the mailbox, as a \code{rfc822.Message} object= +=2E +Depending on the mailbox implementation the \var{fp} attribute of this +object may be a true file object or a class instance simulating a file ob= +ject, +taking care of things like message boundaries if multiple mail messages a= +re +contained in a single file, etc. +\end{funcdesc} diff --git a/Doc/libmailbox.tex b/Doc/libmailbox.tex new file mode 100644 index 0000000..31618b2 --- /dev/null +++ b/Doc/libmailbox.tex @@ -0,0 +1,42 @@ +\section{Standard Module \sectcode{mailbox}} +\stmodindex{mailbox} + +\renewcommand{\indexsubitem}{(in module mailbox)} + +This module defines a number of classes that allow easy and uniform +access to mail messages in a (unix) mailbox. + +\begin{funcdesc}{UnixMailbox}{fp} +Access a classic unix-style mailbox, where all messages are contained +in a single file and separated by ``From name time'' lines. \var{Fp} +is the file object pointing to the mailbox file. +\end{funcdesc} + +\begin{funcdesc}{MmdfMailbox}{fp} +Access an MMDF-style mailbox, where all messages are contained +in a single file and separated by lines consisting of 4 control-A +characters. \var{Fp} +is the file object pointing to the mailbox file. +\end{funcdesc} + +\begin{funcdesc}{MHMailbox}{dirname} +Access an MH mailbox, a directory with each message in a separate +file with a numeric name. \var{Dirname} +is the name of the mailbox directory. +\end{funcdesc} + +\subsection{Mailbox Objects} + +All implementations of Mailbox objects have one externally visible +method: + +\begin{funcdesc}{next}{} +Return the next message in the mailbox, as a \code{rfc822.Message} object= +=2E +Depending on the mailbox implementation the \var{fp} attribute of this +object may be a true file object or a class instance simulating a file ob= +ject, +taking care of things like message boundaries if multiple mail messages a= +re +contained in a single file, etc. +\end{funcdesc} |