python (3.11.7)

(root)/
lib/
python3.11/
email/
__pycache__/
generator.cpython-311.opt-2.pyc

eNR	gdZddlZddlZddlZddlZddlmZddlmZm	Z	ddl
mZdZdZ
ejdZejd	ejZGd
dZGdd
eZdZGddeZeeejdz
ZdezZejZdS))	GeneratorDecodedGeneratorBytesGeneratorN)deepcopy)StringIOBytesIO)_has_surrogates_
z
\r\n|\r|\nz^From ceZdZ	ddddZdZddZdZdZd	Zd
Z	dZ
dZd
ZdZ
e
ZdZdZdZdZeddZedZdS)rNpolicycZ	||dn|j}||_||_||_||_dS)NT)mangle_from__fp
_mangle_from_maxheaderlenr)selfoutfprrrs     C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/email/generator.py__init__zGenerator.__init__#sA	.#)>44v7JL)(c:|j|dSN)rwriterss  rrzGenerator.writeCsqrFc	|j|jn|j}|||}|j||j}|j|_||j|_d|_||j|_|j}|j}	||_||_|r[|	}|s(dtjtj
z}|||jz|
|||_||_dS#||_||_wxYw)N)linesepmax_line_lengthzFrom nobody )rclonerr_NL_encode_encoded_NL_EMPTY_encoded_EMPTYget_unixfromtimectimer_write)rmsgunixfromrrold_gen_policyold_msg_policyufroms        rflattenzGenerator.flattenGsJ	( ${2\\'\22F(\\$2C\DDF><<11"ll4;77
	( DKCJ
-((**E*TZ	-D-DDE

548+,,,KK(DK'CJJJ)DK'CJ''''s
1BEEcJ	|||jd|jSNr
)	__class__rr)rfps  rr#zGenerator.clonexs0?~~b"0"%)[22	2rctSr)rrs r_new_bufferzGenerator._new_bufferszzrc|Srrs  rr%zGenerator._encodesrc|sdSt|}|ddD]1}||||j2|dr||ddSdS)N)NLCREsplitrr$)rlineslines   r_write_lineszGenerator._write_liness	FE""#2#J	!	!DJJtJJtx    9	"JJuRy!!!!!	"	"rcd|j}	d|_|x|_}||||_|j}|`n#||_|j}|`wxYw|rht	|}|d|d|d<n|d|d|d|dt|dd}|||n|||j	|
dS)Ncontent-transfer-encodingrContent-Transfer-Encodingcontent-type_write_headers)r
_munge_cter9	_dispatchrgetreplace_headergetattrrHrgetvalue)rr-oldfpsfp	munge_ctemeths      rr,zGenerator._writesD	 "DO!--///DHsNN3DHIDHI	=3--Cww233;3<Q</00""#>	!MMM~y|<<<s,d33<$$$$DJJJs||~~&&&&&s7AA#c^|}|}t||fdd}t|d|zd}|3|dd}t|d|zd}||j}||dS)N-r
_handle_)get_content_maintypeget_content_subtype
UNDERSCOREjoinreplacerM
_writeBody)rr-mainsubspecificrRgenerics       rrJzGenerator._dispatchs
''))%%''??D#;//77SAAtZ(2D99<ll3,,G4g!5t<<D|S					rc|D]3\}}||j||4||jdSr)	raw_itemsrrfoldr$rr-hvs    rrHzGenerator._write_headerss^MMOO	/	/DAqJJt{''1--....

48rc|}|dSt|tstdt	|zt|jrh|d}|Qt|}|d=|	|||}|d|df|_
|jrt
d|}||dS)Nzstring payload expected: %scharsetrDrF>From )get_payload
isinstancestr	TypeErrortyper	_payload	get_paramrset_payloadrIrfcrer]rB)rr-payloadrgs    r_handle_textzGenerator._handle_texts//##?F'3''	K9DMMIJJJ3<((
	8mmI..G"smm34111//++#&'B#C#&~#6#8	2hhx11G'"""""rcBg}|}|g}nDt|tr||dSt|ts|g}|D]o}|}||}||d|j|	|
p|}|sD|j
|}||}|||j^|jr!t$d|j}	n|j}	||	||j|d|z|jz|r-|j|d|D]D}
||jdz|z|jz|j|
E||jdz|zdz|jz|jF|jr!t$d|j}n|j}||dSdS)NFr.rrhz--r)rirjrkrlistr9r#r2r$appendrNget_boundaryr&rY_make_boundaryset_boundarypreamblerrqr]rBrpopepilogue)rr-msgtextssubpartspartrgboundaryalltextr{	body_partr}s            r_handle_multipartzGenerator._handle_multiparts??$$HH
#
&
&	"JJx   FHd++	" zH	*	*D  ""A

1

A
IIdUDHI===OOAJJLL))))##%%	'&++H55G**733HX&&&<#!
(88Hcl;;<h'''JJtx   

4(?TX-...	,HNN8<<??+++"	&	&IJJtx$1DH<===HNN9%%%%

48d?X-4tx?@@@<#!
(88Hcl;;<h'''''$#rc|j}|d|_	||||_dS#||_wxYw)Nrr )rr#r)rr-ps   r_handle_multipart_signedz"Generator._handle_multipart_signed;sS
Kggag00	""3'''DKKK!DKOOOOsA	Ac@g}|D]}|}||}||d|j|}||j}|rG|d|jkr6|	|j
|dd|	||j|j
|dS)NFrur=)
rir9r#r2r$rNr?r&r(rwrYrr)rr-blocksrrrtextr@s        r_handle_message_delivery_statusz)Generator._handle_message_delivery_statusFsOO%%
	$
	$D  ""A

1

A
IIdUDHI===::<<DJJt/00E
$rd&999

d.33E#2#J??@@@@

d####	
t',,V4455555rcx|}||}|j}t|trE||dd|j|}n|	|}|j
|dS)NrFru)r9r#rnrjrvr2rir$rNr%rr)rr-rrrrs     r_handle_messagezGenerator._handle_message[sJJqMM,gt$$	,
IIcooa((5$(IKKKjjllGGll7++GwrcFtjtj}dt|zzdz}||S|}d}	|dt
j|zdztj}|	|sn|dzt|z}|dz
}i|S)	Nz===============z==rTz^--z(--)?$.rG)random	randrangesysmaxsize_fmt_compile_rereescape	MULTILINEsearchrk)clsrtokenrbcountercres       rryzGenerator._make_boundaryts --.5<O	//%")A,,"6"A2<PPC::d##
3W-AqLG	rc,tj||Sr)rcompilerrflagss   rrzGenerator._compile_resz!U###r)NN)FNr)__name__
__module____qualname__rrr2r#r9r%rBr,rJrHrsr[rrrrclassmethodryrr;rrrrsW@/(/(/(/(b222(	"	"	" %'%'%'N(###,J8(8(8(t			666*   2["$$[$$$rrcReZdZ	dZdZdZdZfdZeZe	dZ
xZS)rcb|j|dddS)Nasciisurrogateescape)rrencoders  rrzBytesGenerator.writes+qxx):;;<<<<<rctSr)rr8s rr9zBytesGenerator._new_buffersyyrc,|dSNr)rrs  rr%zBytesGenerator._encodesxx   rc|D]8\}}|j|j||9||jdSr)rarrrfold_binaryr$rcs    rrHzBytesGenerator._write_headerssbMMOO	:	:DAqHNN4;221a889999

48rcB|jdSt|jrX|jjdksH|jr%t
d|j|_||jdStt|
|dS)N7bitrh)rnr	rcte_typerrqr]rBsuperrrs)rr-r5s  rrszBytesGenerator._handle_texts<F3<((	91Ev1M1M!
@#xx#,??cl+++++.&&33C88888rcRtj|d|Sr)rrrrs   rrzBytesGenerator._compile_res z!((7++U333r)rrrrr9r%rHrsr[rr
__classcell__)r5s@rrrs
===!!!
9
9
9
9
9J44[44444rrzD[Non-text (%(type)s) part of message omitted, filename %(filename)s]c$eZdZ	ddddZdZdS)rNr
ct	t||||||t|_dS||_dSr4)rr_FMTr)rrrrfmtrs      rrzDecodedGenerator.__init__sL	*	4l"(		*	*	*;DIIIDIIIrc
|D]}|}|dkr&t|d|B|dkrIt|j||||d|dd|d	d
dz|dS)NrF)decode)file	multipartz
[no filename]zContent-Descriptionz[no description]rEz
[no encoding])rmmaintypesubtypefilenamedescriptionencoding)	walkrVprintrirget_content_typerWget_filenamerK)rr-rrs    rrJzDecodedGenerator._dispatchsHHJJ	"	"D0022H6!!d&&e&444@@@@@[((di#'#8#8#:#:#'#<#<#>#>#'#;#;#=#=#'#4#4_#E#E#'88,A,>$@$@#'88,G,;$=$=	#	#	!	"	"	"	"	"	"	"r)NNN)rrrrrJr;rrrrsI
<"""""rrrGz%%0%dd)__all__rrr*rcopyriorremail.utilsr	rXNLrr>rrqrrrrlenreprr_widthrryr;rr<module>rsn
A
=
=
=				







        ''''''

	
=!!rz)R\**o$o$o$o$o$o$o$o$d/4/4/4/4/4Y/4/4/4dN6"6"6"6"6"y6"6"6"t

TT#+a-
 
 	!	!&)r