interface documentation

class IMessageIMAPPart(Interface): (source)

Known subclasses: twisted.mail.interfaces.IMessageIMAP

View In Hierarchy

Undocumented

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

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

def getHeaders(negate, *names): (source)

Retrieve a group of message headers.

Parameters
negate:boolIf True, indicates that the headers listed in names should be omitted from the return value, rather than included.
*names:tuple of strThe names of the headers to retrieve or omit.
Returns
dictA mapping of header field names to header field values
def getSize(): (source)

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

Returns
intUndocumented
def getSubPart(part): (source)

Retrieve a MIME sub-message

Parameters
part:intThe number of the part to retrieve, indexed from 0.
Returns
Any object implementing IMessageIMAPPart.The specified sub-part.
Raises
IndexErrorRaised if the specified part does not exist.
TypeErrorRaised if this message is not multipart.
def isMultipart(): (source)

Indicate whether this message has subparts.

Returns
boolUndocumented