\doxysection{mime.\+Mime\+Message Class Reference}
\label{classmime_1_1MimeMessage}\index{mime.MimeMessage@{mime.MimeMessage}}


Enhance email.\+message.\+Message.  


Inheritance diagram for mime.\+Mime\+Message\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classmime_1_1MimeMessage}
\end{center}
\end{figure}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\label{classmime_1_1MimeMessage_afc16847d04e09ff7c54ea7b236b33616} 
{\bfseries \+\_\+\+\_\+init\+\_\+\+\_\+} (self, fp=None, seekable=1)
\item 
\label{classmime_1_1MimeMessage_acd6268e73df764ed9709c515b136b523} 
{\bfseries get\+\_\+param} (self, param, failobj=None, header=\textquotesingle{}content-\/type\textquotesingle{}, \textbf{ unquote}=True)
\item 
\label{classmime_1_1MimeMessage_a195799306d556085e2e431b15e27296e} 
{\bfseries getparams} (self)
\item 
\label{classmime_1_1MimeMessage_a5407e8ef76734e8dc55c80c3b3a5ca43} 
{\bfseries getname} (self)
\item 
\textbf{ getnames} (self, scan\+\_\+zip=False)
\item 
\label{classmime_1_1MimeMessage_a96bc7780aca7811c82065148687c611d} 
{\bfseries ismodified} (self)
\item 
\label{classmime_1_1MimeMessage_abf126dacbfe7d01b7e467bdc1267cac0} 
{\bfseries dump} (self, file, unixfrom=False)
\item 
\label{classmime_1_1MimeMessage_af0ff484f88be14c56a0807094ff8c6be} 
{\bfseries as\+\_\+bytes} (self, unixfrom=False)
\item 
\label{classmime_1_1MimeMessage_a2dcb19105cbfda62d9e4d3caee607da2} 
{\bfseries getencoding} (self)
\item 
\label{classmime_1_1MimeMessage_a7f552f65a40428f41c0b5b54d7dfe880} 
{\bfseries decode} (self, filt)
\item 
\label{classmime_1_1MimeMessage_ac3e6b8bc4dda5adcebee0f90ed48f6f4} 
{\bfseries get\+\_\+payload\+\_\+decoded} (self)
\item 
\label{classmime_1_1MimeMessage_a8f7f29622d287e2880a7f34f2a7055cf} 
{\bfseries \+\_\+\+\_\+setitem\+\_\+\+\_\+} (self, name, value)
\item 
\label{classmime_1_1MimeMessage_ad1f3bf89bd0b867c4eea9811af47cef2} 
{\bfseries \+\_\+\+\_\+delitem\+\_\+\+\_\+} (self, name)
\item 
\label{classmime_1_1MimeMessage_a23dc8d06034e4a680ac66a9f0502cfae} 
{\bfseries get\+\_\+payload} (self, i=None, decode=False)
\item 
\label{classmime_1_1MimeMessage_a02927b8f2aff5054dcf9190d157438b1} 
{\bfseries set\+\_\+payload} (self, val, charset=None)
\item 
\label{classmime_1_1MimeMessage_ad6fecbce0ecaba98a930d62e86a01907} 
{\bfseries get\+\_\+submsg} (self)
\end{DoxyCompactItemize}
\doxysubsubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\label{classmime_1_1MimeMessage_a8f7ec2c0661542d15380b9cfdfd9edd8} 
{\bfseries submsg} = None
\item 
\label{classmime_1_1MimeMessage_a2e9f5ef582307eaa615582a3c5295d12} 
bool {\bfseries modified} = False
\end{DoxyCompactItemize}
\doxysubsubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
self.\+headerchange(self, name, str(value)) \textbf{ headerchange}
\begin{DoxyCompactList}\small\item\em Provide a headerchange event for integration with \doxyref{Milter}{p.}{namespaceMilter}. \end{DoxyCompactList}\item 
\label{classmime_1_1MimeMessage_af1060e554daea7464bc907a08320c0b5} 
{\bfseries getfilename} = Message.\+get\+\_\+filename
\item 
\label{classmime_1_1MimeMessage_a56e982956c6d5a8804a647fb31128eb0} 
{\bfseries ismultipart} = Message.\+is\+\_\+multipart
\item 
\label{classmime_1_1MimeMessage_af2472581de24d74bd637e6633ce9a841} 
{\bfseries getheaders} = Message.\+get\+\_\+all
\item 
\label{classmime_1_1MimeMessage_af8f9b1316232c24eee9baf7b5a116d9d} 
{\bfseries gettype} = Message.\+get\+\_\+content\+\_\+type
\item 
\label{classmime_1_1MimeMessage_a444945a98c4cb723b9a6b55729cf2142} 
{\bfseries getparam} = Message.\+get\+\_\+param
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Enhance email.\+message.\+Message. 

Tracks modifications to headers of body or any part independently.

\begin{DoxyVerb}Version of email.Message.Message compatible with old mime module
\end{DoxyVerb}
 

\label{doc-func-members}
\doxysubsection{Member Function Documentation}
\index{mime.MimeMessage@{mime.MimeMessage}!getnames@{getnames}}
\index{getnames@{getnames}!mime.MimeMessage@{mime.MimeMessage}}
\doxysubsubsection{getnames()}
{\footnotesize\ttfamily \label{classmime_1_1MimeMessage_a496875610cfc05e9b09dfbe2ad2cbca9} 
mime.\+Mime\+Message.\+getnames (\begin{DoxyParamCaption}\item[{}]{self}{, }\item[{}]{scan\+\_\+zip}{ = {\ttfamily False}}\end{DoxyParamCaption})}

\begin{DoxyVerb}Return a list of (attr,name) pairs of attributes that IE might
   interpret as a name - and hence decide to execute this message.\end{DoxyVerb}
 

References dump(), Milter.\+config.\+Milter\+Config\+Parser.\+get(), get\+\_\+payload(), getencoding(), \textbf{ headerchange}, modified, set\+\_\+payload(), submsg, and \textbf{ mime.\+zipnames()}.



\label{doc-variable-members}
\doxysubsection{Member Data Documentation}
\index{mime.MimeMessage@{mime.MimeMessage}!headerchange@{headerchange}}
\index{headerchange@{headerchange}!mime.MimeMessage@{mime.MimeMessage}}
\doxysubsubsection{headerchange}
{\footnotesize\ttfamily \label{classmime_1_1MimeMessage_a66dd1053dcd0f0bb4b1a1b02cc1c93ab} 
self.\+headerchange(self,name,str(value)) mime.\+Mime\+Message.\+headerchange\hspace{0.3cm}{\ttfamily [static]}}



Provide a headerchange event for integration with \doxyref{Milter}{p.}{namespaceMilter}. 

The headerchange attribute can be assigned a function to be called when changing headers. The signature is\+: \doxyref{headerchange(msg,name,value)}{p.}{classmime_1_1MimeMessage_a66dd1053dcd0f0bb4b1a1b02cc1c93ab} -\/$>$ None 

Referenced by \textbf{ getnames()}.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
mime.\+py\end{DoxyCompactItemize}
