class documentation

class _MessageStructure: (source)

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

View In Hierarchy

_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__
Instance Variable message Undocumented
Instance Variable attrs Undocumented
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.
message = (source)

Undocumented

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 21.2.0 at 2021-02-28 21:00:42.