An Rmail-style Babyl mailbox.
|
|
__init__(self,
path,
factory=None,
create=True)
Initialize a Babyl mailbox. |
|
|
|
|
add(self,
message)
Add message and return assigned key. |
|
|
|
|
remove(self,
key)
Remove the keyed message; raise KeyError if it doesn't exist. |
|
|
|
|
__setitem__(self,
key,
message)
Replace the keyed message; raise KeyError if it doesn't exist. |
|
|
|
|
get_message(self,
key)
Return a Message representation or raise a KeyError. |
|
|
|
|
get_string(self,
key)
Return a string representation or raise a KeyError. |
|
|
|
|
get_file(self,
key)
Return a file-like representation or raise a KeyError. |
|
|
|
|
get_labels(self)
Return a list of user-defined labels in the mailbox. |
|
|
|
|
_generate_toc(self)
Generate key-to-(start, stop) table of contents. |
|
|
|
|
|
|
|
|
|
|
|
|
|
_install_message(self,
message)
Write message contents and return (start, stop). |
|
|
|
Inherited from _singlefileMailbox:
__len__,
close,
flush,
has_key,
iterkeys,
lock,
unlock
Inherited from Mailbox:
__contains__,
__delitem__,
__getitem__,
__iter__,
clear,
discard,
get,
items,
iteritems,
itervalues,
keys,
pop,
popitem,
update,
values
|