summaryrefslogtreecommitdiffstats
path: root/Doc/lib/emailexc.tex
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-10-01 01:05:52 (GMT)
committerBarry Warsaw <barry@python.org>2002-10-01 01:05:52 (GMT)
commit5b9da893d3590106398afed0383bc06738d8c095 (patch)
tree0944fd3c84ae880eff51cbb1afdbffacdd03939b /Doc/lib/emailexc.tex
parent2d7fab1a4519df3e13c87c5b6c2a06bd48525227 (diff)
downloadcpython-5b9da893d3590106398afed0383bc06738d8c095.zip
cpython-5b9da893d3590106398afed0383bc06738d8c095.tar.gz
cpython-5b9da893d3590106398afed0383bc06738d8c095.tar.bz2
Vast update to email version 2. This could surely use proofreading.
Diffstat (limited to 'Doc/lib/emailexc.tex')
-rw-r--r--Doc/lib/emailexc.tex10
1 files changed, 8 insertions, 2 deletions
diff --git a/Doc/lib/emailexc.tex b/Doc/lib/emailexc.tex
index 4929244..824a276 100644
--- a/Doc/lib/emailexc.tex
+++ b/Doc/lib/emailexc.tex
@@ -21,7 +21,7 @@ a message, this class is derived from \exception{MessageParseError}.
It can be raised from the \method{Parser.parse()} or
\method{Parser.parsestr()} methods.
-Situations where it can be raised include finding a \emph{Unix-From}
+Situations where it can be raised include finding an envelope
header after the first \rfc{2822} header of the message, finding a
continuation line before the first \rfc{2822} header is found, or finding
a line in the headers which is neither a header or a continuation
@@ -35,7 +35,8 @@ It can be raised from the \method{Parser.parse()} or
\method{Parser.parsestr()} methods.
Situations where it can be raised include not being able to find the
-starting or terminating boundary in a \mimetype{multipart/*} message.
+starting or terminating boundary in a \mimetype{multipart/*} message
+when strict parsing is used.
\end{excclassdesc}
\begin{excclassdesc}{MultipartConversionError}{}
@@ -45,4 +46,9 @@ message's \mailheader{Content-Type} main type is not either
\mimetype{multipart} or missing. \exception{MultipartConversionError}
multiply inherits from \exception{MessageError} and the built-in
\exception{TypeError}.
+
+Since \method{Message.add_payload()} is deprecated, this exception is
+rarely raised in practice. However the exception may also be raised
+if the \method{attach()} method is called on an instance of a class
+derived from \class{MIMENonMultipart} (e.g. \class{MIMEImage}).
\end{excclassdesc}