typed_subpart_iterator(msg, maintype='text', subtype=None)
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.