Known subclasses: twisted.mail.interfaces.IMessageIMAP

No interface docstring
Method getHeaders Retrieve a group of message headers.
Method getBodyFile Retrieve a file object containing only the body of this message.
Method getSize Retrieve the total size, in octets, of this message.
Method isMultipart Indicate whether this message has subparts.
Method getSubPart Retrieve a MIME sub-message
def getHeaders(negate, *names):

Retrieve a group of message headers.

ParametersnamesThe names of the headers to retrieve or omit. (type: tuple of str)
negateIf True, indicates that the headers listed in names should be omitted from the return value, rather than included. (type: bool)
ReturnsA mapping of header field names to header field values (type: dict)
def getBodyFile():

Retrieve a file object containing only the body of this message.

def getSize():

Retrieve the total size, in octets, of this message.

Returns (type: int)
def isMultipart():

Indicate whether this message has subparts.

Returns (type: bool)
def getSubPart(part):

Retrieve a MIME sub-message

ParameterspartThe number of the part to retrieve, indexed from 0. (type: int)
ReturnsThe specified sub-part. (type: Any object implementing IMessageIMAPPart.)
RaisesIndexErrorRaised if the specified part does not exist.
TypeErrorRaised if this message is not multipart.
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.