__delitem__(key) discard(key) These methods immediately delete the message. The MH convention of marking a message
mailcap.getcaps() Returns a dictionary mapping MIME types to a list of mailcap file entries. This dictionary must be passed
set_unixfrom(unixfrom) Set the message’s envelope header to unixfrom, which should be a string.
class json.JSONDecoder(object_hook=None, parse_float=None, parse_int=None, parse_constant=None, strict=True, object_pairs_hook=None) Simple
lock() unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf()
close() MH instances do not keep any open files, so this method is equivalent to unlock().
unlock() Maildir mailboxes do not support (or require) locking, so these methods do nothing.
uu.encode(in_file, out_file, name=None, mode=None) Uuencode file in_file into file out_file. The uuencoded
flatten(msg, unixfrom=False, linesep=None) Print the textual representation of the message object structure rooted at msg
content_manager An object with at least two methods: get_content and set_content. When the get_content() or
Page 3 of 44