config root man

Current Path : /usr/local/lib/python2.5/email/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/email/test/test_email.pyo

hRc@sddkZddkZddkZddkZddkZddkZddkZddklZddk	Z	ddk
lZddkl
Z
lZlZddklZlZddklZlZddklZddklZdd	klZdd
klZddklZddk l!Z!dd
k"l#Z#ddk	l$Z$ddk	l%Z%ddk	l&Z&ddk	l'Z'ddk	l(Z(ddk	l)Z)ddk*l+Z+l,Z,ddk-l.Z/dZ0dZ1dZ2ddZ3dei4fdYZ5de5fdYZ6dei4fd YZ7d!e5fd"YZ8d#ei4fd$YZ9d%ei4fd&YZ:d'ei4fd(YZ;d)ei4fd*YZ<d+e5fd,YZ=d-e5fd.YZ>d/ei4fd0YZ?d1e5fd2YZ@d3e5fd4YZAd5e5fd6YZBd7e5fd8YZCd9e5fd:YZDd;ei4fd<YZEd=ei4fd>YZFd?ei4fd@YZGdAe5fdBYZHdCe5fdDYZIdEZJdFZKdGZLeMdHjoeiNdIdJndS(KiN(tStringIO(tCharset(tHeadert
decode_headertmake_header(tParsertHeaderParser(t	GeneratortDecodedGenerator(tMessage(t	MIMEAudio(tMIMEText(t	MIMEImage(tMIMEBase(tMIMEMessage(t
MIMEMultipart(tUtils(tErrors(tEncoders(t	Iterators(t
base64MIME(t
quopriMIME(tfindfiletrun_unittest(t__file__s
tt trcCs1tiitiitd|}t||S(Ntdata(tostpathtjointdirnametlandmarktopen(tfilenametmodeR((s1/usr/local/lib/python2.5/email/test/test_email.pytopenfile,s$t
TestEmailBasecBseZdZdZRS(cCs||jont|}t|}ti|i|i}t}|tIti|IJ|i|indS(s:Like failUnlessEqual except use ndiff for readable output.N(	tstrtdifflibtndifft
splitlinesRtNLRtfailureExceptiontgetvalue(tselftfirsttsecondtsfirsttssecondtdifftfp((s1/usr/local/lib/python2.5/email/test/test_email.pytndiffAssertEqual4s
	cCs7tt|}zti|}Wd|iX|S(N(R%Rtemailtmessage_from_filetclose(R.R#R4tmsg((s1/usr/local/lib/python2.5/email/test/test_email.pyt_msgobj>s
(t__name__t
__module__R5R:(((s1/usr/local/lib/python2.5/email/test/test_email.pyR&3s	
tTestMessageAPIcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3d2Z4d3Z5d4Z6RS(5cCsT|i}|id}||iddddg||iddddS(Ns
msg_20.txttccsccc@zzz.orgsddd@zzz.orgseee@zzz.orgtxxsn/a(tassertEqualR:tget_all(R.teqR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_allJs	cCsL|i}t}||idtd}|i|||dd||id||dd||idd||dd	||iid|id||id||ddt}d
|d<d|d
<d|d<|i|||dd
||dd||dddS(Ns
iso-8859-1smime-versions1.0s
text/plainscontent-types text/plain; charset="iso-8859-1"tcharsetscontent-transfer-encodingsquoted-printables2.0sMIME-Versionstext/x-weirdsContent-Typesquinted-puntablesContent-Transfer-Encodings"text/x-weird; charset="iso-8859-1"(	R@R	tget_charsettNoneRtset_charsettget_content_typet	get_paramt
input_charset(R.RBR9RD((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_getset_charsetPs,		

	



cCsJ|i}t}|id||iid||dddS(Nsus-asciiscontent-typestext/plain; charset="us-ascii"(R@R	RGRERJ(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_set_charset_from_stringjs
		
cCsBt}td}|id||i|iiddS(Ns
iso-8859-1sThis is a string payload(R	Rtset_payloadR@RERJ(R.R9RD((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_set_payload_with_charsetqs	c
Cs|i}|id}|i}||dddddg|id}|id}||dddddg|id}|i}||dddddd	ddgdS(
Ns
msg_08.txtsus-asciis
iso-8859-1s
iso-8859-2skoi8-rs
msg_09.txttdingbats
msg_12.txts
iso-8859-3(R@R:tget_charsetsRF(R.RBR9tcharsets((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_charsetsws	
cCs|i}|id}g}|iD]}||iq)~}||ddg|id}|id}||iddS(Ns
msg_04.txtsmsg.txts
msg_07.txtisdingusfish.gif(R@R:tget_payloadtget_filename(R.RBR9t_[1]tpt	filenamestsubpart((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_filenames	-cCs\|i}|id}g}|iD]}||iq)~}||ddgdS(Ns
msg_44.txtsmsg.txt(R@R:RSRT(R.RBR9RURVRW((s1/usr/local/lib/python2.5/email/test/test_email.pyt%test_get_filename_with_name_parameters	-cCs/|i}|id}||iddS(Ns
msg_07.txttBOUNDARY(R@R:tget_boundary(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_boundarys	cCs|i}|id}|id|id\}}||id||d|id}|id|id\}}||id||d|id}|iti|iddS(	Ns
msg_01.txtR[iscontent-types3text/plain; charset="us-ascii"; boundary="BOUNDARY"s
msg_04.txts$multipart/mixed; boundary="BOUNDARY"s
msg_03.txt(R@R:tset_boundarytitemstlowertassertRaisesRtHeaderParseError(R.RBR9theadertvalue((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_set_boundarys	



cCs|i}|id}||idtd||ididtd||ididtd||ididtd||id	idtd
dS(Ns
msg_10.txttdecodeis This is a 7bit encoded message.
is-This is a Quoted Printable encoded message!
is!This is a Base64 encoded message.is/This has no Content-Transfer-Encoding: header.
(R@R:RStTrueRF(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_decoded_payloads	cCs}|i}t}|idx1d
D])}||d<||idtdq&W|id	||idtd	dS(Ns$begin 666 -
+:&5L;&\@=V]R;&0 
 
end
s
x-uuencodetuuencodetuuesx-uuescontent-transfer-encodingRfshello worldtfoo(s
x-uuencodeRiRjsx-uue(R@R	RMRSRg(R.RBR9tcte((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_decoded_uu_payloads		


cCstt}|idd|d<ti}z$tt_}|idtWd|t_X|i|iddS(Ns%begin 664 foo.txt
%<W1F=0000H 
 
end
s
x-uuencodesContent-Transfer-EncodingRfR(	R	RMtsyststderrRRSRgR@R-(R.R9t
old_stderrtsfp((s1/usr/local/lib/python2.5/email/test/test_email.pyt$test_decode_bogus_uu_payload_quietlys	

	
cCs{|i}|id}td}z|i}Wd|iXt}t|}|i|||i|dS(Ns
msg_07.txts
msg_17.txt(	R@R:R%treadR8RRtflattenR-(R.RBR9R4ttexttstg((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_decoded_generators		
cCst}d|d<d|d<|id|j|id|j|id|j|id|j|id|j|id|jdS(	NtMetFromtYouttotfromtFROMtTotTO(R	t
failUnless(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest__contains__s	

cCs|i}|id}td}z|i}Wd|iX|||it|}|id}|i|di	d||t
i|ddS(Ns
msg_01.txts
isFrom i(R@R:R%RsR8t	as_stringR'tsplitRt
startswithR+R(R.RBR9R4Rutfullreprtlines((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_as_strings	cCs,tid}|i|idddS(NsContent-Type: blarg; baz; boo
tbazR(R6tmessage_from_stringR@RI(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_bad_paramscCs)tid}|i|iddS(Ns
From: foo
(R6RR@RTRF(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_missing_filenamescCs)tid}|i|iddS(Ns%Content-Disposition: blarg; filename
R(R6RR@RT(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_bogus_filenames	cCs)tid}|i|iddS(Ns
From: foo
(R6RR@R\RF(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_missing_boundaryscCs|i}tid}||iddd
ddgtid
}||idddddg||idtid}||idddddgdS(Ns&X-Header: foo=one; bar=two; baz=three
Rcsx-headerRktonetbarttwoRtthrees X-Header: foo; bar=one; baz=two
Rs"X-Header: foo; bar="one"; baz=two
(sfooR(RR(sbazR(sfooR(RR(sbazR(sfooR(RR(sbazR(R@R6Rt
get_paramsRF(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_paramss				cCs0t}d|d<|i|idddS(Ns>Content-Type: Multipart/mixed; boundary = "CPIMSSMTPC06p5f3tG"sContent-TypetboundarytCPIMSSMTPC06p5f3tG(R	R@RI(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_param_liberal(s	
cCs|i}tid}||idddd||idddd||iddtid}||idddd	||idddd
||idddddS(Ns&X-Header: foo=one; bar=two; baz=three
RRcsx-headerRtquuzs"X-Header: foo; bar="one"; baz=two
RkRRR(R@R6RRIRF(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_param-s			cCs5|id}|i|ididddS(Ns
msg_22.txtitnames
wibble.JPG(R:R@RSRI(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt'test_get_param_funky_continuation_lines>scCsKtid}|i|idd|i|iddtddS(Ns4Content-Type: image/pjpeg; name="Jim&amp;&amp;Jill"
RsJim&amp;&amp;Jilltunquotes"Jim&amp;&amp;Jill"(R6RR@RItFalse(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt#test_get_param_with_semis_in_quotesBs
	cCsktid}|i|id|i|id|i|id|i|iddS(NsHeader: existsRcRtHEADERtheaderi(R6RRthas_keytfailIf(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_has_keyIs
cCs|i}t}|idd||idd|idd||idd||iddtd||id
ddg||idtdddg|idd
dd||idddd
dS(NRDsiso-2022-jpt
importances
high valueRs"high value"s
text/plainRs
"iso-2022-jp"siso-9999-xxRcsX-Jimmy(s
text/plainR(scharsetsiso-2022-jp(Rs
high value(s
text/plainR(scharsets
"iso-2022-jp"(Rs"high value"(R@R	t	set_paramRIRR(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_set_paramPs		

cCs|i}|id}||idd	d
g|id}|id||iddg|id|||id
dd|fgdS(Ns
msg_05.txtsmultipart/reportRsreport-typesdelivery-statusRs%D1690A7AC1.996856090/mail.example.com(smultipart/reportR(sreport-typesdelivery-status(sboundarys%D1690A7AC1.996856090/mail.example.com(smultipart/reportR(sboundarys%D1690A7AC1.996856090/mail.example.com(smultipart/reportR(sboundarys%D1690A7AC1.996856090/mail.example.com(R@R:RRIt	del_paramR(R.RBR9told_val((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_del_paramas	


cCsGt}|idddd|idd|i|dddS(NsContent-Dispositiont
attachmentR#sbud.gifscontent-disposition(R	t
add_headerRR@(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_del_param_on_other_headerrs	cCs|i}t}|it|id|id||dd|idd||dd|id||dddS(	NRus
text/plainscontent-typeRDsus-asciistext/plain; charset="us-ascii"s	text/htmlstext/html; charset="us-ascii"(R@R	Rat
ValueErrortset_typeR(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt
test_set_typexs		

cCs;t}d|d<|idd|i|dddS(Ns
text/plainsX-Content-Typesapplication/octet-streamsx-content-type(R	RR@(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_set_type_on_other_headers	
cCs#t}|i|iddS(Ns
text/plain(R	R@RH(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_content_type_missings	cCs0t}|id|i|iddS(Nsmessage/rfc822(R	tset_default_typeR@RH(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt/test_get_content_type_missing_with_default_types	
cCs2|id}|i|ididdS(Ns
msg_30.txtismessage/rfc822(R:R@RSRH(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt+test_get_content_type_from_message_implicitscCs2|id}|i|ididdS(Ns
msg_28.txtismessage/rfc822(R:R@RSRH(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt+test_get_content_type_from_message_explicitscCs)|id}|i|iddS(Ns
msg_03.txts
text/plain(R:R@RH(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt6test_get_content_type_from_message_text_plain_implicitscCs)|id}|i|iddS(Ns
msg_01.txts
text/plain(R:R@RH(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt6test_get_content_type_from_message_text_plain_explicitscCs#t}|i|iddS(NRu(R	R@tget_content_maintype(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt!test_get_content_maintype_missings	cCs0t}|id|i|iddS(Nsmessage/rfc822tmessage(R	RR@R(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt3test_get_content_maintype_missing_with_default_types	
cCs2|id}|i|ididdS(Ns
msg_30.txtiR(R:R@RSR(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt/test_get_content_maintype_from_message_implicitscCs2|id}|i|ididdS(Ns
msg_28.txtiR(R:R@RSR(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt/test_get_content_maintype_from_message_explicitscCs)|id}|i|iddS(Ns
msg_03.txtRu(R:R@R(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt:test_get_content_maintype_from_message_text_plain_implicitscCs)|id}|i|iddS(Ns
msg_01.txtRu(R:R@R(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt:test_get_content_maintype_from_message_text_plain_explicitscCs#t}|i|iddS(Ntplain(R	R@tget_content_subtype(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt test_get_content_subtype_missings	cCs0t}|id|i|iddS(Nsmessage/rfc822trfc822(R	RR@R(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt2test_get_content_subtype_missing_with_default_types	
cCs2|id}|i|ididdS(Ns
msg_30.txtiR(R:R@RSR(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt.test_get_content_subtype_from_message_implicitscCs2|id}|i|ididdS(Ns
msg_28.txtiR(R:R@RSR(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt.test_get_content_subtype_from_message_explicitscCs)|id}|i|iddS(Ns
msg_03.txtR(R:R@R(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt9test_get_content_subtype_from_message_text_plain_implicitscCs)|id}|i|iddS(Ns
msg_01.txtR(R:R@R(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt9test_get_content_subtype_from_message_text_plain_explicitscCs-t}d|d<|i|iddS(Nsno-slash-in-this-stringsContent-TypeRu(R	R@R(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_content_maintype_errors	
cCs-t}d|d<|i|iddS(Nsno-slash-in-this-stringsContent-TypeR(R	R@R(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_content_subtype_errors	
cCs=|i}t}|idd|idd|idd||idddg||idddg|idd||idddg||idddg|idd|idd	||iddddg||id	dddg|it|id
ddS(NtFirsttOnetSecondtTwotThirdtThreetTwentytElevensOne HundredtFourthtMissing(R@R	Rtkeystvaluestreplace_headerRatKeyError(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_replace_headers		cCsPd}t}d|d<d|d<|i||i|idt|dS(NsAwDp0P7//y6LwKEAcPa/6Q=9saudio/x-midiscontent-typetbase64scontent-transfer-encodingRf(R	RMR@RSRg(R.txR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_broken_base64_payloads	


cCsSt}|id|id|i|id|id|idS(Nsus-asciiuus-ascii(R	RGR@tget_content_charset(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_get_content_charsets
	

(7R;R<RCRKRLRNRRRYRZR]ReRhRmRrRxRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR(((s1/usr/local/lib/python2.5/email/test/test_email.pyR=Isj												
	
																																							tTestEncoderscBs#eZdZdZdZRS(cCs4|i}t}|id||dddS(Nsus-asciiscontent-transfer-encodingt7bit(R@R	RG(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_encode_empty_payloads		
cCs*|i}td}||dddS(Nshello worldscontent-transfer-encodingR(R@R(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_default_cte
s	cCsj|i}td}||ddtd}||ddtddd}||dddS(	Nshello worldscontent-transfer-encodingRs
hello  worldt8bitt_charsets
iso-8859-1squoted-printable(R@R(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyRs	(R;R<RR(((s1/usr/local/lib/python2.5/email/test/test_email.pyRs		tTestLongHeaderscBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZRS(cCsQ|i}tid}t}t|}|i|||iddS(NsSubject: bug demonstration
	12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789
	more text

test
(R5R6RRRRtR-(R.RBR9RqRw((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_split_long_continuations			
cCsW|i}d}t|dd}||idt|}||iddS(Nsbug demonstration
	12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789
	more texttcontinuation_wss	sbug demonstration
 12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789
 more text(R5Rtencode(R.RBthstrth((s1/usr/local/lib/python2.5/email/test/test_email.pyt,test_another_long_almost_unsplittable_header3s	cCs|i}td}td}td}d}d}did}t||dd}|i|||i||t}	||	d<t}
t|
}|i|	||
i	d	||id
dS(Ns
iso-8859-1s
iso-8859-2sutf-8sDie Mieter treten hier ein werden mit einem Foerderband komfortabel den Korridor entlang, an sdlndischen Wandgemlden vorbei, gegen die rotierenden Klingen befrdert. s;Finanni metropole se hroutily pod tlakem jejich dvtipu.. u正確に言うと翻訳はされていません。一部はドイツ語ですが、あとはでたらめです。実際には「Wenn ist das Nunstuck git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput.」と言っています。theader_nametSubjectsSubject: =?iso-8859-1?q?Die_Mieter_treten_hier_ein_werden_mit_einem_Foerd?=
 =?iso-8859-1?q?erband_komfortabel_den_Korridor_entlang=2C_an_s=FCdl=FCndi?=
 =?iso-8859-1?q?schen_Wandgem=E4lden_vorbei=2C_gegen_die_rotierenden_Kling?=
 =?iso-8859-1?q?en_bef=F6rdert=2E_?= =?iso-8859-2?q?Finan=E8ni_met?=
 =?iso-8859-2?q?ropole_se_hroutily_pod_tlakem_jejich_d=F9vtipu=2E=2E_?=
 =?utf-8?b?5q2j56K644Gr6KiA44GG44Go57+76Kiz44Gv44GV44KM44Gm44GE?=
 =?utf-8?b?44G+44Gb44KT44CC5LiA6YOo44Gv44OJ44Kk44OE6Kqe44Gn44GZ44GM44CB?=
 =?utf-8?b?44GC44Go44Gv44Gn44Gf44KJ44KB44Gn44GZ44CC5a6f6Zqb44Gr44Gv44CM?=
 =?utf-8?q?Wenn_ist_das_Nunstuck_git_und_Slotermeyer=3F_Ja!_Beiherhund_das?=
 =?utf-8?b?IE9kZXIgZGllIEZsaXBwZXJ3YWxkdCBnZXJzcHV0LuOAjeOBqOiogOOBow==?=
 =?utf-8?b?44Gm44GE44G+44GZ44CC?=

s=?iso-8859-1?q?Die_Mieter_treten_hier_ein_werden_mit_einem_Foerd?=
 =?iso-8859-1?q?erband_komfortabel_den_Korridor_entlang=2C_an_s=FCdl=FCndi?=
 =?iso-8859-1?q?schen_Wandgem=E4lden_vorbei=2C_gegen_die_rotierenden_Kling?=
 =?iso-8859-1?q?en_bef=F6rdert=2E_?= =?iso-8859-2?q?Finan=E8ni_met?=
 =?iso-8859-2?q?ropole_se_hroutily_pod_tlakem_jejich_d=F9vtipu=2E=2E_?=
 =?utf-8?b?5q2j56K644Gr6KiA44GG44Go57+76Kiz44Gv44GV44KM44Gm44GE?=
 =?utf-8?b?44G+44Gb44KT44CC5LiA6YOo44Gv44OJ44Kk44OE6Kqe44Gn44GZ44GM44CB?=
 =?utf-8?b?44GC44Go44Gv44Gn44Gf44KJ44KB44Gn44GZ44CC5a6f6Zqb44Gr44Gv44CM?=
 =?utf-8?q?Wenn_ist_das_Nunstuck_git_und_Slotermeyer=3F_Ja!_Beiherhund_das?=
 =?utf-8?b?IE9kZXIgZGllIEZsaXBwZXJ3YWxkdCBnZXJzcHV0LuOAjeOBqOiogOOBow==?=
 =?utf-8?b?44Gm44GE44G+44GZ44CC?=(
R5RRRtappendR	RRRtR-(R.RBRwtcztutf8tg_headtcz_headt	utf8_headRR9Rq((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_long_nonstringDs&		
	

cCs2|i}tddd}||iddS(Nsiwasnipoop; giraffes="very-long-necked-animals"; spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"RsX-Foobar-Spoink-Defrobnitsjwasnipoop; giraffes="very-long-necked-animals";
 spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"(R5RR(R.RBR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_long_header_encodeos
			cCs8|i}tddddd}||iddS(Nsiwasnipoop; giraffes="very-long-necked-animals"; spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"RsX-Foobar-Spoink-DefrobnitRs	sjwasnipoop; giraffes="very-long-necked-animals";
	spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"(R5RR(R.RBR((s1/usr/local/lib/python2.5/email/test/test_email.pyt-test_long_header_encode_with_tab_continuationxs			cCsX|i}td}d|d<t}t|}|i|||iddS(NRsiwasnipoop; giraffes="very-long-necked-animals"; spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"sX-Foobar-Spoink-DefrobnitsContent-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Foobar-Spoink-Defrobnit: wasnipoop; giraffes="very-long-necked-animals";
	spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"

(R5RRRRtR-(R.RBR9RqRw((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_header_splitters	
	
cCs|i}t}d|d<tig}tdD]}|d|q3~|d<|idt}t|}|i|||i	ddS(Nstest@dom.ainRzi
s<%d@dom.ain>t
ReferencestTestsFrom: test@dom.ain
References: <0@dom.ain> <1@dom.ain> <2@dom.ain> <3@dom.ain> <4@dom.ain>
	<5@dom.ain> <6@dom.ain> <7@dom.ain> <8@dom.ain> <9@dom.ain>

Test(
R5R	tSPACERtrangeRMRRRtR-(R.RBR9RUtiRqRw((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_no_semis_header_splitters		
8
	
cCs@|i}ddd}t|dd}||iddS(NsReferences: RiPRs	s\References: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(R5RR(R.RBRR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_no_split_long_headers
	cCs8|i}d}t|dd}||iddS(NsWfrom babylon.socal-raves.org (localhost [127.0.0.1]); by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; for <mailman-admin@babylon.socal-raves.org>; Sat, 2 Feb 2002 17:00:06 -0800 (PST)
	from babylon.socal-raves.org (localhost [127.0.0.1]); by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; for <mailman-admin@babylon.socal-raves.org>; Sat, 2 Feb 2002 17:00:06 -0800 (PST)
	from babylon.socal-raves.org (localhost [127.0.0.1]); by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; for <mailman-admin@babylon.socal-raves.org>; Sat, 2 Feb 2002 17:00:06 -0800 (PST)
Rs	s_from babylon.socal-raves.org (localhost [127.0.0.1]);
	by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81;
	for <mailman-admin@babylon.socal-raves.org>;
	Sat, 2 Feb 2002 17:00:06 -0800 (PST)
	from babylon.socal-raves.org (localhost [127.0.0.1]);
	by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81;
	for <mailman-admin@babylon.socal-raves.org>;
	Sat, 2 Feb 2002 17:00:06 -0800 (PST)
	from babylon.socal-raves.org (localhost [127.0.0.1]);
	by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81;
	for <mailman-admin@babylon.socal-raves.org>;
	Sat, 2 Feb 2002 17:00:06 -0800 (PST)(R5RR(R.RBRR((s1/usr/local/lib/python2.5/email/test/test_email.pyt"test_splitting_multiple_long_liness
	cCsD|i}d}t|dddddd}||iddS(	Nsfrom modemcable093.139-201-24.que.mc.videotron.ca ([24.201.139.93] helo=cthulhu.gerg.ca)
	by kronos.mems-exchange.org with esmtp (Exim 4.05)
	id 17k4h5-00034i-00
	for test@mems-exchange.org; Wed, 28 Aug 2002 11:25:20 -0400t
maxlineleniNRtReceivedRs	sfrom modemcable093.139-201-24.que.mc.videotron.ca ([24.201.139.93]
	helo=cthulhu.gerg.ca)
	by kronos.mems-exchange.org with esmtp (Exim 4.05)
	id 17k4h5-00034i-00
	for test@mems-exchange.org; Wed, 28 Aug 2002 11:25:20 -0400(R5RR(R.RBRR((s1/usr/local/lib/python2.5/email/test/test_email.pyt&test_splitting_first_line_only_is_longs		cCsU|i}t}tdddd}|id||d<||iddS(NsBritische Regierung gibts
iso-8859-1RRs+grnes Licht fr Offshore-WindkraftprojektesSubject: =?iso-8859-1?q?Britische_Regierung_gibt?= =?iso-8859-1?q?gr=FCnes?=
 =?iso-8859-1?q?_Licht_f=FCr_Offshore-Windkraftprojekte?=

(R5R	RRR(R.RBR9R((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_long_8bit_headers			

cCs3|i}t}d|d<||iddS(NsfBritische Regierung gibt grnes Licht fr Offshore-Windkraftprojekte <a-very-long-address@example.com>sReply-TosrReply-To: Britische Regierung gibt grnes Licht fr Offshore-Windkraftprojekte <a-very-long-address@example.com>

(R5R	R(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt test_long_8bit_header_no_charsets
		
cCs<|i}d}t}||d<||idddS(Ns"Someone Test #A" <someone@eecs.umich.edu>,<someone@eecs.umich.edu>,"Someone Test #B" <someone@umich.edu>, "Someone Test #C" <someone@eecs.umich.edu>, "Someone Test #D" <someone@eecs.umich.edu>RisTo: "Someone Test #A" <someone@eecs.umich.edu>, <someone@eecs.umich.edu>,
	"Someone Test #B" <someone@umich.edu>,
	"Someone Test #C" <someone@eecs.umich.edu>,
	"Someone Test #D" <someone@eecs.umich.edu>

(R5R	R(R.RBR|R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_long_to_headers		
cCs?|i}d}t|}|id||iddS(NsIThis is an example of string which has almost the limit of header length.sAdd another line.s\This is an example of string which has almost the limit of header length.
 Add another line.(R5RRR(R.RBRvR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_long_line_after_appends	
cCs?|i}d}t|}|id||iddS(NsThis is a shorter line.s!Add another sentence. (Surprise?)s9This is a shorter line. Add another sentence. (Surprise?)(R5RRR(R.RBRvR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_shorter_line_with_appends	
cCsA|i}d}d}t|dd|}||iddS(Ns!X-Very-Very-Very-Long-Header-NamesDie Mieter treten hier ein werden mit einem Foerderband komfortabel den Korridor entlang, an sdlndischen Wandgemlden vorbei, gegen die rotierenden Klingen befrdert. s
iso-8859-1Rs=?iso-8859-1?q?Die_Mieter_treten_hier_?=
 =?iso-8859-1?q?ein_werden_mit_einem_Foerderband_komfortabel_den_Korridor_?=
 =?iso-8859-1?q?entlang=2C_an_s=FCdl=FCndischen_Wandgem=E4lden_vorbei=2C_g?=
 =?iso-8859-1?q?egen_die_rotierenden_Klingen_bef=F6rdert=2E_?=(R5RR(R.RBtfntgsR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_long_field_names	cCsId}t}t|dd|d<||d<|i|iddS(Nsfrom FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP; Wed, 05 Mar 2003 18:10:18 -0700Rs	s
Received-1s
Received-2s1Received-1: from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by
	hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP;
	Wed, 05 Mar 2003 18:10:18 -0700
Received-2: from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by
	hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP;
	Wed, 05 Mar 2003 18:10:18 -0700

(R	RR@R(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_long_received_headers	
cCsOd}t}t|dddd|d<||d<|i|iddS(Ns<15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> (David Bremner's message of "Thu, 6 Mar 2003 13:58:21 +0100")Rs
Received-1Rs	s
Received-2sReceived-1: <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de>
	(David Bremner's message of "Thu, 6 Mar 2003 13:58:21 +0100")
Received-2: <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de>
	(David Bremner's message of "Thu, 6 Mar 2003 13:58:21 +0100")

(R	RR@R(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_string_headerinst_eq"s	

cCsO|i}t}d}||d<t|dd|d<||iddS(Ns iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9
 locQDQ4zJykFBAXJfWDjAAACYUlEQVR4nF2TQY/jIAyFc6lydlG5x8Nyp1Y69wj1PN2I5gzpsFace-1RsFace-2s7Face-1: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9
	locQDQ4zJykFBAXJfWDjAAACYUlEQVR4nF2TQY/jIAyFc6lydlG5x8Nyp1Y69wj1PN2I5gzp
Face-2: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9
 locQDQ4zJykFBAXJfWDjAAACYUlEQVR4nF2TQY/jIAyFc6lydlG5x8Nyp1Y69wj1PN2I5gzp

(R5R	RR(R.RBR9tt((s1/usr/local/lib/python2.5/email/test/test_email.pyt-test_long_unbreakable_lines_with_continuation0s		
cCs5|i}d}ti|}||iddS(NsReceived: from siimage.com ([172.25.1.3]) by zima.siliconimage.com with Microsoft SMTPSVC(5.0.2195.4905);
	Wed, 16 Oct 2002 07:41:11 -0700sReceived: from siimage.com ([172.25.1.3]) by zima.siliconimage.com with
	Microsoft SMTPSVC(5.0.2195.4905); Wed, 16 Oct 2002 07:41:11 -0700

(R5R6RR(R.RBtmR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt"test_another_long_multiline_header@s
	cCsO|i}d}t}||d<t|dd|d<||iddS(NsList-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
        <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>tListRsQList: List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
	<mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>
List: List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
 <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>

(R5R	RR(R.RBRR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt%test_long_lines_with_different_headerLs		
(R;R<RRRRRRRRRRRRRRRR
RRRRR(((s1/usr/local/lib/python2.5/email/test/test_email.pyRs*			+			
						
			
								tTestFromManglingcBs#eZdZdZdZRS(cCs-t|_d|id<|iiddS(Nsaaa@bbb.orgRzs(From the desk of A.A.A.:
Blah blah blah
(R	R9RM(R.((s1/usr/local/lib/python2.5/email/test/test_email.pytsetUp`s
	cCsEt}t|dt}|i|i|i|iddS(Ntmangle_from_s<From: aaa@bbb.org

>From the desk of A.A.A.:
Blah blah blah
(RRRgRtR9R@R-(R.RvRw((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_mangled_fromhs
	cCsEt}t|dt}|i|i|i|iddS(NRs;From: aaa@bbb.org

From the desk of A.A.A.:
Blah blah blah
(RRRRtR9R@R-(R.RvRw((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_dont_mangle_fromss
	(R;R<RRR(((s1/usr/local/lib/python2.5/email/test/test_email.pyR_s		t
TestMIMEAudiocBs5eZdZdZdZdZdZRS(cCsstiitiitdd}ttd|d}z|i|_Wd|i	Xt
|i|_dS(NRRsaudiotest.autrb(RRRR R!R"RRst
_audiodataR8R
t_au(R.tdatadirR4((s1/usr/local/lib/python2.5/email/test/test_email.pyRs$cCs|i|iiddS(Nsaudio/basic(R@RRH(R.((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_guess_minor_typescCs/|ii}|iti||idS(N(RRSR@RtdecodestringR(R.tpayload((s1/usr/local/lib/python2.5/email/test/test_email.pyt
test_encodingscCs,t|id}|i|iddS(Ntfishs
audio/fish(R
RR@RH(R.tau((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_checkSetMinorscCs|i}|i}|iidddd||idd||iidddd
g||iiddddg}||iidddd||iid	d
|dd|j||iid||j||iid|dd|jdS(NsContent-DispositionRR#saudiotest.auscontent-dispositions#attachment; filename="audiotest.au"RcRRktfailobjtfoobar(s
attachmentR(R#saudiotest.au(R@RRRRRI(R.RBtunlesstmissing((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_add_headers"		

(R;R<RRR R#R((((s1/usr/local/lib/python2.5/email/test/test_email.pyRs
				t
TestMIMEImagecBs5eZdZdZdZdZdZRS(cCsCtd}z|i|_Wd|iXt|i|_dS(NsPyBanner048.gif(R%Rst_imgdataR8Rt_im(R.R4((s1/usr/local/lib/python2.5/email/test/test_email.pyRs
cCs|i|iiddS(Ns	image/gif(R@R+RH(R.((s1/usr/local/lib/python2.5/email/test/test_email.pyRscCs/|ii}|iti||idS(N(R+RSR@RRR*(R.R((s1/usr/local/lib/python2.5/email/test/test_email.pyR scCs,t|id}|i|iddS(NR!s
image/fish(RR*R@RH(R.tim((s1/usr/local/lib/python2.5/email/test/test_email.pyR#scCs|i}|i}|iidddd||idd||iidddd
g||iiddddg}||iidddd||iid	d
|dd|j||iid||j||iid|dd|jdS(NsContent-DispositionRR#sdingusfish.gifscontent-dispositions%attachment; filename="dingusfish.gif"RcRRkR$R%(s
attachmentR(R#sdingusfish.gif(R@RR+RRRI(R.RBR&R'((s1/usr/local/lib/python2.5/email/test/test_email.pyR(s"		

(R;R<RRR R#R((((s1/usr/local/lib/python2.5/email/test/test_email.pyR)s
				tTestMIMETextcBs,eZdZdZdZdZRS(cCstd|_dS(Nshello there(Rt_msg(R.((s1/usr/local/lib/python2.5/email/test/test_email.pyRscCs|i}|i}||iid||iiddg}||iid||j||iid|dd|jdS(Ns
text/plainRDsus-asciiR%Rc(R@RR.RHRI(R.RBR&R'((s1/usr/local/lib/python2.5/email/test/test_email.pyt
test_typess		cCs4|i|iid|i|iidS(Nshello there(R@R.RSRtis_multipart(R.((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_payloadscCsF|i}tddd}||iid||dddS(Nshello thereRsus-asciiscontent-typestext/plain; charset="us-ascii"(R@RRERJ(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_charsets	(R;R<RR/R1R2(((s1/usr/local/lib/python2.5/email/test/test_email.pyR-s		
	t
TestMultipartcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZRS(cCsZtd}z|i}Wd|iXtdddd}t|dd}|idd	d
dtd}|i||i|d|d
<d|d<d|d<d}ti	|}|ddjo
ti
}n
ti}|djo
d}	nd}	d|	|df}
tidti	||
|d<||_
||_||_dS(NsPyBanner048.gift	multiparttmixedRR[Rsdingusfish.gifscontent-dispositionRR#s$Hi there,

This is the dingus fish.
sBarry <barry@digicool.com>Rzs)Dingus Lovers <cravindogs@cravindogs.com>RsHere is your dingus fishRg4FcpAiit-t+s %s%04di$s%a, %d %b %Y %H:%M:%StDate(R%RsR8R
RRRtattachttimet	localtimettimezonetaltzonetstrftimeR.R+t_txt(R.R4Rt	containertimagetintrotnowt	timetuplettzsecstsignttzoffset((s1/usr/local/lib/python2.5/email/test/test_email.pyRs<	





	

		cCs|i}|i}|i}|i}||i||id|t|id|t|id|id}|id}|||i	j|||i
j||i||g||i||idS(Nsmultipart/mixediii(R@RRaR.R0RHtlenRSt
IndexErrorR?R+(R.RBR&traisesRtm0tm1((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_hierarchy!s				cCs2d}ti|}|i||idS(NsContent-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain


--BOUNDARY


--BOUNDARY--
(RtparsestrR5R(R.RuR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_empty_multipart_idempotent4s
cCsTtdd}d|d<d|d<d|d<|id	|i|id
dS(NR4R5s	A subjectRsaperson@dom.ainRsbperson@dom.ainRzR[sContent-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY

--BOUNDARY--(R
R^R5R(R.touter((s1/usr/local/lib/python2.5/email/test/test_email.pyt/test_no_parts_in_a_multipart_with_none_epilogueEs



	cCsftdd}d|d<d|d<d|d<d	|_d	|_|id
|i|iddS(NR4R5s	A subjectRsaperson@dom.ainRsbperson@dom.ainRzRR[sContent-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain


--BOUNDARY

--BOUNDARY--
(R
tpreambletepilogueR^R5R(R.RP((s1/usr/local/lib/python2.5/email/test/test_email.pyt0test_no_parts_in_a_multipart_with_empty_epilogueVs


		
cCss|i}tdd}d|d<d|d<d|d<|id	td
}|i|||iddS(NR4R5s	A subjectRsaperson@dom.ainRsbperson@dom.ainRzR[shello worldsContent-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--(R5R
R^RR9R(R.RBRPR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_one_part_in_a_multipartks	





cCs||i}tdd}d|d<d|d<d|d<d	|_td
}|i||id||iddS(
NR4R5s	A subjectRsaperson@dom.ainRsbperson@dom.ainRzRshello worldR[sContent-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain


--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--(R5R
RRRR9R^R(R.RBRPR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt1test_seq_parts_in_a_multipart_with_empty_preambles	


	

cCs||i}tdd}d|d<d|d<d|d<d|_td	}|i||id
||iddS(NR4R5s	A subjectRsaperson@dom.ainRsbperson@dom.ainRzshello worldR[sContent-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--(R5R
RFRRRR9R^R(R.RBRPR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt0test_seq_parts_in_a_multipart_with_none_preambles	


	


cCs||i}tdd}d|d<d|d<d|d<d|_td	}|i||id
||iddS(NR4R5s	A subjectRsaperson@dom.ainRsbperson@dom.ainRzshello worldR[sContent-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--(R5R
RFRSRR9R^R(R.RBRPR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt0test_seq_parts_in_a_multipart_with_none_epilogues	


	


cCs||i}tdd}d|d<d|d<d|d<d	|_td
}|i||id||iddS(
NR4R5s	A subjectRsaperson@dom.ainRsbperson@dom.ainRzRshello worldR[sContent-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--
(R5R
RSRR9R^R(R.RBRPR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt1test_seq_parts_in_a_multipart_with_empty_epilogues	


	

cCs||i}tdd}d|d<d|d<d|d<d	|_td
}|i||id||iddS(
NR4R5s	A subjectRsaperson@dom.ainRsbperson@dom.ainRzs
shello worldR[sContent-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--

(R5R
RSRR9R^R(R.RBRPR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt.test_seq_parts_in_a_multipart_with_nl_epilogues	


	

cCs|i}|id}|t|id|id}||id|t|idxb|iD]T}||id|t|id|id}||idqyWdS(Ns
msg_36.txtiismultipart/alternativesmessage/external-bodyis
text/plain(R@R:RHRSRH(R.RBR9tmsg1RXt
subsubpart((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_message_external_bodys	
cCs/|id}|it|iddS(Ns
msg_37.txti(R:R@RHRS(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_double_boundaryscCsH|i}|id}t}ti||||iddS(Ns
msg_38.txtsmultipart/mixed
    multipart/mixed
        multipart/alternative
            text/plain
        text/plain
    text/plain
    text/plain
(R5R:RRt
_structureR-(R.RBR9Rq((s1/usr/local/lib/python2.5/email/test/test_email.pyt)test_nested_inner_contains_outer_boundarys		cCsH|i}|id}t}ti||||iddS(Ns
msg_39.txtsmultipart/mixed
    multipart/mixed
        multipart/alternative
        application/octet-stream
        application/octet-stream
    text/plain
(R5R:RRR_R-(R.RBR9Rq((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_nested_with_same_boundary/s		cCs)|id}|i|iddS(Ns
msg_40.txtsMIME-Version: 1.0
Content-Type: text/html; boundary="--961284236552522269"

----961284236552522269
Content-Type: text/html;
Content-Transfer-Encoding: 7Bit

<html></html>

----961284236552522269--
(R:R@R(R.R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_boundary_in_non_multipart@scCs[|i}tid}|i|i||id|t|iddS(NsMIME-Version: 1.0
Content-Type: multipart/mixed; boundary="    XXXX"

--    XXXX
Content-Type: text/plain


--    XXXX
Content-Type: text/plain

--    XXXX--
s    XXXXi(R@R6RRR0R\RHRS(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt test_boundary_with_leading_spaceOs		cCs5tid}|i|ididdS(NsContent-Type: multipart/mixed; boundary="===============0012394164=="
MIME-Version: 1.0

--===============0012394164==
Content-Type: image/file1.jpg
MIME-Version: 1.0
Content-Transfer-Encoding: base64

YXNkZg==
--===============0012394164==--isYXNkZg==(RRNtassertEqualsRS(R.R((s1/usr/local/lib/python2.5/email/test/test_email.pyt&test_boundary_without_trailing_newlinebs	
	(R;R<RRMRORQRTRURVRWRXRYRZR]R^R`RaRbRcRe(((s1/usr/local/lib/python2.5/email/test/test_email.pyR3s$	(											
					tTestNonConformantcBsYeZdZdZdZdZdZdZdZdZ	dZ
RS(	cCsU|i}|id}||id||id||iddS(Ns
msg_14.txts
text/plainRuR(R@R:RHRR(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_parse_missing_minor_typets
	cCst|i}|id}|id}|t|d|it|id|t|idti	dS(Ns
msg_15.txtitdefectsi(
RR:RSthasattrR@RHRht
isinstanceRtStartBoundaryNotFoundDefect(R.R&R9tinner((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_same_boundary_inner_outer{s	cCs|i}|id}|t|it|it|id|t|idti	|t|idti
dS(Ns
msg_25.txtiii(RR:RjRSR'R@RHRhRtNoBoundaryInMultipartDefectt!MultipartInvariantViolationDefect(R.R&R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_multipart_no_boundarys	cCs|i}|i}t}d|d<||id||id||id|d=d|d<||id||id||idt}t|}|i|||i	ddS(NRusContent-TypeRs
text/plainscontent-typeRksContent-Type: foo

(
R@R5R	RRRHRRRtR-(R.RBtneqR9RvRw((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_invalid_content_types 			

	
cCs/|i}|id}||iddS(Ns
msg_31.txtsm--BOUNDARY
Content-Type: text/plain

message 1

--BOUNDARY
Content-Type: text/plain

message 2

--BOUNDARY--
(R5R:RS(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_no_start_boundarys	cCs/|i}|id}||iddS(Ns
msg_35.txtsFrom: aperson@dom.ain
To: bperson@dom.ain
Subject: here's something interesting

counter to RFC 2822, there's no separating newline here
(R5R:R(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_no_separating_blank_lines	cCs|i}|id}|t|d|it|id|t|idti|t|idti	dS(Ns
msg_41.txtRhiii(
RR:RiR@RHRhRjRRnRo(R.R&R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_lying_multiparts	cCsd|id}|idid}|it|id|it|idtidS(Ns
msg_42.txtii(	R:RSR@RHRhRRjRRk(R.RPtbad((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_missing_start_boundarys
	cCs|i}d}ti|}||ig||id|t|id|it|idt	i
||ididdS(Ns Line 1
Line 2
Line 3s
Line 2
Line 3iis Line 1
(R@R6RRRSRHRhRRjRt#FirstHeaderLineIsContinuationDefecttline(R.RBRR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt&test_first_line_is_continuation_headers	
(R;R<RgRmRpRrRsRtRuRwRz(((s1/usr/local/lib/python2.5/email/test/test_email.pyRfss		
								tTestRFC2047cBs5eZdZdZdZdZdZRS(cCsQ|i}d}t|}||ddd	d
g|tt|ddS(NsVRe: =?mac-iceland?q?r=8Aksm=9Arg=8Cs?= baz
 foo bar =?mac-iceland?q?r=8Aksm=9Arg=8Cs?=sRe:s
rksmrgssmac-icelandsbaz foo barsVRe: =?mac-iceland?q?r=8Aksm=9Arg=8Cs?= baz foo bar
 =?mac-iceland?q?r=8Aksm=9Arg=8Cs?=(sRe:N(s
rksmrgssmac-iceland(sbaz foo barN(s
rksmrgssmac-iceland(R@RRFR'R(R.RBRvtdh((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_rfc2047_multilines	
cCsZ|i}d}t|}||ddgtt|id}||ddS(	Ns0=?ISO-8859-1?Q?Andr=E9?= Pirard <pirard@dom.ain>sAndrs
iso-8859-1sPirard <pirard@dom.ain>slatin-1sAndr Pirard <pirard@dom.ain>(sAndrs
iso-8859-1(sPirard <pirard@dom.ain>N(R@RRFtunicodeRR(R.RBRvR|thu((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_whitespace_eater_unicodes	cCsW|i}d}t|}||dd	d
dgt|i}||ddS(NsWThe =?iso-8859-1?b?cXVpY2sgYnJvd24gZm94?= jumped over the =?iso-8859-1?b?bGF6eSBkb2c=?=tThesquick brown foxs
iso-8859-1sjumped over theslazy dogu,The quick brown fox jumped over the lazy dog(RN(squick brown foxs
iso-8859-1(sjumped over theN(slazy dogs
iso-8859-1(R@RRFRt__unicode__(R.RBRvR|R((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_whitespace_eater_unicode_2s	
cCs/d}t|}|i||dfgdS(Ns3Sm=?ISO-8859-1?B?9g==?=rg=?ISO-8859-1?B?5Q==?=sbord(RR@RF(R.RvR|((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_rfc2047_without_whitespacescCs5d}t|}|i|dd	d
ddgdS(
Ns7Sm =?ISO-8859-1?B?9g==?= rg =?ISO-8859-1?B?5Q==?= sbordtSmss
iso-8859-1trgstsbord(RN(ss
iso-8859-1(RN(ss
iso-8859-1(RN(RR@RF(R.RvR|((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_rfc2047_with_whitespaces
(R;R<R}RRRR(((s1/usr/local/lib/python2.5/email/test/test_email.pyR{s
					tTestMIMEMessagecBs}eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZRS(
cCs1td}z|i|_Wd|iXdS(Ns
msg_11.txt(R%Rst_textR8(R.R4((s1/usr/local/lib/python2.5/email/test/test_email.pyRscCs|ittddS(Nsa plain string(Rat	TypeErrorR(R.((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_type_errorscCs|i}|i}d}t}||d<t|}||id|i}|t|t|t|d|d}|||j||d|dS(Ns
A sub-messageRsmessage/rfc822iitsubject(	R@RR	RRHRSRjtlistRH(R.RBR&RRRRRX((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_valid_argument s			

cCsX|i}t}d|d<t}d|d<t|}|iti|i|dS(Ns	subpart 1Rs	subpart 2(R@R	RRaRtMultipartConversionErrorR9(R.RBR[tmsg2R((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_bad_multipart/s		
	
cCsrt}d|d<|idt|}d|d<t}t|}|i||i|iddS(NsAn enclosed messageRs!Here is the body of the message.
sThe enclosing messagesContent-Type: message/rfc822
MIME-Version: 1.0
Subject: The enclosing message

Subject: An enclosed message

Here is the body of the message.
(R	RMRRRRtR@R-(R.RRRvRw((s1/usr/local/lib/python2.5/email/test/test_email.pyt
test_generate8s	


	
cCs|i}|i}|id}||id|i}|t|t|t|d|d}|it|t||dd||iddS(Ns
msg_11.txtsmessage/rfc822iiRsAn enclosed messages!Here is the body of the message.
(	R@RR:RHRSRjRRHR	(R.RBR&R9Rtsubmsg((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_parse_message_rfc822Ls		
c	Cs?|i}|i}|id}||id||i|t|id|id}||id||id|id}||id|t|id	|id}|t|t||d
d||i	dd
dd||i	dd
dd|id}|t|t||dd||id
dddg||i	dd
dd|id	}||id|i}|t|t|t|d|d}|t|t||id||dddS(Ns
msg_16.txtsmultipart/reportiis
text/plainsThis report relates to a message you sent with the following header fields:

  Message-id: <002001c144a6$8752e060$56104586@oxy.edu>
  Date: Sun, 23 Sep 2001 20:10:55 -0700
  From: "Ian T. Henry" <henryi@oxy.edu>
  To: SoCal Raves <scr@socal-raves.org>
  Subject: [scr] yeah for Ians!!

Your message cannot be delivered to the following recipients:

  Recipient address: jangel1@cougar.noc.ucla.edu
  Reason: recipient reached disk quota

ismessage/delivery-statusisoriginal-envelope-ids"0GK500B4HD0888@cougar.noc.ucla.edutdnsRcs
reporting-mtaRtnsdtactiontfailedsoriginal-recipientRsjangel1@cougar.noc.ucla.edusfinal-recipientsmessage/rfc822s
message-ids(<002001c144a6$8752e060$56104586@oxy.edu>(srfc822R(sjangel1@cougar.noc.ucla.eduR(
R@RR:RHR0RHRSRjR	RIRFRR(	R.RBR&R9RXtdsn1tdsn2RR\((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_dsnYsD		


c	Cs|i}td}z|i}Wd|iXt}d|d<d|d<d|d<d|_d	|_td
}td}|idd
dd|i	||i	|t
}t|}|i|||i
|dS(Ns
msg_21.txtsaperson@dom.ainRzsbperson@dom.ainRRRsMIME messagesEnd of MIME message
RRsContent-Typesmultipart/mixedRR[(R5R%RsR8R	RRRSRRR9RRRtR-(	R.RBR4RuR9R[RRqRw((s1/usr/local/lib/python2.5/email/test/test_email.pyt
test_epilogues(		


		

	
cCs|i}t}d|d<d|d<d|d<d|_d|_td	}td
}|iddd
d|i||i|||iddS(Nsaperson@dom.ainRzsbperson@dom.ainRRRsMIME messageRRRsContent-Typesmultipart/mixedRR[sdFrom: aperson@dom.ain
To: bperson@dom.ain
Subject: Test
Content-Type: multipart/mixed; boundary="BOUNDARY"

MIME message
--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

One
--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

Two
--BOUNDARY--
(R5R	RRRSRRR9R(R.RBR9R[R((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_no_nl_preambles		


		

cCs|i}td}zti|}Wd|iX|id}||id||id|id}||id||id|id}||id||id|id}||id||iddS(Ns
msg_30.txtismessage/rfc822is
text/plain(R@R%R6R7R8RStget_default_typeRH(R.RBR4R9t
container1t
container2tcontainer1atcontainer2a((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_default_types"	cCs|i}td}zti|}Wd|iX|id}||id||id|id}||id||id|id}||id||id|id}||id||iddS(Ns
msg_28.txtismessage/rfc822is
text/plain(R@R%R6R7R8RSRRH(R.RBR4R9RRRR((s1/usr/local/lib/python2.5/email/test/test_email.pyt.test_default_type_with_explicit_container_types"	cCsX|i}|i}tdd}d|_td}td}t|}t|}|i||i|||id||id||id||id||i	dd|d	=|d
=|d	=|d
=||id||id||id||id||i	dddS(NtdigestR[Rs
message 1
s
message 2
smessage/rfc822isContent-Type: multipart/digest; boundary="BOUNDARY"
MIME-Version: 1.0

--BOUNDARY
Content-Type: message/rfc822
MIME-Version: 1.0

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

message 1

--BOUNDARY
Content-Type: message/rfc822
MIME-Version: 1.0

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

message 2

--BOUNDARY--
scontent-typesmime-versionsBContent-Type: multipart/digest; boundary="BOUNDARY"
MIME-Version: 1.0

--BOUNDARY

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

message 1

--BOUNDARY

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

message 2

--BOUNDARY--
(
R@R5RRSRRR9RHRR(R.RBRqR@t	subpart1at	subpart2atsubpart1tsubpart2((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_default_type_non_parseds4			

cCs|i}td}td}td||f}|t|id||id|||id|dS(NRt	_subpartsiii(R@RRRHRS(R.RBttext1ttext2R9((s1/usr/local/lib/python2.5/email/test/test_email.pyt$test_mime_attachments_in_constructor?s	(R;R<RRRRRRRRRRRRR(((s1/usr/local/lib/python2.5/email/test/test_email.pyRs							
	:		#			JtTestIdempotentcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZRS(cCsCt|}z|i}Wd|iXti|}||fS(N(R%RsR8R6R(R.R#R4RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyR:PscCsH|i}t}t|dd}|i||||idS(Ntmaxheaderleni(R5RRRtR-(R.R9RuRBRvRw((s1/usr/local/lib/python2.5/email/test/test_email.pyt_idempotentYs
		
cCs|i}|id\}}||id||id||id||idd||idd||id||i	d|i
||dS(	Ns
msg_01.txts
text/plainRuRiRDsus-ascii(scharsetsus-ascii(RdR:RHRRRRIRRRFRSR(R.RBR9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_parse_text_message`s	cCsn|i}|id\}}||id||id||idd|i||dS(Ns
msg_03.txts
text/plainRD(RdR:RHRRFRIR(R.RBR9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_parse_untyped_messagels	cCs)|id\}}|i||dS(Ns
msg_04.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_simple_multiparttscCs)|id\}}|i||dS(Ns
msg_02.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_MIME_digestxscCs)|id\}}|i||dS(Ns
msg_27.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_long_header|scCs)|id\}}|i||dS(Ns
msg_28.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyt"test_MIME_digest_with_part_headersscCs)|id\}}|i||dS(Ns
msg_06.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_mixed_with_imagescCs)|id\}}|i||dS(Ns
msg_05.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_multipart_reportscCs)|id\}}|i||dS(Ns
msg_16.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyRscCs)|id\}}|i||dS(Ns
msg_21.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_preamble_epiloguescCs)|id\}}|i||dS(Ns
msg_23.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_multipart_one_partscCs)|id\}}|i||dS(Ns
msg_24.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_multipart_no_partsscCs)|id\}}|i||dS(Ns
msg_31.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyRsscCs)|id\}}|i||dS(Ns
msg_32.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_rfc2231_charsetscCs)|id\}}|i||dS(Ns
msg_33.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_more_rfc2231_parametersscCs)|id\}}|i||dS(Ns
msg_34.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyt%test_text_plain_in_a_multipart_digestscCs)|id\}}|i||dS(Nsmsg_12a.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_nested_multipart_mixedsscCs)|id\}}|i||dS(Ns
msg_36.txt(R:R(R.R9Ru((s1/usr/local/lib/python2.5/email/test/test_email.pyt%test_message_external_body_idempotentsc
Cs|i}|i}|id\}}||idh}x$|iD]\}}|||<qMW||dd||dd||id||id|t|id	|id
}||id||id|id
}	||	id||	id|id}
||
id|it	|
t
|
i}|t	|t|t|d
|d
}|t	|t
||iddS(Ns
msg_05.txtsmultipart/reportsreport-typesdelivery-statusRs%D1690A7AC1.996856090/mail.example.coms%This is a MIME-encapsulated message.
s
iis
text/plainsYadda yadda yadda
iismessage/rfc822(RdRR:RHRRRRSRHRSRjR	R(
R.RBR&R9RutparamstpktpvR[Rtmsg3Rtmsg4((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_content_types8		

cCs|i}|i}|id\}}||id|i}|t|t|t|d|d}|it|t||id|it|it	||iddS(Ns
msg_06.txtsmessage/rfc822iis
text/plains
(
RdRR:RHRSRjRRHR	R'(R.RBR&R9RuRR[((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_parsers		
(R;R<R:RRRRRRRRRRRRRRsRRRRRRR(((s1/usr/local/lib/python2.5/email/test/test_email.pyROs,																						 tTestMiscellaneouscBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZRS(cCs{td}z|i}Wd|iXti|}t}t|dd}|i||i||i	dS(Ns
msg_01.txtRi(
R%RsR8R6RRRRtR@R-(R.R4RuR9RvRw((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_message_from_strings	
cCstd}zj|i}|idti|}t}t|dd}|i||i||i	Wd|i
XdS(Ns
msg_01.txtiR(R%RstseekR6R7RRRtR@R-R8(R.R4RuR9RvRw((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_message_from_files
	
cCs|i}td}z|i}Wd|iXdtfdY}ti||}|t||td}z|i}Wd|iXti||}x'|iD]}|t||qWdS(Ns
msg_01.txtt	MyMessagecBseZRS((R;R<(((s1/usr/local/lib/python2.5/email/test/test_email.pyRss
msg_02.txt(	RR%RsR8R	R6RRjtwalk(R.R&R4RuRR9RX((s1/usr/local/lib/python2.5/email/test/test_email.pyt#test_message_from_string_with_classs 	
cCs|i}dtfdY}td}zti||}Wd|iX|t||td}zti||}Wd|iXx'|iD]}|t||qWdS(NRcBseZRS((R;R<(((s1/usr/local/lib/python2.5/email/test/test_email.pyR ss
msg_01.txts
msg_02.txt(RR	R%R6R7R8RjR(R.R&RR4R9RX((s1/usr/local/lib/python2.5/email/test/test_email.pyt!test_message_from_file_with_classs	
c"Cstd}|i}|i|i|dddddddd	d
ddd
ddddddddddddddddddd d!g dS("NR6RRRRRRR
R
RRRtMIMENonMultipartRR	RRRt
base64mimeRDtencodersterrorst	generatorRct	iteratorsRR7RtmimetparserRt
quoprimimetutils(t
__import__t__all__tsortR@(R.tmoduletall((s1/usr/local/lib/python2.5/email/test/test_email.pyttest__all__2s	
					cCsCti}|ititi|d ti|d dS(Ni(R:R@Rt	parsedatet
formatdatetgmtime(R.RC((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_formatdateDscCsIti}|ititi|dtd ti|d dS(NR;i(R:R@RRRRgR;(R.RC((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_formatdate_localtimeIscCs~ti}|iti|dttidti||iti|dtdttidti|dS(NR;s%a, %d %b %Y %H:%M:%S -0000tusegmts%a, %d %b %Y %H:%M:%S GMT(R:R@RRRR>RRg(R.RC((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_formatdate_usegmtOscCs|itidddS(NR(R@RRRF(R.((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_parsedate_noneXscCs&|itidtiddS(NsWed,3 Apr 2002 14:58:26 +0800sWed, 3 Apr 2002 14:58:26 +0800(R@RR(R.((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_parsedate_compact[scCs#|i}|tidddS(
Ns25 Feb 2003 13:47:26 -0800iiii
i/iiiii(
iiii
i/iiiii(R@Rtparsedate_tz(R.RB((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_parsedate_no_dayofweek`s	cCs#|i}|tidddS(
Ns5 Feb 2003 13:47:26 -0800iiii
i/iiiii(
iiii
i/iiiii(R@RR(R.RB((s1/usr/local/lib/python2.5/email/test/test_email.pyt#test_parsedate_compact_no_dayofweekes	cCs|i}tid}tti|}|ti|d |d |ttid|dtid}tti|d }|ti|d |d |ttid|d ddS(Ns5 Feb 2003 13:47:26 -0800is%Yii	(	R@RRtintR:tmktimeR;R>R(R.RBttimetupR
((s1/usr/local/lib/python2.5/email/test/test_email.pyt+test_parsedate_acceptable_to_time_functionsjs	cCs?|itidd|ititidddS(Ns<>R(RR(R@Rt	parseaddrt
formataddr(R.((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_parseaddr_emptyuscCs|itidddS(NsA Silly Personsperson@dom.ainsA Silly Person <person@dom.ain>(sA Silly Personsperson@dom.ain(R@RR(R.((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_noquote_dumpyscCsW|itiddd}d}|ititi||f||fdS(NsA (Very) Silly Personsperson@dom.ains*"A \(Very\) Silly Person" <person@dom.ain>sA \(Special\) Person(sA (Very) Silly Personsperson@dom.ain(R@RRR(R.tatb((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_escape_dump~scCsW|itiddd}d}|ititi||f||fdS(NsArthur \Backslash\ Foobarsperson@dom.ains."Arthur \\Backslash\\ Foobar" <person@dom.ain>(sArthur \Backslash\ Foobarsperson@dom.ain(R@RRR(R.RR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_escape_backslashesscCsyd}d}d\}}|iti|||f|iti|||f|iti||f|dS(NsJohn X. Doe <jxd@example.com>s"John X. Doe" <jxd@example.com>sJohn X. Doesjxd@example.com(sJohn X. Doesjxd@example.com(R@RRR(R.RtyRR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_name_with_dotscCs#d}|iti|ddS(NsFoo
	Bar <foo@example.com>sFoo Barsfoo@example.com(sFoo Barsfoo@example.com(R@RR(R.R((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_multiline_from_commentscCs|itidddS(NsA Silly; Personsperson@dom.ains""A Silly; Person" <person@dom.ain>(sA Silly; Personsperson@dom.ain(R@RR(R.((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_quote_dumpscCs{|i}|tidd|tidd|tidd|tidd|tidddS(Nthelloshello
shello
shello
shello

s	hello

(R@Rtfix_eols(R.RB((s1/usr/local/lib/python2.5/email/test/test_email.pyt
test_fix_eolss	cCs|i}|i}t}t}||d||d||d|d||d||d|||d||d||d|d||d||d|||||||dS(Nsus-asciisUS-ASCIIsUs-AsCiItusasciitUSASCIItUsAsCiI(R@tfailIfEqualR(R.RBtnetcset1tcset2((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_charset_richcomparisonss$				












cCs/|i}|tiddgddgdS(	Nsaperson@dom.ain (Al Person)sBud Person <bperson@dom.ain>s	Al Personsaperson@dom.ains
Bud Personsbperson@dom.ain(s	Al Personsaperson@dom.ain(s
Bud Personsbperson@dom.ain(R@Rtgetaddresses(R.RB((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_getaddressess
		cCsm|i}|tidgdg|tidgd	d
dg|tiddgdd
gdS(Nsfoo: ;Rs	[]*-- =~$s*--s#"Jason R. Mastaler" <jason@dom.ain>sJason R. Mastalers
jason@dom.ain(RR(RR(RR(Rs*--(RR(sJason R. Mastalers
jason@dom.ain(R@RR	(R.RB((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_getaddresses_nastys				cCs4|i}tidg}||ddddS(s(Test proper handling of a nested comments%User ((nested comment)) <foo@bar.com>iisfoo@bar.comN(R@RR	(R.RBtaddrs((s1/usr/local/lib/python2.5/email/test/test_email.pyt"test_getaddresses_embedded_comments	cCs?|i}t}|idddd||iddS(Nscontent-dispositionRR#sfoo\wacky"name(R@R	RRT(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_utils_quote_unquotes
		cCs&td}|i|iddS(Ns
not a charsetR(RR@tget_body_encoding(R.RD((s1/usr/local/lib/python2.5/email/test/test_email.pyt)test_get_body_encoding_with_bogus_charsetscCst|i}t}d|d<||dd|i}|t|d||ddt|d}||id|idd	|||id
||idtd||ddt}d
|d<|i}|t|d||ddt|d}||it	i
|idd	|||id||dddS(Nstext/plain; charset=UTF-8sContent-Typescontent-typeiisutf-8Rshello worldRDsaGVsbG8gd29ybGQ=
Rfscontent-transfer-encodingstext/plain; charset="US-ASCII"sus-asciiR(R@R	RPRHRRRMRSRgRtencode_7or8bit(R.RBR9RQRD((s1/usr/local/lib/python2.5/email/test/test_email.pyt-test_get_body_encoding_with_uppercase_charsets.		
	
cCs8td}td}|i|i|idS(Nsus-asciisUS-ASCII(RR@R(R.tlctuc((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_charsets_case_insensitivescCsH|i}|id}t}ti||||iddS(Ns
msg_43.txtsBmultipart/report
    text/plain
    message/delivery-status
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
    text/rfc822-headers
(R5R:RRR_R-(R.RBR9Rq((s1/usr/local/lib/python2.5/email/test/test_email.pyt1test_partial_falls_inside_message_delivery_statuss		( R;R<RRRRRRRRRRRRRRRRRRRRRRR
RR
RRRRR(((s1/usr/local/lib/python2.5/email/test/test_email.pyRs<																										
					t
TestIteratorscBs#eZdZdZdZRS(cCs|i}|i}|id}ti|}t|}|t|d|ti||i	|id}ti|}t|}|t|dt
d}z |ti||iWd|iXdS(Ns
msg_01.txtis
msg_02.txti+s
msg_19.txt(
R@R5R:Rtbody_line_iteratorRRHtEMPTYSTRINGRRSR%RsR8(R.RBRqR9titRR4((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_body_line_iterator-	s		 cCs|i}|id}ti|d}g}d}x+|D]#}|d7}|i|iq=W||d|ti|ddS(Ns
msg_04.txtRuiiis`a simple kind of mirror
to reflect upon our own
a simple kind of mirror
to reflect upon our own
(R@R:Rttyped_subpart_iteratorRRSRR(R.RBR9RRtsubpartsRX((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_typed_subpart_iteratorA	s	

cCs|i}|id}ti|dd}g}d}x+|D]#}|d7}|i|iq@W||d|ti|ddS(Ns
msg_03.txtRuRiis%
Hi,

Do you like this message?

-Me
(R@R:RRRRSRR(R.RBR9RRRRX((s1/usr/local/lib/python2.5/email/test/test_email.pyt(test_typed_subpart_iterator_default_typeR	s	

(R;R<RRR(((s1/usr/local/lib/python2.5/email/test/test_email.pyR,	s		tTestParserscBsbeZdZdZdZdZdZdZdZdZ	dZ
d	ZRS(
cCs|i}td}zti|}Wd|iX||dd||dd||id|i|i|it	|i
tdS(Ns
msg_02.txtR}sppp-request@zzz.orgR|sppp@zzz.orgsmultipart/mixed(R@R%RtparseR8RHRR0RRjRSR'(R.RBR4R9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_header_parserh	s	cCsQ|i}tid}||dd||dd||iddS(NsFrom: aperson@dom.ain
To: bperson@dom.ain
Subject: the next line has a space on it
 
Date: Mon, 8 Apr 2002 15:09:19 -0400
Message-ID: spam

Here's the message body
Rs!the next line has a space on it
 s
message-idtspamsHere's the message body
(R@R6RRS(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_whitespace_continuationv	s			cCsQ|i}tid}||dd||dd||iddS(NsFrom: aperson@dom.ain
To: bperson@dom.ain
Date: Mon, 8 Apr 2002 15:09:19 -0400
Message-ID: spam
Subject: the next line has a space on it
 

Here's the message body
Rs!the next line has a space on it
 s
message-idR#sHere's the message body
(R@R6RRS(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt(test_whitespace_continuation_last_header	s			cCs|i}tddd}zti|}Wd|iX|t|id|id}||id||id|id}||id	dS(
Ns
msg_26.txtR$Riis
text/plains!Simple email with attachment.

isapplication/riscos(R@R%RR!R8RHRSRH(R.RBR4R9tpart1tpart2((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_crlf_separation	s	c	Cs|i}|i}td}zti|}Wd|iX||id|t|id|id}||i	d||id|t|id|id}||id||i	d||id|id}||i	d||id|t|id|id}||id||i	d||iddS(	Ns
msg_28.txtiiismessage/rfc822s
text/plains
message 1
s
message 2
(
R@R5R%R6R7R8R0RHRSRH(	R.RBRqR4R9R&tpart1aR'tpart2a((s1/usr/local/lib/python2.5/email/test/test_email.pyt-test_multipart_digest_with_extra_mime_headers	s0		cCs?dddg}titi|}|i|dddS(Ns$From: Andrew Person <aperson@dom.ains
Subject: Tests%Date: Tue, 20 Aug 2002 16:43:45 +1000tdatesTue, 20 Aug 2002 16:43:45 +1000(R6RR+RR@(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_three_lines	s
	cCsd|i}d}d}d||f}ti|}||id|||id|dS(NRus	more texts'Header: %s
Next-Header: %s

Body

RsNext-Header(R@R6Rtget(R.RBtvalue1tvalue2RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt3test_strip_line_feed_and_carriage_return_in_headers	s	
cCsz|i}d}ti|}|t|id|i}|i||dddg||iddS(Ns(>From: foo
From: bar
!"#QUX;~: zoo

bodyis!"#QUX;~s>FromRztbody(R@R6RRHRRRS(R.RBRR9R((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_rfc2822_header_syntax	s	
cCs;|i}d}ti|}|t|iddS(Ns<>From foo@example.com 11:25:53
From: bar
!"#QUX;~: zoo

bodyi(R@R6RRHR(R.RBRR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt(test_rfc2822_space_not_allowed_in_header	s	cCsa|i}d}ti|}|i}|i||dddg||iddS(Ns7A: first header
B: second header
CC: third header

bodytAtBtCCR2(R@R6RRRRS(R.RBRR9theaders((s1/usr/local/lib/python2.5/email/test/test_email.pyt!test_rfc2822_one_character_header	s	
(R;R<R"R$R%R(R+R-R1R3R4R9(((s1/usr/local/lib/python2.5/email/test/test_email.pyR g	s					"			
	t
TestBase64cBs,eZdZdZdZdZRS(cCs|i}|tidttidddxtdD]}|djo
d}nc|djo
d}nL|djo
d	}n5|d
jo
d}n|djo
d}nd
}|tid||qAWdS(NRteolRiiiiiii	iiiR(R@Rt
base64_lenRHRR(R.RBtsizetbsize((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_len	s"	










cCsk|i}|tidd|tidd|tiddd|tiddddS(NRsaGVsbG8=RtXsaGVsbG8NCndvcmxk
thelloXworld(R@RRf(R.RB((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_decode
s
	cCs|i}|tidd|tidd|tidd|tiddd|tidd	d
dd|tidd	d
dd
dddS(NRRs	aGVsbG8=
shello
s	aGVsbG8K
is
aGVsbG8NCg==
sxxxx iRi(seHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IA==
R;s
seHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IA==
(R@RR(R.RB((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_encode
s	cCs|i}ti}||dd||dd||dddd||ddtd	||d
ddd
d||d
ddd
ddddS(NRs=?iso-8859-1?b?aGVsbG8=?=shello
worlds!=?iso-8859-1?b?aGVsbG8NCndvcmxk?=RDs
iso-8859-2s=?iso-8859-2?b?aGVsbG8=?=t	keep_eolss!=?iso-8859-1?b?aGVsbG8Kd29ybGQ=?=sxxxx iRi(s=?iso-8859-1?b?eHh4eCB4eHh4IHh4eHggeHg=?=
 =?iso-8859-1?b?eHggeHh4eCB4eHh4IHh4eHg=?=
 =?iso-8859-1?b?IHh4eHggeHh4eCB4eHh4IHg=?=
 =?iso-8859-1?b?eHh4IHh4eHggeHh4eCB4eHg=?=
 =?iso-8859-1?b?eCB4eHh4IHh4eHggeHh4eCA=?=
 =?iso-8859-1?b?eHh4eCB4eHh4IHh4eHgg?=R;s
s=?iso-8859-1?b?eHh4eCB4eHh4IHh4eHggeHg=?=
 =?iso-8859-1?b?eHggeHh4eCB4eHh4IHh4eHg=?=
 =?iso-8859-1?b?IHh4eHggeHh4eCB4eHh4IHg=?=
 =?iso-8859-1?b?eHh4IHh4eHggeHh4eCB4eHg=?=
 =?iso-8859-1?b?eCB4eHh4IHh4eHggeHh4eCA=?=
 =?iso-8859-1?b?eHh4eCB4eHh4IHh4eHgg?=(R@Rt
header_encodeRg(R.RBthe((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_header_encode#
s		(R;R<R?RBRCRG(((s1/usr/local/lib/python2.5/email/test/test_email.pyR:	s	
		t
TestQuopricBsYeZdZdZdZdZdZdZdZdZ	dZ
RS(	cCsg}ttdtddD]}|t|q$~g}ttdtddD]}|t|qa~g}ttdtddD]}|t|q~dd	d
ddd
g|_g}tdD]-}t||ijo|t|qq~|_g}ttd
tddD]}|t|qC~dg|_|iidg}tdD]-}t||ijo|t|qq~|_dS(NRtziR5tZt0t9t!t*R7R6t/Rit~s	t=(Rtordtchrthlitthnontblittremovetbnon(R.RURt_[2]t_[3]t_[4]t_[5]t_[6]((s1/usr/local/lib/python2.5/email/test/test_email.pyRA
sJJJcCsXx'|iD]}|iti|q
Wx'|iD]}|iti|q4WdS(N(RTRRtheader_quopri_checkRUR(R.tc((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_header_quopri_checkM
s

cCsXx'|iD]}|iti|q
Wx'|iD]}|iti|q4WdS(N(RVRRtbody_quopri_checkRXR(R.R_((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_body_quopri_checkS
s

c
Cs|i}ti}ti}x=d	D]5}|||t||dddddq"Wx$|iD]}|||dqeWx$|iD]}|||dqWdS(
NRs
h@e@l@l@o@RDRR;iii(shellos
h@e@l@l@o@(R@Rtheader_quopri_lenRERHRTRU(R.RBthqltencRvR_((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_header_quopri_lenY
s			3

cCsd|i}ti}x$|iD]}|||dqWx$|iD]}|||dqCWdS(Nii(R@Rtbody_quopri_lenRVRX(R.RBtbqlR_((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_body_quopri_lene
s		

cCsIxBtdD]4}t|}|ititi||q
WdS(Ni(RRSR@RRtquote(R.RR_((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_quote_unquote_idempotentm
s
cCs|i}ti}||dd||dd||dddd||ddtd	||d
d||dd
ddd||dd
ddddddS(NRs=?iso-8859-1?q?hello?=shello
worlds!=?iso-8859-1?q?hello=0D=0Aworld?=RDs
iso-8859-2s=?iso-8859-2?q?hello?=RDs=?iso-8859-1?q?hello=0Aworld?=shellotheres=?iso-8859-1?q?hello=C7there?=sxxxx iRi(s=?iso-8859-1?q?xxxx_xxxx_xxxx_xxxx_xx?=
 =?iso-8859-1?q?xx_xxxx_xxxx_xxxx_xxxx?=
 =?iso-8859-1?q?_xxxx_xxxx_xxxx_xxxx_x?=
 =?iso-8859-1?q?xxx_xxxx_xxxx_xxxx_xxx?=
 =?iso-8859-1?q?x_xxxx_xxxx_?=R;s
s=?iso-8859-1?q?xxxx_xxxx_xxxx_xxxx_xx?=
 =?iso-8859-1?q?xx_xxxx_xxxx_xxxx_xxxx?=
 =?iso-8859-1?q?_xxxx_xxxx_xxxx_xxxx_x?=
 =?iso-8859-1?q?xxx_xxxx_xxxx_xxxx_xxx?=
 =?iso-8859-1?q?x_xxxx_xxxx_?=(R@RRERg(R.RBRF((s1/usr/local/lib/python2.5/email/test/test_email.pyRGr
s		cCsk|i}|tidd|tidd|tiddd|tiddddS(NRRR@shello
worldRA(R@RRf(R.RB((s1/usr/local/lib/python2.5/email/test/test_email.pyRB
s
	cCs|i}|tidd|tidd|tidd|tiddd|tidddd	d
|tidddd	ddd
|tidddS(NRRshello
worldshello
worldisxxxx iRi(sjxxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx=
 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxx=
x xxxx xxxx xxxx xxxx=20R;s
slxxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx=
 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxx=
x xxxx xxxx xxxx xxxx=20sone line

two line(R@RR(R.RB((s1/usr/local/lib/python2.5/email/test/test_email.pyRC
s		(R;R<RR`RbRfRiRkRGRBRC(((s1/usr/local/lib/python2.5/email/test/test_email.pyRH@
s								tTestCharsetcBs,eZdZdZdZdZRS(cCs8ddkl}y|id=Wntj
onXdS(Ni(Rtfake(R6RtCHARSETSR(R.t
CharsetModule((s1/usr/local/lib/python2.5/email/test/test_email.pyttearDown
s
cCso|i}td}d}|i|}|||i|d}|i|}|||i|dS(Nsus-asciisHello World!s
(R@Rt
to_splittabletfrom_splittable(R.RBR_Rvtsp((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_idempotent
s	cCs|i}td}|d|idtd}|d|idtd}|d|idtd}y3|d	|id
|d
|id
tWntj
onXddkl}|id
|idtd
}|d|iddS(Ns
iso-8859-1s
hello w=F6rldshello wrldsutf-8saGVsbG8gd29ybGQ=
shello worldsus-asciiseuc-jps$B5FCO;~IW(Bsϻi(RRm(	R@Rtbody_encodeRtLookupErrorR6tadd_charsettQPRF(R.RBR_Ro((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_body_encode
s&	cCs<td}|it|d|ititddS(Nuus-asciisus-asciisascii(RR@R'RaRtCharsetError(R.RD((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_unicode_charset_name
s(R;R<RpRtRyR{(((s1/usr/local/lib/python2.5/email/test/test_email.pyRl
s			t
TestHeadercBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZRS(cCsL|i}td}||id|id||iddS(NsHello World!s Goodbye World!sHello World!  Goodbye World!(R5RRR(R.RBR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_simple
s
	
cCsL|i}td}||id|id||iddS(NsHello World!sGoodbye World!sHello World! Goodbye World!(R5RRR(R.RBR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_simple_surprise
s
	
cCs)d}|it||dfgdS(Nsno decoding needed(R@RRF(R.R((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_header_needs_no_decoding
scCsUtddd}x<|iddidD]}|it|djq.WdS(NsI am the very model of a modern Major-General; I've information vegetable, animal, and mineral; I know the kings of England, and I quote the fights historical from Marathon to Waterloo, in order categorical; I'm very well acquainted, too, with matters mathematical; I understand equations, both the simple and quadratical; about binomial theorem I'm teeming with a lot o' news, with many cheerful facts about the square of the hypotenuse.RiLt
splitcharsRs
 (RRRRRH(R.Rtl((s1/usr/local/lib/python2.5/email/test/test_email.pyt	test_long
s
		cCs|i}td}td}td}d}d}did}t||}|i|||i|||i}	||	d|t|	|df|df|dfgt|}
||
iddtt|	}|||	dS(	Ns
iso-8859-1s
iso-8859-2sutf-8sDie Mieter treten hier ein werden mit einem Foerderband komfortabel den Korridor entlang, an sdlndischen Wandgemlden vorbei, gegen die rotierenden Klingen befrdert. s;Finanni metropole se hroutily pod tlakem jejich dvtipu.. u正確に言うと翻訳はされていません。一部はドイツ語ですが、あとはでたらめです。実際には「Wenn ist das Nunstuck git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput.」と言っています。s=?iso-8859-1?q?Die_Mieter_treten_hier_ein_werden_mit_einem_Foerderband_ko?=
 =?iso-8859-1?q?mfortabel_den_Korridor_entlang=2C_an_s=FCdl=FCndischen_Wan?=
 =?iso-8859-1?q?dgem=E4lden_vorbei=2C_gegen_die_rotierenden_Klingen_bef=F6?=
 =?iso-8859-1?q?rdert=2E_?= =?iso-8859-2?q?Finan=E8ni_metropole_se_hroutily?=
 =?iso-8859-2?q?_pod_tlakem_jejich_d=F9vtipu=2E=2E_?= =?utf-8?b?5q2j56K6?=
 =?utf-8?b?44Gr6KiA44GG44Go57+76Kiz44Gv44GV44KM44Gm44GE44G+44Gb44KT44CC?=
 =?utf-8?b?5LiA6YOo44Gv44OJ44Kk44OE6Kqe44Gn44GZ44GM44CB44GC44Go44Gv44Gn?=
 =?utf-8?b?44Gf44KJ44KB44Gn44GZ44CC5a6f6Zqb44Gr44Gv44CMV2VubiBpc3QgZGFz?=
 =?utf-8?q?_Nunstuck_git_und_Slotermeyer=3F_Ja!_Beiherhund_das_Oder_die_Fl?=
 =?utf-8?b?aXBwZXJ3YWxkdCBnZXJzcHV0LuOAjeOBqOiogOOBo+OBpuOBhOOBvuOBmQ==?=
 =?utf-8?b?44CC?=sDie Mieter treten hier ein werden mit einem Foerderband komfortabel den Korridor entlang, an südlündischen Wandgemälden vorbei, gegen die rotierenden Klingen befördert. Finančni metropole se hroutily pod tlakem jejich důvtipu.. 正確に言うと翻訳はされていません。一部はドイツ語ですが、あとはでたらめです。実際には「Wenn ist das Nunstuck git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput.」と言っています。(R5RRRRRR~R(R.RBRwRRRRRRRetustrtnewh((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_multilinguals*	cCsF|i}t}||d|idtd||ddS(NRRks
iso-8859-1s=?iso-8859-1?q?foo?=(R5RRR(R.RBR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_header_ctor_default_args3s
		
cCs|i}d}t|}||idt|dd}||idt|dddd}||i|dS(Ns|A very long line that must get split to something other than at the 76th character boundary to test the non-default behaviors}A very long line that must get split to something other than at the 76th
 character boundary to test the non-default behaviorRRs}A very long line that must get split to something other than at the
 76th character boundary to test the non-default behaviorRi(R5RR(R.RBRR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_explicit_maxlinelen:s	cCsN|i}d}t|}||dgt|}|||idS(NR(shelloN(R@RRFRR(R.RBRvRR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_us_ascii_headerHs	cCs3|i}t}|idd||ddS(NRs
iso-8859-1s=?iso-8859-1?q?hello?=(R@RR(R.RBR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_string_charsetPs		cCsQ|i}tdd}||idtdd}||iddS(Nupöstalsutf-8s=?utf-8?q?p=C3=B6stal?=u菊地時夫s=?utf-8?b?6I+K5Zyw5pmC5aSr?=(R@RR(R.RBR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_utf8_shortest_s
	cCs|i}|i}d}|tt|t}|t|i||tt|dd||i|dd|t||dS(Ns0Ynwp4dUEbay Auction Semiar- No Charge  Earn BigRtreplace(RaR@tUnicodeErrorRRR'(R.RJRBRR((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_bad_8bit_headerfs			cCsq|i}t}|idd|id|i}||dtt|}||i|dS(NRs
iso-8859-1tworlds=?iso-8859-1?q?hello?= world(R@RRRRR(R.RBRRv((s1/usr/local/lib/python2.5/email/test/test_email.pyt test_encoded_adjacent_nonencodedqs		

cCsT|i}d}t|}||ddd	gt|}||iddS(
NsGSubject: =?koi8-r?b?8NLP18XSy8EgzsEgxsnOwczYztk=?= =?koi8-r?q?=CA?= zz.sSubject:s  skoi8-rszz.s6Subject: =?koi8-r?b?8NLP18XSy8EgzsEgxsnOwczYztnK?= zz.(sSubject:N(s  skoi8-r(szz.N(R@RRFRR(R.RBRvtpartsthdr((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_whitespace_eater{s	cCs&|i}d}|tit|dS(NsXSubject: =?EUC-KR?B?CSixpLDtKSC/7Liuvsax4iC6uLmwMcijIKHaILzSwd/H0SC8+LCjwLsgv7W/+Mj3IQ?=(RaRRbR(R.RJRv((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_broken_base64_headers	(R;R<R}R~RRRRRRRRRRRR(((s1/usr/local/lib/python2.5/email/test/test_email.pyR|
s					1							
		tTestRFC2231cBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZRS(cCsN|i}|id}||idd||iddtd	dS(
Ns
msg_29.txtttitlesus-asciitens%This is even more ***fun*** isn't it!Rs'"This is even more ***fun*** isn't it!"(sus-asciiRs%This is even more ***fun*** isn't it!(sus-asciiRs'"This is even more ***fun*** isn't it!"(R@R:RIR(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyRs	cCs|i}t}|idddd||idd
|idddddd||idd|id}|idddddd||id	dS(NRs%This is even more ***fun*** isn't it!RDsus-asciiRtlanguageRs
msg_01.txts$Return-Path: <bbb@zzz.org>
Delivered-To: bbb@zzz.org
Received: by mail.zzz.org (Postfix, from userid 889)
	id 27CEAD38CC; Fri,  4 May 2001 14:05:44 -0400 (EDT)
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Message-ID: <15090.61304.110929.45684@aaa.zzz.org>
From: bbb@ddd.com (John X. Doe)
To: bbb@zzz.org
Subject: This is a test message
Date: Fri, 4 May 2001 14:05:44 -0400
Content-Type: text/plain; charset=us-ascii;
	title*="us-ascii'en'This%20is%20even%20more%20%2A%2A%2Afun%2A%2A%2A%20isn%27t%20it%21"


Hi,

Do you like this message?

-Me
(sus-asciiRs%This is even more ***fun*** isn't it!(sus-asciisens%This is even more ***fun*** isn't it!(R@R	RRIR:R(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyRs		

cCsz|i}|id}|idddddd|idd	dddd|idd
d||iddS(
Ns
msg_01.txtRkRRDsus-asciiRRRs%This is even more ***fun*** isn't it!RcsContent-Types&Return-Path: <bbb@zzz.org>
Delivered-To: bbb@zzz.org
Received: by mail.zzz.org (Postfix, from userid 889)
	id 27CEAD38CC; Fri,  4 May 2001 14:05:44 -0400 (EDT)
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Message-ID: <15090.61304.110929.45684@aaa.zzz.org>
From: bbb@ddd.com (John X. Doe)
To: bbb@zzz.org
Subject: This is a test message
Date: Fri, 4 May 2001 14:05:44 -0400
Content-Type: text/plain; charset="us-ascii";
	title*="us-ascii'en'This%20is%20even%20more%20%2A%2A%2Afun%2A%2A%2A%20isn%27t%20it%21"


Hi,

Do you like this message?

-Me
(R5R:RRR(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyRs	
cCs/|i}|id}||iddS(Ns
msg_32.txtsus-ascii(R@R:R(R.RBR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt test_rfc2231_get_content_charsets	cCsNd}ti|}|id}|it|t|i|ddS(NsContent-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="file____C__DOCUMENTS_20AND_20SETTINGS_FABIEN_LOCAL_20SETTINGS_TEMP_nsmail.htm"
Content-Type: text/html; NAME*0=file____C__DOCUMENTS_20AND_20SETTINGS_FABIEN_LOCAL_20SETTINGS_TEM; NAME*1=P_nsmail.htm

tNAMEsMfile____C__DOCUMENTS_20AND_20SETTINGS_FABIEN_LOCAL_20SETTINGS_TEMP_nsmail.htm(R6RRIRRjttupleR@(R.RR9tparam((s1/usr/local/lib/python2.5/email/test/test_email.pyt#test_rfc2231_no_language_or_charsetscCs/d}ti|}|i|iddS(NsContent-Disposition: inline;
	filename*0*="''This%20is%20even%20more%20";
	filename*1*="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2="is it not.pdf"

s)This is even more ***fun*** is it not.pdf(R6RR@RT(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt/test_rfc2231_no_language_or_charset_in_filenamescCs/d}ti|}|i|iddS(NsContent-Disposition: inline;
	filename*0*="''This%20is%20even%20more%20";
	filename*1*="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2="is it not.pdf"

s)This is even more ***fun*** is it not.pdf(R6RR@RT(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt7test_rfc2231_no_language_or_charset_in_filename_encodedscCs/d}ti|}|i|iddS(NsContent-Disposition: inline;
	filename*0="''This%20is%20even%20more%20";
	filename*1*="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2="is it not.pdf"

s1This%20is%20even%20more%20***fun*** is it not.pdf(R6RR@RT(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_rfc2231_partly_encodeds
	cCs/d}ti|}|i|iddS(NsContent-Disposition: inline;
	filename*0="This%20is%20even%20more%20";
	filename*1="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2="is it not.pdf"

s?This%20is%20even%20more%20%2A%2A%2Afun%2A%2A%2A%20is it not.pdf(R6RR@RT(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_rfc2231_partly_nonencodeds
	cCs/d}ti|}|i|iddS(NsContent-Type: multipart/alternative;
	boundary*0*="''This%20is%20even%20more%20";
	boundary*1*="%2A%2A%2Afun%2A%2A%2A%20";
	boundary*2="is it not.pdf"

s)This is even more ***fun*** is it not.pdf(R6RR@R\(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt/test_rfc2231_no_language_or_charset_in_boundaryscCs/d}ti|}|i|iddS(NsContent-Type: text/plain;
	charset*0*="This%20is%20even%20more%20";
	charset*1*="%2A%2A%2Afun%2A%2A%2A%20";
	charset*2="is it not.pdf"

s)this is even more ***fun*** is it not.pdf(R6RR@R(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt.test_rfc2231_no_language_or_charset_in_charset)scCs/d}ti|}|i|iddS(NsContent-Disposition: inline;
	filename*0*="bogus'xx'This%20is%20even%20more%20";
	filename*1*="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2="is it not.pdf"

s)This is even more ***fun*** is it not.pdf(R6RR@RT(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt%test_rfc2231_bad_encoding_in_filename6scCs/d}ti|}|i|iddS(Ns:Content-Type: text/plain; charset*=bogus''utf-8%E2%80%9D

(R6RR@RRF(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt$test_rfc2231_bad_encoding_in_charsetBscCs/d}ti|}|i|iddS(Ns:Content-Type: text/plain; charset*=ascii''utf-8%E2%80%9D

(R6RR@RRF(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt%test_rfc2231_bad_character_in_charsetLscCs/d}ti|}|i|iddS(NsContent-Disposition: inline;
	filename*0*="ascii'xx'This%20is%20even%20more%20";
	filename*1*="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2*="is it not.pdf%E2"

u,This is even more ***fun*** is it not.pdf�(R6RR@RT(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyt&test_rfc2231_bad_character_in_filenameVscCs/d}ti|}|i|iddS(Ns^Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename*=X-UNKNOWN''myfile.txt

s
myfile.txt(R6RR@RT(R.RR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_rfc2231_unknown_encodingbscCsa|i}d}ti|}|id\}}}||d||d||ddS(NsJContent-Type: application/x-foo;
	name*0*="Frank's"; name*1*=" Document"

RsFrank's Document(R@R6RRIRF(R.RBRR9RDRRv((s1/usr/local/lib/python2.5/email/test/test_email.pyt-test_rfc2231_single_tick_in_filename_extendedks	

cCsNd}ti|}|id}|it|t|i|ddS(NsGContent-Type: application/x-foo; name*0="Frank's"; name*1=" Document"

RsFrank's Document(R6RRIRRjRR@(R.RR9R((s1/usr/local/lib/python2.5/email/test/test_email.pyt$test_rfc2231_single_tick_in_filenamexs
cCsa|i}d}ti|}|id\}}}||d||d||ddS(NsYContent-Type: application/x-foo;
	name*0*="us-ascii'en-us'Frank's"; name*1*=" Document"

Rsus-asciisen-ussFrank's Document(R@R6RRI(R.RBRR9RDRRv((s1/usr/local/lib/python2.5/email/test/test_email.pyt!test_rfc2231_tick_attack_extendeds	

cCsNd}ti|}|id}|it|t|i|ddS(NsWContent-Type: application/x-foo;
	name*0="us-ascii'en-us'Frank's"; name*1=" Document"

Rsus-ascii'en-us'Frank's Document(R6RRIRRjRR@(R.RR9R((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_rfc2231_tick_attacks
cCs8|i}d}ti|}||idddS(Ns:Content-Type: application/x-foo; name="Frank's Document"

RsFrank's Document(R@R6RRI(R.RBRR9((s1/usr/local/lib/python2.5/email/test/test_email.pyttest_rfc2231_no_extended_valuess	cCsa|i}d}ti|}|id\}}}||d||d||ddS(NsiContent-Type: application/x-foo;
	name*0*="us-ascii'en-us'My";
	name*1=" Document";
	name*2*=" For You"

Rsus-asciisen-ussMy Document For You(R@R6RRI(R.RBRR9RDRRv((s1/usr/local/lib/python2.5/email/test/test_email.pyt,test_rfc2231_encoded_then_unencoded_segmentss	

cCsa|i}d}ti|}|id\}}}||d||d||ddS(NsiContent-Type: application/x-foo;
	name*0="us-ascii'en-us'My";
	name*1*=" Document";
	name*2*=" For You"

Rsus-asciisen-ussMy Document For You(R@R6RRI(R.RBRR9RDRRv((s1/usr/local/lib/python2.5/email/test/test_email.pyt,test_rfc2231_unencoded_then_encoded_segmentss	

(R;R<RRRRRRRRRRRRRRRRRRRRRRR(((s1/usr/local/lib/python2.5/email/test/test_email.pyRs.		%						
	
		
		
	
				
	
	
				cCsOtit}g}t|D]*}|ido|t||qq~S(NR(RntmodulesR;tdirRtgetattr(tmodRUR((s1/usr/local/lib/python2.5/email/test/test_email.pyt_testclassess
cCs:ti}x'tD]}|iti|qW|S(N(tunittestt	TestSuiteRtaddTestt	makeSuite(tsuitet	testclass((s1/usr/local/lib/python2.5/email/test/test_email.pyRs

cCs"xtD]}t|q
WdS(N(RR(R((s1/usr/local/lib/python2.5/email/test/test_email.pyt	test_mains
t__main__tdefaultTestR(ORRnR:RR(Rtwarningst	cStringIORR6t
email.CharsetRtemail.HeaderRRRtemail.ParserRRtemail.GeneratorRRt
email.MessageR	temail.MIMEAudioR
temail.MIMETextRtemail.MIMEImageRtemail.MIMEBaseR
temail.MIMEMessageRtemail.MIMEMultipartRRRRRRRttest.test_supportRRt
email.testRR!R+RRR%tTestCaseR&R=RRRRR)R-R3RfR{RRRRR R:RHRlR|RRRRR;tmain(((s1/usr/local/lib/python2.5/email/test/test_email.pys<module>s~B"1+|s/;E;Ho:8			


Man Man