⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 module-mailbox.html

📁 一本很好的python的说明书,适合对python感兴趣的人
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>12.14 mailbox -- Read various mailbox formats</title>
<META NAME="description" CONTENT="12.14 mailbox -- Read various mailbox formats">
<META NAME="keywords" CONTENT="lib">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="lib.css" tppabs="http://www.python.org/doc/current/lib/lib.css">
<LINK REL="next" href="module-mhlib.html" tppabs="http://www.python.org/doc/current/lib/module-mhlib.html">
<LINK REL="previous" href="module-quopri.html" tppabs="http://www.python.org/doc/current/lib/module-quopri.html">
<LINK REL="up" href="netdata.html" tppabs="http://www.python.org/doc/current/lib/netdata.html">
<LINK REL="next" href="mailbox-objects.html" tppabs="http://www.python.org/doc/current/lib/mailbox-objects.html">
</head>
<body>
<DIV CLASS="navigation"><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="module-quopri.html" tppabs="http://www.python.org/doc/current/lib/module-quopri.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A href="netdata.html" tppabs="http://www.python.org/doc/current/lib/netdata.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A href="mailbox-objects.html" tppabs="http://www.python.org/doc/current/lib/mailbox-objects.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
  alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
  alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
  alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="module-quopri.html" tppabs="http://www.python.org/doc/current/lib/module-quopri.html">12.13 quopri  </A>
<b class="navlabel">Up:</b> <a class="sectref" href="netdata.html" tppabs="http://www.python.org/doc/current/lib/netdata.html">12. Internet Data Handling</A>
<b class="navlabel">Next:</b> <a class="sectref" href="mailbox-objects.html" tppabs="http://www.python.org/doc/current/lib/mailbox-objects.html">12.14.1 Mailbox Objects</A>
<br><hr></DIV>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION00141400000000000000000">
12.14 <tt class="module">mailbox</tt> --
         Read various mailbox formats</A>
</H1>

<P>


<P>
This module defines a number of classes that allow easy and uniform
access to mail messages in a (Unix) mailbox.

<P>
<dl><dt><b><a name='l2h-2495'><tt class='class'>UnixMailbox</tt></a></b> (<var>fp</var>)
<dd>
Access a classic Unix-style mailbox, where all messages are contained
in a single file and separated by ``From name time'' lines.
The file object <var>fp</var> points to the mailbox file.
</dl>

<P>
<dl><dt><b><a name='l2h-2496'><tt class='class'>MmdfMailbox</tt></a></b> (<var>fp</var>)
<dd>
Access an MMDF-style mailbox, where all messages are contained
in a single file and separated by lines consisting of 4 control-A
characters.  The file object <var>fp</var> points to the mailbox file.
</dl>

<P>
<dl><dt><b><a name='l2h-2497'><tt class='class'>MHMailbox</tt></a></b> (<var>dirname</var>)
<dd>
Access an MH mailbox, a directory with each message in a separate
file with a numeric name.
The name of the mailbox directory is passed in <var>dirname</var>.
</dl>

<P>
<dl><dt><b><a name='l2h-2498'><tt class='class'>Maildir</tt></a></b> (<var>dirname</var>)
<dd>
Access a Qmail mail directory.  All new and current mail for the
mailbox specified by <var>dirname</var> is made available.
</dl>

<P>
<dl><dt><b><a name='l2h-2499'><tt class='class'>BabylMailbox</tt></a></b> (<var>fp</var>)
<dd>
Access a Babyl mailbox, which is similar to an MMDF mailbox.  Mail
messages start with a line containing only <code>'*** EOOH ***'</code> and
end with a line containing only <code>'&#92;037&#92;014'</code>.
</dl>

<P>

<p><hr>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL>
<LI><A NAME="tex2html4648"
  href="mailbox-objects.html" tppabs="http://www.python.org/doc/current/lib/mailbox-objects.html">12.14.1 Mailbox Objects </A>
</UL>
<!--End of Table of Child-Links-->

<DIV CLASS="navigation"><p><hr><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="module-quopri.html" tppabs="http://www.python.org/doc/current/lib/module-quopri.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A href="netdata.html" tppabs="http://www.python.org/doc/current/lib/netdata.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A href="mailbox-objects.html" tppabs="http://www.python.org/doc/current/lib/mailbox-objects.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
  alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
  alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
  alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="module-quopri.html" tppabs="http://www.python.org/doc/current/lib/module-quopri.html">12.13 quopri  </A>
<b class="navlabel">Up:</b> <a class="sectref" href="netdata.html" tppabs="http://www.python.org/doc/current/lib/netdata.html">12. Internet Data Handling</A>
<b class="navlabel">Next:</b> <a class="sectref" href="mailbox-objects.html" tppabs="http://www.python.org/doc/current/lib/mailbox-objects.html">12.14.1 Mailbox Objects</A>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
<hr>See <i><a href="about.html" tppabs="http://www.python.org/doc/current/lib/about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -