Function
email.Iterators.typed_subpart_iterator

Signature

typed_subpart_iterator(msg, maintype='text', subtype=None)

Documentation String

Iterate over the subparts with a given MIME type.

Use `maintype' as the main MIME type to match against; this defaults to "text". Optional `subtype' is the MIME subtype to match against; if omitted, only the main type is matched.