gooderp18绿色标准版
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

431 lines
28KB

  1. <!DOCTYPE html>
  2. <html lang="en" data-content_root="../">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <meta property="og:title" content="email.errors: Exception and Defect classes" />
  7. <meta property="og:type" content="website" />
  8. <meta property="og:url" content="https://docs.python.org/3/library/email.errors.html" />
  9. <meta property="og:site_name" content="Python documentation" />
  10. <meta property="og:description" content="Source code: Lib/email/errors.py The following exception classes are defined in the email.errors module: Here is the list of the defects that the FeedParser can find while parsing messages. Note th..." />
  11. <meta property="og:image" content="https://docs.python.org/3/_static/og-image.png" />
  12. <meta property="og:image:alt" content="Python documentation" />
  13. <meta name="description" content="Source code: Lib/email/errors.py The following exception classes are defined in the email.errors module: Here is the list of the defects that the FeedParser can find while parsing messages. Note th..." />
  14. <meta property="og:image:width" content="200" />
  15. <meta property="og:image:height" content="200" />
  16. <meta name="theme-color" content="#3776ab" />
  17. <title>email.errors: Exception and Defect classes &#8212; Python 3.12.3 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
  18. <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
  19. <link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?v=bb723527" />
  20. <link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="../_static/pygments_dark.css?v=b20cc3f5" />
  21. <script src="../_static/documentation_options.js?v=2c828074"></script>
  22. <script src="../_static/doctools.js?v=888ff710"></script>
  23. <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
  24. <script src="../_static/sidebar.js"></script>
  25. <link rel="search" type="application/opensearchdescription+xml"
  26. title="Search within Python 3.12.3 documentation"
  27. href="../_static/opensearch.xml"/>
  28. <link rel="author" title="About these documents" href="../about.html" />
  29. <link rel="index" title="Index" href="../genindex.html" />
  30. <link rel="search" title="Search" href="../search.html" />
  31. <link rel="copyright" title="Copyright" href="../copyright.html" />
  32. <link rel="next" title="email.headerregistry: Custom Header Objects" href="email.headerregistry.html" />
  33. <link rel="prev" title="email.policy: Policy Objects" href="email.policy.html" />
  34. <link rel="canonical" href="https://docs.python.org/3/library/email.errors.html" />
  35. <style>
  36. @media only screen {
  37. table.full-width-table {
  38. width: 100%;
  39. }
  40. }
  41. </style>
  42. <link rel="stylesheet" href="../_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
  43. <link rel="shortcut icon" type="image/png" href="../_static/py.svg" />
  44. <script type="text/javascript" src="../_static/copybutton.js"></script>
  45. <script type="text/javascript" src="../_static/menu.js"></script>
  46. <script type="text/javascript" src="../_static/search-focus.js"></script>
  47. <script type="text/javascript" src="../_static/themetoggle.js"></script>
  48. </head>
  49. <body>
  50. <div class="mobile-nav">
  51. <input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
  52. aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu" />
  53. <nav class="nav-content" role="navigation">
  54. <label for="menuToggler" class="toggler__label">
  55. <span></span>
  56. </label>
  57. <span class="nav-items-wrapper">
  58. <a href="https://www.python.org/" class="nav-logo">
  59. <img src="../_static/py.svg" alt="Python logo"/>
  60. </a>
  61. <span class="version_switcher_placeholder"></span>
  62. <form role="search" class="search" action="../search.html" method="get">
  63. <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
  64. <path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
  65. </svg>
  66. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  67. <input type="submit" value="Go"/>
  68. </form>
  69. </span>
  70. </nav>
  71. <div class="menu-wrapper">
  72. <nav class="menu" role="navigation" aria-label="main navigation">
  73. <div class="language_switcher_placeholder"></div>
  74. <label class="theme-selector-label">
  75. Theme
  76. <select class="theme-selector" oninput="activateTheme(this.value)">
  77. <option value="auto" selected>Auto</option>
  78. <option value="light">Light</option>
  79. <option value="dark">Dark</option>
  80. </select>
  81. </label>
  82. <div>
  83. <h4>Previous topic</h4>
  84. <p class="topless"><a href="email.policy.html"
  85. title="previous chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">email.policy</span></code>: Policy Objects</a></p>
  86. </div>
  87. <div>
  88. <h4>Next topic</h4>
  89. <p class="topless"><a href="email.headerregistry.html"
  90. title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">email.headerregistry</span></code>: Custom Header Objects</a></p>
  91. </div>
  92. <div role="note" aria-label="source link">
  93. <h3>This Page</h3>
  94. <ul class="this-page-menu">
  95. <li><a href="../bugs.html">Report a Bug</a></li>
  96. <li>
  97. <a href="https://github.com/python/cpython/blob/main/Doc/library/email.errors.rst"
  98. rel="nofollow">Show Source
  99. </a>
  100. </li>
  101. </ul>
  102. </div>
  103. </nav>
  104. </div>
  105. </div>
  106. <div class="related" role="navigation" aria-label="related navigation">
  107. <h3>Navigation</h3>
  108. <ul>
  109. <li class="right" style="margin-right: 10px">
  110. <a href="../genindex.html" title="General Index"
  111. accesskey="I">index</a></li>
  112. <li class="right" >
  113. <a href="../py-modindex.html" title="Python Module Index"
  114. >modules</a> |</li>
  115. <li class="right" >
  116. <a href="email.headerregistry.html" title="email.headerregistry: Custom Header Objects"
  117. accesskey="N">next</a> |</li>
  118. <li class="right" >
  119. <a href="email.policy.html" title="email.policy: Policy Objects"
  120. accesskey="P">previous</a> |</li>
  121. <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  122. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  123. <li class="switchers">
  124. <div class="language_switcher_placeholder"></div>
  125. <div class="version_switcher_placeholder"></div>
  126. </li>
  127. <li>
  128. </li>
  129. <li id="cpython-language-and-version">
  130. <a href="../index.html">3.12.3 Documentation</a> &#187;
  131. </li>
  132. <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>
  133. <li class="nav-item nav-item-2"><a href="netdata.html" >Internet Data Handling</a> &#187;</li>
  134. <li class="nav-item nav-item-3"><a href="email.html" accesskey="U"><code class="xref py py-mod docutils literal notranslate"><span class="pre">email</span></code> — An email and MIME handling package</a> &#187;</li>
  135. <li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">email.errors</span></code>: Exception and Defect classes</a></li>
  136. <li class="right">
  137. <div class="inline-search" role="search">
  138. <form class="inline-search" action="../search.html" method="get">
  139. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  140. <input type="submit" value="Go" />
  141. </form>
  142. </div>
  143. |
  144. </li>
  145. <li class="right">
  146. <label class="theme-selector-label">
  147. Theme
  148. <select class="theme-selector" oninput="activateTheme(this.value)">
  149. <option value="auto" selected>Auto</option>
  150. <option value="light">Light</option>
  151. <option value="dark">Dark</option>
  152. </select>
  153. </label> |</li>
  154. </ul>
  155. </div>
  156. <div class="document">
  157. <div class="documentwrapper">
  158. <div class="bodywrapper">
  159. <div class="body" role="main">
  160. <section id="module-email.errors">
  161. <span id="email-errors-exception-and-defect-classes"></span><h1><a class="reference internal" href="#module-email.errors" title="email.errors: The exception classes used by the email package."><code class="xref py py-mod docutils literal notranslate"><span class="pre">email.errors</span></code></a>: Exception and Defect classes<a class="headerlink" href="#module-email.errors" title="Link to this heading">¶</a></h1>
  162. <p><strong>Source code:</strong> <a class="reference external" href="https://github.com/python/cpython/tree/3.12/Lib/email/errors.py">Lib/email/errors.py</a></p>
  163. <hr class="docutils" />
  164. <p>The following exception classes are defined in the <a class="reference internal" href="#module-email.errors" title="email.errors: The exception classes used by the email package."><code class="xref py py-mod docutils literal notranslate"><span class="pre">email.errors</span></code></a> module:</p>
  165. <dl class="py exception">
  166. <dt class="sig sig-object py" id="email.errors.MessageError">
  167. <em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">email.errors.</span></span><span class="sig-name descname"><span class="pre">MessageError</span></span><a class="headerlink" href="#email.errors.MessageError" title="Link to this definition">¶</a></dt>
  168. <dd><p>This is the base class for all exceptions that the <a class="reference internal" href="email.html#module-email" title="email: Package supporting the parsing, manipulating, and generating email messages."><code class="xref py py-mod docutils literal notranslate"><span class="pre">email</span></code></a> package can
  169. raise. It is derived from the standard <a class="reference internal" href="exceptions.html#Exception" title="Exception"><code class="xref py py-exc docutils literal notranslate"><span class="pre">Exception</span></code></a> class and defines no
  170. additional methods.</p>
  171. </dd></dl>
  172. <dl class="py exception">
  173. <dt class="sig sig-object py" id="email.errors.MessageParseError">
  174. <em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">email.errors.</span></span><span class="sig-name descname"><span class="pre">MessageParseError</span></span><a class="headerlink" href="#email.errors.MessageParseError" title="Link to this definition">¶</a></dt>
  175. <dd><p>This is the base class for exceptions raised by the
  176. <a class="reference internal" href="email.parser.html#email.parser.Parser" title="email.parser.Parser"><code class="xref py py-class docutils literal notranslate"><span class="pre">Parser</span></code></a> class. It is derived from
  177. <a class="reference internal" href="#email.errors.MessageError" title="email.errors.MessageError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">MessageError</span></code></a>. This class is also used internally by the parser used
  178. by <a class="reference internal" href="email.headerregistry.html#module-email.headerregistry" title="email.headerregistry: Automatic Parsing of headers based on the field name"><code class="xref py py-mod docutils literal notranslate"><span class="pre">headerregistry</span></code></a>.</p>
  179. </dd></dl>
  180. <dl class="py exception">
  181. <dt class="sig sig-object py" id="email.errors.HeaderParseError">
  182. <em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">email.errors.</span></span><span class="sig-name descname"><span class="pre">HeaderParseError</span></span><a class="headerlink" href="#email.errors.HeaderParseError" title="Link to this definition">¶</a></dt>
  183. <dd><p>Raised under some error conditions when parsing the <span class="target" id="index-0"></span><a class="rfc reference external" href="https://datatracker.ietf.org/doc/html/rfc5322.html"><strong>RFC 5322</strong></a> headers of a
  184. message, this class is derived from <a class="reference internal" href="#email.errors.MessageParseError" title="email.errors.MessageParseError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">MessageParseError</span></code></a>. The
  185. <a class="reference internal" href="email.message.html#email.message.EmailMessage.set_boundary" title="email.message.EmailMessage.set_boundary"><code class="xref py py-meth docutils literal notranslate"><span class="pre">set_boundary()</span></code></a> method will raise this
  186. error if the content type is unknown when the method is called.
  187. <a class="reference internal" href="email.header.html#email.header.Header" title="email.header.Header"><code class="xref py py-class docutils literal notranslate"><span class="pre">Header</span></code></a> may raise this error for certain base64
  188. decoding errors, and when an attempt is made to create a header that appears
  189. to contain an embedded header (that is, there is what is supposed to be a
  190. continuation line that has no leading whitespace and looks like a header).</p>
  191. </dd></dl>
  192. <dl class="py exception">
  193. <dt class="sig sig-object py" id="email.errors.BoundaryError">
  194. <em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">email.errors.</span></span><span class="sig-name descname"><span class="pre">BoundaryError</span></span><a class="headerlink" href="#email.errors.BoundaryError" title="Link to this definition">¶</a></dt>
  195. <dd><p>Deprecated and no longer used.</p>
  196. </dd></dl>
  197. <dl class="py exception">
  198. <dt class="sig sig-object py" id="email.errors.MultipartConversionError">
  199. <em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">email.errors.</span></span><span class="sig-name descname"><span class="pre">MultipartConversionError</span></span><a class="headerlink" href="#email.errors.MultipartConversionError" title="Link to this definition">¶</a></dt>
  200. <dd><p>Raised when a payload is added to a <a class="reference internal" href="email.compat32-message.html#email.message.Message" title="email.message.Message"><code class="xref py py-class docutils literal notranslate"><span class="pre">Message</span></code></a> object
  201. using <code class="xref py py-meth docutils literal notranslate"><span class="pre">add_payload()</span></code>, but the payload is already a scalar and the
  202. message’s <em class="mailheader">Content-Type</em> main type is not either
  203. <em class="mimetype">multipart</em> or missing. <a class="reference internal" href="#email.errors.MultipartConversionError" title="email.errors.MultipartConversionError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">MultipartConversionError</span></code></a> multiply
  204. inherits from <a class="reference internal" href="#email.errors.MessageError" title="email.errors.MessageError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">MessageError</span></code></a> and the built-in <a class="reference internal" href="exceptions.html#TypeError" title="TypeError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">TypeError</span></code></a>.</p>
  205. <p>Since <code class="xref py py-meth docutils literal notranslate"><span class="pre">Message.add_payload()</span></code> is deprecated, this exception is rarely
  206. raised in practice. However the exception may also be raised if the
  207. <a class="reference internal" href="email.compat32-message.html#email.message.Message.attach" title="email.message.Message.attach"><code class="xref py py-meth docutils literal notranslate"><span class="pre">attach()</span></code></a>
  208. method is called on an instance of a class derived from
  209. <a class="reference internal" href="email.mime.html#email.mime.nonmultipart.MIMENonMultipart" title="email.mime.nonmultipart.MIMENonMultipart"><code class="xref py py-class docutils literal notranslate"><span class="pre">MIMENonMultipart</span></code></a> (e.g.
  210. <a class="reference internal" href="email.mime.html#email.mime.image.MIMEImage" title="email.mime.image.MIMEImage"><code class="xref py py-class docutils literal notranslate"><span class="pre">MIMEImage</span></code></a>).</p>
  211. </dd></dl>
  212. <dl class="py exception">
  213. <dt class="sig sig-object py" id="email.errors.MessageDefect">
  214. <em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">email.errors.</span></span><span class="sig-name descname"><span class="pre">MessageDefect</span></span><a class="headerlink" href="#email.errors.MessageDefect" title="Link to this definition">¶</a></dt>
  215. <dd><p>This is the base class for all defects found when parsing email messages.
  216. It is derived from <a class="reference internal" href="exceptions.html#ValueError" title="ValueError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">ValueError</span></code></a>.</p>
  217. </dd></dl>
  218. <dl class="py exception">
  219. <dt class="sig sig-object py" id="email.errors.HeaderDefect">
  220. <em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">email.errors.</span></span><span class="sig-name descname"><span class="pre">HeaderDefect</span></span><a class="headerlink" href="#email.errors.HeaderDefect" title="Link to this definition">¶</a></dt>
  221. <dd><p>This is the base class for all defects found when parsing email headers.
  222. It is derived from <a class="reference internal" href="#email.errors.MessageDefect" title="email.errors.MessageDefect"><code class="xref py py-exc docutils literal notranslate"><span class="pre">MessageDefect</span></code></a>.</p>
  223. </dd></dl>
  224. <p>Here is the list of the defects that the <a class="reference internal" href="email.parser.html#email.parser.FeedParser" title="email.parser.FeedParser"><code class="xref py py-class docutils literal notranslate"><span class="pre">FeedParser</span></code></a>
  225. can find while parsing messages. Note that the defects are added to the message
  226. where the problem was found, so for example, if a message nested inside a
  227. <em class="mimetype">multipart/alternative</em> had a malformed header, that nested message
  228. object would have a defect, but the containing messages would not.</p>
  229. <p>All defect classes are subclassed from <a class="reference internal" href="#email.errors.MessageDefect" title="email.errors.MessageDefect"><code class="xref py py-class docutils literal notranslate"><span class="pre">email.errors.MessageDefect</span></code></a>.</p>
  230. <ul>
  231. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">NoBoundaryInMultipartDefect</span></code> – A message claimed to be a multipart,
  232. but had no <em class="mimetype">boundary</em> parameter.</p></li>
  233. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">StartBoundaryNotFoundDefect</span></code> – The start boundary claimed in the
  234. <em class="mailheader">Content-Type</em> header was never found.</p></li>
  235. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">CloseBoundaryNotFoundDefect</span></code> – A start boundary was found, but
  236. no corresponding close boundary was ever found.</p>
  237. <div class="versionadded">
  238. <p><span class="versionmodified added">New in version 3.3.</span></p>
  239. </div>
  240. </li>
  241. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">FirstHeaderLineIsContinuationDefect</span></code> – The message had a continuation
  242. line as its first header line.</p></li>
  243. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">MisplacedEnvelopeHeaderDefect</span></code> - A “Unix From” header was found in the
  244. middle of a header block.</p></li>
  245. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">MissingHeaderBodySeparatorDefect</span></code> - A line was found while parsing
  246. headers that had no leading white space but contained no ‘:’. Parsing
  247. continues assuming that the line represents the first line of the body.</p>
  248. <div class="versionadded">
  249. <p><span class="versionmodified added">New in version 3.3.</span></p>
  250. </div>
  251. </li>
  252. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">MalformedHeaderDefect</span></code> – A header was found that was missing a colon,
  253. or was otherwise malformed.</p>
  254. <div class="deprecated">
  255. <p><span class="versionmodified deprecated">Deprecated since version 3.3: </span>This defect has not been used for several Python versions.</p>
  256. </div>
  257. </li>
  258. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">MultipartInvariantViolationDefect</span></code> – A message claimed to be a
  259. <em class="mimetype">multipart</em>, but no subparts were found. Note that when a message
  260. has this defect, its <a class="reference internal" href="email.compat32-message.html#email.message.Message.is_multipart" title="email.message.Message.is_multipart"><code class="xref py py-meth docutils literal notranslate"><span class="pre">is_multipart()</span></code></a> method may
  261. return <code class="docutils literal notranslate"><span class="pre">False</span></code> even though its content type claims to be <em class="mimetype">multipart</em>.</p></li>
  262. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">InvalidBase64PaddingDefect</span></code> – When decoding a block of base64
  263. encoded bytes, the padding was not correct. Enough padding is added to
  264. perform the decode, but the resulting decoded bytes may be invalid.</p></li>
  265. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">InvalidBase64CharactersDefect</span></code> – When decoding a block of base64
  266. encoded bytes, characters outside the base64 alphabet were encountered.
  267. The characters are ignored, but the resulting decoded bytes may be invalid.</p></li>
  268. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">InvalidBase64LengthDefect</span></code> – When decoding a block of base64 encoded
  269. bytes, the number of non-padding base64 characters was invalid (1 more than
  270. a multiple of 4). The encoded block was kept as-is.</p></li>
  271. <li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">InvalidDateDefect</span></code> – When decoding an invalid or unparsable date field.
  272. The original value is kept as-is.</p></li>
  273. </ul>
  274. </section>
  275. <div class="clearer"></div>
  276. </div>
  277. </div>
  278. </div>
  279. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  280. <div class="sphinxsidebarwrapper">
  281. <div>
  282. <h4>Previous topic</h4>
  283. <p class="topless"><a href="email.policy.html"
  284. title="previous chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">email.policy</span></code>: Policy Objects</a></p>
  285. </div>
  286. <div>
  287. <h4>Next topic</h4>
  288. <p class="topless"><a href="email.headerregistry.html"
  289. title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">email.headerregistry</span></code>: Custom Header Objects</a></p>
  290. </div>
  291. <div role="note" aria-label="source link">
  292. <h3>This Page</h3>
  293. <ul class="this-page-menu">
  294. <li><a href="../bugs.html">Report a Bug</a></li>
  295. <li>
  296. <a href="https://github.com/python/cpython/blob/main/Doc/library/email.errors.rst"
  297. rel="nofollow">Show Source
  298. </a>
  299. </li>
  300. </ul>
  301. </div>
  302. </div>
  303. <div id="sidebarbutton" title="Collapse sidebar">
  304. <span>«</span>
  305. </div>
  306. </div>
  307. <div class="clearer"></div>
  308. </div>
  309. <div class="related" role="navigation" aria-label="related navigation">
  310. <h3>Navigation</h3>
  311. <ul>
  312. <li class="right" style="margin-right: 10px">
  313. <a href="../genindex.html" title="General Index"
  314. >index</a></li>
  315. <li class="right" >
  316. <a href="../py-modindex.html" title="Python Module Index"
  317. >modules</a> |</li>
  318. <li class="right" >
  319. <a href="email.headerregistry.html" title="email.headerregistry: Custom Header Objects"
  320. >next</a> |</li>
  321. <li class="right" >
  322. <a href="email.policy.html" title="email.policy: Policy Objects"
  323. >previous</a> |</li>
  324. <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  325. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  326. <li class="switchers">
  327. <div class="language_switcher_placeholder"></div>
  328. <div class="version_switcher_placeholder"></div>
  329. </li>
  330. <li>
  331. </li>
  332. <li id="cpython-language-and-version">
  333. <a href="../index.html">3.12.3 Documentation</a> &#187;
  334. </li>
  335. <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>
  336. <li class="nav-item nav-item-2"><a href="netdata.html" >Internet Data Handling</a> &#187;</li>
  337. <li class="nav-item nav-item-3"><a href="email.html" ><code class="xref py py-mod docutils literal notranslate"><span class="pre">email</span></code> — An email and MIME handling package</a> &#187;</li>
  338. <li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">email.errors</span></code>: Exception and Defect classes</a></li>
  339. <li class="right">
  340. <div class="inline-search" role="search">
  341. <form class="inline-search" action="../search.html" method="get">
  342. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  343. <input type="submit" value="Go" />
  344. </form>
  345. </div>
  346. |
  347. </li>
  348. <li class="right">
  349. <label class="theme-selector-label">
  350. Theme
  351. <select class="theme-selector" oninput="activateTheme(this.value)">
  352. <option value="auto" selected>Auto</option>
  353. <option value="light">Light</option>
  354. <option value="dark">Dark</option>
  355. </select>
  356. </label> |</li>
  357. </ul>
  358. </div>
  359. <div class="footer">
  360. &copy;
  361. <a href="../copyright.html">
  362. Copyright
  363. </a>
  364. 2001-2024, Python Software Foundation.
  365. <br />
  366. This page is licensed under the Python Software Foundation License Version 2.
  367. <br />
  368. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
  369. <br />
  370. See <a href="/license.html">History and License</a> for more information.<br />
  371. <br />
  372. The Python Software Foundation is a non-profit corporation.
  373. <a href="https://www.python.org/psf/donations/">Please donate.</a>
  374. <br />
  375. <br />
  376. Last updated on Apr 09, 2024 (13:47 UTC).
  377. <a href="/bugs.html">Found a bug</a>?
  378. <br />
  379. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
  380. </div>
  381. </body>
  382. </html>
上海开阖软件有限公司 沪ICP备12045867号-1