class documentation
class _MultipartMessageStructure(_MessageStructure): (source)
Constructor: _MultipartMessageStructure(message, subtype, attrs)
_MultipartMessageStructure
represents the message structure of a multipart/* message.
Method | __init__ |
No summary |
Method | encode |
Encode each sub-message and added the additional multipart fields. |
Instance Variable | subtype |
Undocumented |
Method | _extended |
The extension data of a multipart body part are in the following order: |
Method | _get |
Return an iterator over all of the sub-messages of this message. |
Inherited from _MessageStructure
:
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 | _unquoted |
No summary |
Parameters | |
message | An IMessagePart provider which this structure object reports on. |
subtype | A str giving the MIME subtype of the message (for example, "plain"). |
attrs | A dict giving the parameters of the Content-Type header of the message. |
The extension data of a multipart body part are in the following order:
- body parameter parenthesized list A parenthesized list of attribute/value pairs [e.g., ("foo" "bar" "baz" "rag") where "bar" is the value of "foo", and "rag" is the value of "baz"] as defined in [MIME-IMB].
- body disposition A parenthesized list, consisting of a disposition type string, followed by a parenthesized list of disposition attribute/value pairs as defined in [DISPOSITION].
- body language A string or parenthesized list giving the body language value as defined in [LANGUAGE-TAGS].
- body location A string list giving the body content URI as defined in [LOCATION].