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 attrs Undocumented
Instance Variable message 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)
Parameters
messageAn 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.
Returns
None if there is no disposition header value, a list with two elements otherwise.
def _unquotedAttrs(self): (source)
Returns
The 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.