Standard Module mimetools

mimetools This module defines a subclass of the class rfc822.Message and a number of utility functions that are useful for the manipulation for MIME style multipart or encoded message. It defines the following items:
\begin{funcdesc}{Message}{fp}
Return a new instance of the \code{mimetools.Messa...
...{rfc822.Message} class, with some additional
methods (see below).
\end{funcdesc}

\begin{funcdesc}{choose_boundary}{}
Return a unique string that has a high likel...
...{hostipaddr}.\var{uid}.\var{pid}.\var{timestamp}.\var{random}''}.
\end{funcdesc}

\begin{funcdesc}{decode}{input\, output\, encoding}
Read data encoded using the ...
...''base64''}, \code{''quoted-printable''} and \code{''uuencode''}.
\end{funcdesc}

\begin{funcdesc}{encode}{input\, output\, encoding}
Read data from open file obj...
...id values for \var{encoding} are the same as for \code{decode()}.
\end{funcdesc}

\begin{funcdesc}{copyliteral}{input\, output}
Read lines until EOF from open file \var{input} and write them to open
file \var{output}.
\end{funcdesc}

\begin{funcdesc}{copybinary}{input\, output}
Read blocks until EOF from open fil...
...pen
file \var{output}. The block size is currently fixed at 8192.
\end{funcdesc}


Subsections