Package lamson :: Module encoding :: Class MailBase
[hide private]
[frames] | no frames]

Class MailBase

source code


MailBase is used as the basis of lamson.mail and contains the basics of encoding an email. You actually can do all your email processing with this class, but it's more raw.

Instance Methods [hide private]
 
__init__(self, items=())
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getitem__(self, key) source code
 
__len__(self) source code
 
__iter__(self) source code
 
__contains__(self, key) source code
 
__setitem__(self, key, value) source code
 
__delitem__(self, key) source code
 
__nonzero__(self) source code
 
keys(self)
Returns the sorted keys.
source code
 
attach_file(self, filename, data, ctype, disposition)
A file attachment is a raw attachment with a disposition that indicates the file name.
source code
 
attach_text(self, data, ctype)
This attaches a simpler text encoded part, which doesn't have a filename.
source code
 
walk(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, items=())
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__getitem__(self, key)
(Indexing operator)

source code 

__len__(self)
(Length operator)

source code 

__iter__(self)

source code 

__contains__(self, key)
(In operator)

source code 

__setitem__(self, key, value)
(Index assignment operator)

source code 

__delitem__(self, key)
(Index deletion operator)

source code 

__nonzero__(self)
(Boolean test operator)

source code 

keys(self)

source code 

Returns the sorted keys.

attach_file(self, filename, data, ctype, disposition)

source code 

A file attachment is a raw attachment with a disposition that indicates the file name.

attach_text(self, data, ctype)

source code 

This attaches a simpler text encoded part, which doesn't have a filename.

walk(self)

source code