summaryrefslogtreecommitdiff
path: root/Doc/lib/libmimetools.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-08-03 18:39:36 +0000
committerFred Drake <fdrake@acm.org>2001-08-03 18:39:36 +0000
commitd86038d1be19c75ed15c13faf7388579c42439b4 (patch)
treed43d4bb99879f8e7f8bfb4aec3d9bbc7ca55f313 /Doc/lib/libmimetools.tex
parent7eac0cb04c35529f17b797fa6e5a0872ff1a6a86 (diff)
downloadcpython-git-d86038d1be19c75ed15c13faf7388579c42439b4.tar.gz
Apply the new \mailheader macro where appropriate, and fix a few small
markup inconsistencies.
Diffstat (limited to 'Doc/lib/libmimetools.tex')
-rw-r--r--Doc/lib/libmimetools.tex29
1 files changed, 15 insertions, 14 deletions
diff --git a/Doc/lib/libmimetools.tex b/Doc/lib/libmimetools.tex
index f0e8e4ad19..ba12d53dce 100644
--- a/Doc/lib/libmimetools.tex
+++ b/Doc/lib/libmimetools.tex
@@ -68,8 +68,8 @@ The \class{Message} class defines the following methods in
addition to the \class{rfc822.Message} methods:
\begin{methoddesc}{getplist}{}
-Return the parameter list of the \code{content-type} header. This is
-a list of strings. For parameters of the form
+Return the parameter list of the \mailheader{Content-Type} header.
+This is a list of strings. For parameters of the form
\samp{\var{key}=\var{value}}, \var{key} is converted to lower case but
\var{value} is not. For example, if the message contains the header
\samp{Content-type: text/html; spam=1; Spam=2; Spam} then
@@ -85,26 +85,27 @@ given \var{name}. If \var{value} is surrounded by quotes of the form
\end{methoddesc}
\begin{methoddesc}{getencoding}{}
-Return the encoding specified in the \code{content-transfer-encoding}
-message header. If no such header exists, return \code{'7bit'}. The
-encoding is converted to lower case.
+Return the encoding specified in the
+\mailheader{Content-Transfer-Encoding} message header. If no such
+header exists, return \code{'7bit'}. The encoding is converted to
+lower case.
\end{methoddesc}
\begin{methoddesc}{gettype}{}
Return the message type (of the form \samp{\var{type}/\var{subtype}})
-as specified in the \code{content-type} header. If no such header
-exists, return \code{'text/plain'}. The type is converted to lower
-case.
+as specified in the \mailheader{Content-Type} header. If no such
+header exists, return \code{'text/plain'}. The type is converted to
+lower case.
\end{methoddesc}
\begin{methoddesc}{getmaintype}{}
-Return the main type as specified in the \code{content-type} header.
-If no such header exists, return \code{'text'}. The main type is
-converted to lower case.
+Return the main type as specified in the \mailheader{Content-Type}
+header. If no such header exists, return \code{'text'}. The main
+type is converted to lower case.
\end{methoddesc}
\begin{methoddesc}{getsubtype}{}
-Return the subtype as specified in the \code{content-type} header. If
-no such header exists, return \code{'plain'}. The subtype is
-converted to lower case.
+Return the subtype as specified in the \mailheader{Content-Type}
+header. If no such header exists, return \code{'plain'}. The subtype
+is converted to lower case.
\end{methoddesc}