3 \W@sHdddgZddlZddlmZddZd ddZdd dZdd d ZdS)body_line_iteratortyped_subpart_iteratorwalkN)StringIOccs2|V|jr.x|jD]}|jEdHqWdS)N) is_multipart get_payloadr)selfsubpartr '/usr/lib64/python3.6/email/iterators.pyrsFccs:x4|jD](}|j|d}t|tr t|EdHq WdS)N)decode)rr isinstancestrr)msgr r Zpayloadr r r r"s  textccs<x6|jD]*}|j|kr |dks.|j|kr |Vq WdS)N)rZget_content_maintypeZget_content_subtype)rZmaintypesubtyper r r r r-s cCs|dkrtj}d|d}t||jd|d|rJtd|j|dn t|d|jrx"|jD]}t|||d|qfWdS)N )endfilez [%s])r)sysstdoutprintZget_content_typeZget_default_typerr _structure)rfplevelZinclude_defaultZtabr r r r r;s  r)F)rN)NrF)__all__riorrrrrr r r r s