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.
email.iterators/typed_subpart_iterator
typed_subpart_iterator