Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ffaa62f7
Commit
ffaa62f7
authored
Jun 02, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc for mailbox.tex (Jack)
parent
5a2103e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
0 deletions
+84
-0
Doc/lib/libmailbox.tex
Doc/lib/libmailbox.tex
+42
-0
Doc/libmailbox.tex
Doc/libmailbox.tex
+42
-0
No files found.
Doc/lib/libmailbox.tex
0 → 100644
View file @
ffaa62f7
\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}
Doc/libmailbox.tex
0 → 100644
View file @
ffaa62f7
\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}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment