mailbox.ExternalClashError

exception mailbox.ExternalClashError Raised when some mailbox-related condition beyond the control of the program causes it to be unable to proceed, such as when failing to acquire a lock that another program already holds a lock, or when a uniquely-generated file name already exists.

mailbox.Error

exception mailbox.Error The based class for all other module-specific exceptions.

mailbox.BabylMessage.update_visible()

update_visible() When a BabylMessage instance’s original headers are modified, the visible headers are not automatically modified to correspond. This method updates the visible headers as follows: each visible header with a corresponding original header is set to the value of the original header, each visible header without a corresponding original header is removed, and any of Date, From, Reply-To, To, CC, and Subject that are present in the original headers but not the visible headers are

mailbox.BabylMessage.set_visible()

set_visible(visible) Set the message’s visible headers to be the same as the headers in message. Parameter visible should be a Message instance, an email.message.Message instance, a string, or a file-like object (which should be open in text mode).

mailbox.BabylMessage.set_labels()

set_labels(labels) Set the list of labels on the message to labels.

mailbox.BabylMessage.remove_label()

remove_label(label) Remove label from the list of labels on the message.

mailbox.BabylMessage.get_visible()

get_visible() Return an Message instance whose headers are the message’s visible headers and whose body is empty.

mailbox.BabylMessage.get_labels()

get_labels() Return a list of labels on the message.

mailbox.BabylMessage.add_label()

add_label(label) Add label to the list of labels on the message.

mailbox.BabylMessage

class mailbox.BabylMessage(message=None) A message with Babyl-specific behaviors. Parameter message has the same meaning as with the Message constructor. Certain message labels, called attributes, are defined by convention to have special meanings. The attributes are as follows: Label Explanation unseen Not read, but previously detected by MUA deleted Marked for subsequent deletion filed Copied to another file or mailbox answered Replied to forwarded Forwarded edited Modified by the user res