t.m.i._MessageStructure(object) : class documentation

Part of twisted.mail.imap4 View Source View In Hierarchy

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 2014-05-12 18:27:00.