Package svnmailer :: Package notifier :: Module _multimail :: Class _SinglePart
[hide private]

Class _SinglePart

source code

           email.message.Message --+        
                                   |        
            email.mime.base.MIMEBase --+    
                                       |    
email.mime.nonmultipart.MIMENonMultipart --+
                                           |
                                          _SinglePart

A single part of a multipart mail

Instance Methods [hide private]
 
__init__(self, body, name=None, encoding=None, binary=False, ctype='text/plain', dispo='inline')
Initialization
source code
list
_encodeRfc2184(self, value, dosplit=False)
Encode a string (parameter value) according to RFC 2184
source code
int
getSize(self)
Serializes the mail into a descriptor
source code

Inherited from email.mime.nonmultipart.MIMENonMultipart: attach

Inherited from email.message.Message: __contains__, __delitem__, __getitem__, __len__, __setitem__, __str__, add_header, as_string, del_param, get, get_all, get_boundary, get_charset, get_charsets, get_content_charset, get_content_maintype, get_content_subtype, get_content_type, get_default_type, get_filename, get_param, get_params, get_payload, get_unixfrom, has_key, is_multipart, items, keys, replace_header, set_boundary, set_charset, set_default_type, set_param, set_payload, set_type, set_unixfrom, values, walk

Inherited from email.message.Message (private): _get_params_preserve

Method Details [hide private]

__init__(self, body, name=None, encoding=None, binary=False, ctype='text/plain', dispo='inline')
(Constructor)

source code 

Initialization

Parameters:
  • body (str) - The body
Overrides: email.message.Message.__init__

_encodeRfc2184(self, value, dosplit=False)

source code 

Encode a string (parameter value) according to RFC 2184

Parameters:
  • value (unicode) - The value to encode
  • dosplit (bool) - Allow long parameter splitting? (Note that is not widely supported...)
Returns: list
The list of encoded values

getSize(self)

source code 

Serializes the mail into a descriptor

Returns: int
The size of the serialized object