Ë
c‡½jQ ã óB — d Z g d¢ZddlZddlmZ d„ Zd d„Zd
d„Zdd„Zy)z1Various types of useful iterators and generators.)Úbody_line_iteratorÚtyped_subpart_iteratorÚwalké N)ÚStringIOc # ó” K — | –— | j « r.| j « D ] }|j « E d{ –—† Œ yy7 Œw)z‰Walk over the message tree, yielding each subpart.
The walk is performed in depth-first order. This method is a
generator.
N)Úis_multipartÚget_payloadr )ÚselfÚsubparts ú(/usr/lib64/python3.12/email/iterators.pyr r sC è ø€ ð ‚JØ×ÑÔØ×'Ñ'Ö)ˆGØ—|‘|“~×%Ñ%ñ *ð à%ús ‚;A½A¾ Ac # ó¦ K — | j « D ]8 }|j |¬« }t |t « sŒ&t |« E d{ –—† Œ: y7 Œw)zŽIterate over the parts, returning string payloads line-by-line.
Optional decode (default False) is passed through to .get_payload().
)ÚdecodeN)r r Ú
isinstanceÚstrr )Úmsgr r Úpayloads r r r sH è ø€ ð
—8‘8–:ˆØ×%Ñ%¨VÐ%Ó4ˆÜ�gœsÕ#Ü Ó(×(Ñ(ñ ð
)ús ‚6A¹AÁAÁAc # ó’ K — | j « D ]0 }|j « |k( sŒ|�|j « |k( sŒ-|–— Œ2 yw)zø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.
N)r Úget_content_maintypeÚget_content_subtype)r ÚmaintypeÚsubtyper s r r r + sC è ø€ ð —8‘8–:ˆØ×'Ñ'Ó)¨XÓ5؈ '×"=Ñ"=Ó"?À7Ó"JØ“
ñ ùs ‚'AªAÁ Ac ó> — |€t j }d|dz z }t || j « z d|¬« |rt d| j « z |¬« nt |¬« | j « r'| j
« D ] }t |||dz |« Œ yy) zA handy debugging aidNÚ é Ú )ÚendÚfilez [%s])r é )ÚsysÚstdoutÚprintÚget_content_typeÚget_default_typer r Ú
_structure)r ÚfpÚlevelÚinclude_defaultÚtabr s r r$ r$ 8 sŽ € à €zÜ
�Z‰ZˆØ
�˜‘Ñ
€CÜ ˆ#�×$Ñ$Ó&Ñ
&¨B°RÕ8ÙÜ
ˆg˜×,Ñ,Ó.Ñ.°RÖ8ä
�2�Ø
×ÑÔØ—‘Ö(ˆGÜ�w E¨!¡G¨_Õ=ñ )ð ó )F)ÚtextN)Nr F) Ú__doc__Ú__all__r Úior r r r r$ © r) r Ú