Fred Drake | 0ba5541 | 2002-10-01 18:20:16 +0000 | [diff] [blame] | 1 | % This document is largely a stub used to allow the email package docs |
| 2 | % to be formatted separately from the rest of the Python |
| 3 | % documentation. This allows the documentation to be released |
| 4 | % independently of the rest of Python since the email package is being |
| 5 | % maintained for multiple Python versions, and on an accelerated |
| 6 | % schedule. |
| 7 | |
Fred Drake | c616173 | 2002-10-01 14:38:47 +0000 | [diff] [blame] | 8 | \documentclass{howto} |
| 9 | |
| 10 | \title{email Package Reference} |
| 11 | \author{Barry Warsaw} |
| 12 | \authoraddress{\email{barry@zope.com}} |
| 13 | |
| 14 | \date{\today} |
Barry Warsaw | 45c3941 | 2003-03-12 03:43:09 +0000 | [diff] [blame^] | 15 | \release{2.5b1} % software release, not documentation |
Fred Drake | c616173 | 2002-10-01 14:38:47 +0000 | [diff] [blame] | 16 | \setreleaseinfo{} % empty for final release |
Barry Warsaw | 45c3941 | 2003-03-12 03:43:09 +0000 | [diff] [blame^] | 17 | \setshortversion{2.5} % major.minor only for software |
Fred Drake | c616173 | 2002-10-01 14:38:47 +0000 | [diff] [blame] | 18 | |
| 19 | \begin{document} |
| 20 | |
| 21 | \maketitle |
| 22 | |
| 23 | \begin{abstract} |
Barry Warsaw | de6977f | 2002-10-01 15:13:29 +0000 | [diff] [blame] | 24 | The \module{email} package provides classes and utilities to create, |
| 25 | parse, generate, and modify email messages, conforming to all the |
| 26 | relevant email and MIME related RFCs. |
Fred Drake | c616173 | 2002-10-01 14:38:47 +0000 | [diff] [blame] | 27 | \end{abstract} |
| 28 | |
| 29 | % The ugly "%begin{latexonly}" pseudo-environment supresses the table |
| 30 | % of contents for HTML generation. |
| 31 | % |
| 32 | %begin{latexonly} |
| 33 | \tableofcontents |
| 34 | %end{latexonly} |
| 35 | |
Barry Warsaw | de6977f | 2002-10-01 15:13:29 +0000 | [diff] [blame] | 36 | \section{Introduction} |
| 37 | The \module{email} package provides classes and utilities to create, |
| 38 | parse, generate, and modify email messages, conforming to all the |
| 39 | relevant email and MIME related RFCs. |
| 40 | |
| 41 | This document describes the current version of the \module{email} |
| 42 | package, which is available to Python programmers in a number of ways. |
| 43 | Python 2.2.2 and 2.3 come with \module{email} version 2, while earlier |
| 44 | versions of Python 2.2.x come with \module{email} version 1. Python |
| 45 | 2.1.x and earlier do not come with any version of the \module{email} |
| 46 | package. |
| 47 | |
| 48 | The \module{email} package is also available as a standalone distutils |
| 49 | package, and is compatible with Python 2.1.3 and beyond. Thus, if |
| 50 | you're using Python 2.1.3 you can download the standalone package and |
| 51 | install it in your \file{site-packages} directory. The standalone |
| 52 | \module{email} package is available on the |
| 53 | \ulink{SourceForge \module{mimelib} project}{http://mimelib.sf.net}. |
| 54 | |
| 55 | The documentation that follows was written for the Python project, so |
| 56 | if you're reading this as part of the standalone \module{email} |
| 57 | package documentation, there are a few notes to be aware of: |
| 58 | |
| 59 | \begin{itemize} |
| 60 | \item Deprecation and ``version added'' notes are relative to the |
| 61 | Python version a feature was added or deprecated. To find out |
| 62 | what version of the \module{email} package a particular item was |
| 63 | added, changed, or removed, refer to the package's |
| 64 | \ulink{\file{NEWS} file}{http://cvs.sf.net/cgi-bin/viewcvs.cgi/mimelib/mimelib/NEWS?rev=1.36&content-type=text/vnd.viewcvs-markup}. |
| 65 | |
| 66 | \item The code samples are written with Python 2.2 in mind. For |
| 67 | Python 2.1.3, some adjustments are necessary. For example, this |
| 68 | code snippet; |
| 69 | |
| 70 | \begin{verbatim} |
| 71 | if isinstance(s, str): |
| 72 | # ... |
| 73 | \end{verbatim} |
| 74 | |
| 75 | would need to be written this way in Python 2.1.3: |
| 76 | |
| 77 | \begin{verbatim} |
| 78 | from types import StringType |
| 79 | # ... |
| 80 | if isinstance(s, StringType): |
| 81 | # ... |
| 82 | \end{verbatim} |
| 83 | |
| 84 | \item If you're reading this documentation as part of the |
| 85 | standalone \module{email} package, some of the internal links to |
| 86 | other sections of the Python standard library may not resolve. |
| 87 | |
| 88 | \end{itemize} |
| 89 | |
Fred Drake | c616173 | 2002-10-01 14:38:47 +0000 | [diff] [blame] | 90 | \input{email} |
| 91 | |
| 92 | \end{document} |