Known subclasses: twisted.mail.imap4._MultipartMessageStructure, twisted.mail.imap4._SinglepartMessageStructure

_MessageStructure is a helper base class for message structure classes representing the structure of particular kinds of messages, as defined by their MIME type.

Method __init__
Method _disposition Parse a Content-Disposition header into a two-sequence of the disposition and a flattened list of its parameters.
Method _unquotedAttrs
def __init__(self, message, attrs): (source)
ParametersmessageAn IMessagePart provider which this structure object reports on.
attrsA dict giving the parameters of the Content-Type header of the message.
def _disposition(self, disp): (source)

Parse a Content-Disposition header into a two-sequence of the disposition and a flattened list of its parameters.

ReturnsNone if there is no disposition header value, a list with two elements otherwise.
def _unquotedAttrs(self): (source)
ReturnsThe Content-Type parameters, unquoted, as a flat list with each Nth element giving a parameter name and N+1th element giving the corresponding parameter value.
API Documentation for Twisted, generated by pydoctor at 2018-07-14 04:53:34.