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_renamed.pyc

hRc @s1ddkZddkZddkZddkZddkZddkZddkZddklZddk	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+ddk,l-Z-l.Z.ddk/l0Z1dZ2dZ3dZ4ddZ5dei6fdYZ7de7fdYZ8d ei6fd!YZ9d"e7fd#YZ:d$ei6fd%YZ;d&ei6fd'YZ<d(ei6fd)YZ=d*ei6fd+YZ>d,ei6fd-YZ?d.e7fd/YZ@d0e7fd1YZAd2ei6fd3YZBd4e7fd5YZCd6e7fd7YZDd8e7fd9YZEd:e7fd;YZFd<e7fd=YZGd>ei6fd?YZHd@ei6fdAYZIdBei6fdCYZJdDe7fdEYZKdFe7fdGYZLdHZMdIZNdJZOePdKjoeiQdLdMndS(NiN(tStringIO(tCharset(tHeadert
decode_headertmake_header(tParsertHeaderParser(t	GeneratortDecodedGenerator(tMessage(tMIMEApplication(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((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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
splitlinesRtNLR tfailureExceptiontgetvalue(tselftfirsttsecondtsfirsttssecondtdifftfp((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pytndiffAssertEqual5s
	cCs7tt|}zti|}Wd|iX|S(N(R&Rtemailtmessage_from_filetclose(R/R$R5tmsg((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt_msgobj?s
(t__name__t
__module__R6R;(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyR'4s	
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/Z1d0Z2d1Z3d2Z4RS(3cCsT|i}|id}||iddddg||iddddS(Ns
msg_20.txttccsccc@zzz.orgsddd@zzz.orgseee@zzz.orgtxxsn/a(tassertEqualR;tget_all(R/teqR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_get_allKs	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"(	RAR	tget_charsettNoneRtset_charsettget_content_typet	get_paramt
input_charset(R/RCR:RE((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_getset_charsetQs,		

	



cCsJ|i}t}|id||iid||dddS(Nsus-asciiscontent-typestext/plain; charset="us-ascii"(RAR	RHRFRK(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_set_charset_from_stringks
		
cCsBt}td}|id||i|iiddS(Ns
iso-8859-1sThis is a string payload(R	Rtset_payloadRARFRK(R/R:RE((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_set_payload_with_charsetrs	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(RAR;tget_charsetsRG(R/RCR:tcharsets((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_get_charsetsxs	
cCs|i}|id}g}|iD]}||iq)~}||ddg|id}|id}||iddS(Ns
msg_04.txtsmsg.txts
msg_07.txtisdingusfish.gif(RAR;tget_payloadtget_filename(R/RCR:t_[1]tpt	filenamestsubpart((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_get_filenames	-cCs\|i}|id}g}|iD]}||iq)~}||ddgdS(Ns
msg_44.txtsmsg.txt(RAR;RTRU(R/RCR:RVRWRX((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt%test_get_filename_with_name_parameters	-cCs/|i}|id}||iddS(Ns
msg_07.txttBOUNDARY(RAR;tget_boundary(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAR;tset_boundarytitemstlowertassertRaisesRtHeaderParseError(R/RCR:theadertvalue((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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.
(RAR;RTtTrueRG(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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-encodingRgshello worldtfoo(s
x-uuencodeRjRksx-uue(RAR	RNRTRh(R/RCR:tcte((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_get_decoded_uu_payloads		


cCs{|i}|id}td}z|i}Wd|iXt}t|}|i|||i|dS(Ns
msg_07.txts
msg_17.txt(	RAR;R&treadR9RRtflattenR.(R/RCR:R5ttexttstg((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAR;R&RoR9t	as_stringR(tsplitR}t
startswithR,R (R/RCR:R5Rqtfullreprtlines((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_as_strings	cCs,tid}|i|idddS(NsContent-Type: blarg; baz; boo
tbazR(R7tmessage_from_stringRARJ(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_bad_paramscCs)tid}|i|iddS(Ns
From: foo
(R7RRARURG(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_missing_filenamescCs)tid}|i|iddS(Ns%Content-Disposition: blarg; filename
R(R7RRARU(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_bogus_filenames	cCs)tid}|i|iddS(Ns
From: foo
(R7RRAR]RG(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_missing_boundaryscCs|i}tid}||iddd
ddgtid
}||idddddg||idtid}||idddddgdS(Ns&X-Header: foo=one; bar=two; baz=three
Rdsx-headerRltonetbarttwoRtthrees X-Header: foo; bar=one; baz=two
Rs"X-Header: foo; bar="one"; baz=two
(sfooR(RR(sbazR(sfooR(RR(sbazR(sfooR(RR(sbazR(RAR7Rt
get_paramsRG(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_get_paramss				cCs0t}d|d<|i|idddS(Ns>Content-Type: Multipart/mixed; boundary = "CPIMSSMTPC06p5f3tG"sContent-TypetboundarytCPIMSSMTPC06p5f3tG(R	RARJ(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_get_param_liberals	
cCs|i}tid}||idddd||idddd||iddtid}||idddd	||idddd
||idddddS(Ns&X-Header: foo=one; bar=two; baz=three
RRdsx-headerRtquuzs"X-Header: foo; bar="one"; baz=two
RlRRR(RAR7RRJRG(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_get_param!s			cCs5|id}|i|ididddS(Ns
msg_22.txtitnames
wibble.JPG(R;RARTRJ(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt'test_get_param_funky_continuation_lines2scCsKtid}|i|idd|i|iddtddS(Ns4Content-Type: image/pjpeg; name="Jim&amp;&amp;Jill"
RsJim&amp;&amp;Jilltunquotes"Jim&amp;&amp;Jill"(R7RRARJtFalse(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt#test_get_param_with_semis_in_quotes6s
	cCsktid}|i|id|i|id|i|id|i|iddS(NsHeader: existsRdRtHEADERtheaderi(R7RR}thas_keytfailIf(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_has_key=s
cCs|i}t}|idd||idd|idd||idd||iddtd||id
ddg||idtdddg|idd
dd||idddd
dS(NREsiso-2022-jpt
importances
high valueRs"high value"s
text/plainRs
"iso-2022-jp"siso-9999-xxRdsX-Jimmy(s
text/plainR(scharsetsiso-2022-jp(Rs
high value(s
text/plainR(scharsets
"iso-2022-jp"(Rs"high value"(RAR	t	set_paramRJRR(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_set_paramDs		

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(RAR;RRJt	del_paramR(R/RCR:told_val((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_del_paramUs	


cCsGt}|idddd|idd|i|dddS(NsContent-Dispositiont
attachmentR$sbud.gifscontent-disposition(R	t
add_headerRRA(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_del_param_on_other_headerfs	cCs|i}t}|it|id|id||dd|idd||dd|id||dddS(	NRqs
text/plainscontent-typeREsus-asciistext/plain; charset="us-ascii"s	text/htmlstext/html; charset="us-ascii"(RAR	Rbt
ValueErrortset_typeR(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt
test_set_typels		

cCs;t}d|d<|idd|i|dddS(Ns
text/plainsX-Content-Typesapplication/octet-streamsx-content-type(R	RRA(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_set_type_on_other_headerws	
cCs#t}|i|iddS(Ns
text/plain(R	RARI(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_get_content_type_missing}s	cCs0t}|id|i|iddS(Nsmessage/rfc822(R	tset_default_typeRARI(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt/test_get_content_type_missing_with_default_types	
cCs2|id}|i|ididdS(Ns
msg_30.txtismessage/rfc822(R;RARTRI(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt+test_get_content_type_from_message_implicitscCs2|id}|i|ididdS(Ns
msg_28.txtismessage/rfc822(R;RARTRI(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt+test_get_content_type_from_message_explicitscCs)|id}|i|iddS(Ns
msg_03.txts
text/plain(R;RARI(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt6test_get_content_type_from_message_text_plain_implicitscCs)|id}|i|iddS(Ns
msg_01.txts
text/plain(R;RARI(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt6test_get_content_type_from_message_text_plain_explicitscCs#t}|i|iddS(NRq(R	RAtget_content_maintype(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt!test_get_content_maintype_missings	cCs0t}|id|i|iddS(Nsmessage/rfc822tmessage(R	RRAR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt3test_get_content_maintype_missing_with_default_types	
cCs2|id}|i|ididdS(Ns
msg_30.txtiR(R;RARTR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt/test_get_content_maintype_from_message_implicitscCs2|id}|i|ididdS(Ns
msg_28.txtiR(R;RARTR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt/test_get_content_maintype_from_message_explicitscCs)|id}|i|iddS(Ns
msg_03.txtRq(R;RAR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt:test_get_content_maintype_from_message_text_plain_implicitscCs)|id}|i|iddS(Ns
msg_01.txtRq(R;RAR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt:test_get_content_maintype_from_message_text_plain_explicitscCs#t}|i|iddS(Ntplain(R	RAtget_content_subtype(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt test_get_content_subtype_missings	cCs0t}|id|i|iddS(Nsmessage/rfc822trfc822(R	RRAR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt2test_get_content_subtype_missing_with_default_types	
cCs2|id}|i|ididdS(Ns
msg_30.txtiR(R;RARTR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt.test_get_content_subtype_from_message_implicitscCs2|id}|i|ididdS(Ns
msg_28.txtiR(R;RARTR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt.test_get_content_subtype_from_message_explicitscCs)|id}|i|iddS(Ns
msg_03.txtR(R;RAR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt9test_get_content_subtype_from_message_text_plain_implicitscCs)|id}|i|iddS(Ns
msg_01.txtR(R;RAR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt9test_get_content_subtype_from_message_text_plain_explicitscCs-t}d|d<|i|iddS(Nsno-slash-in-this-stringsContent-TypeRq(R	RAR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_get_content_maintype_errors	
cCs-t}d|d<|i|iddS(Nsno-slash-in-this-stringsContent-TypeR(R	RAR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAR	Rtkeystvaluestreplace_headerRbtKeyError(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_replace_headers		cCsPd}t}d|d<d|d<|i||i|idt|dS(NsAwDp0P7//y6LwKEAcPa/6Q=9saudio/x-midiscontent-typetbase64scontent-transfer-encodingRg(R	RNRARTRh(R/txR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_broken_base64_payloads	


(5R<R=RDRLRMRORSRZR[R^RfRiRnRtR~RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyR>Jsf												
																																						tTestEncoderscBs#eZdZdZdZRS(cCs4|i}t}|id||dddS(Nsus-asciiscontent-transfer-encodingt7bit(RAR	RH(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_encode_empty_payloads		
cCs*|i}td}||dddS(Nshello worldscontent-transfer-encodingR(RAR(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_default_ctes	cCsj|i}td}||ddtd}||ddtddd}||dddS(	Nshello worldscontent-transfer-encodingRs
hello  worldt8bitt_charsets
iso-8859-1squoted-printable(RAR(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRs	(R<R=RR(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRs		tTestLongHeaderscBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZRS(cCsQ|i}tid}t}t|}|i|||iddS(NsSubject: bug demonstration
	12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789
	more text

test
(R6R7RRRRpR.(R/RCR:tsfpRs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_split_long_continuations			
cCsW|i}d}t|dd}||idt|}||iddS(Nsbug demonstration
	12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789
	more texttcontinuation_wss	sbug demonstration
 12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789
 more text(R6Rtencode(R/RCthstrth((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt,test_another_long_almost_unsplittable_header s	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?=(
R6RRRtappendR	RRRpR.(R/RCRstcztutf8tg_headtcz_headt	utf8_headRR:R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_long_nonstring1s&		
	

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"(R6RR(R/RCR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_long_header_encode\s
			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"(R6RR(R/RCR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt-test_long_header_encode_with_tab_continuationes			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"

(R6RRRRpR.(R/RCR:RRs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_header_splitteros	
	
cCs|i}t}d|d<tig}tdD]}|d|q3~|d<|idt}t|}|i|||i	ddS(Nstest@dom.ainRvi
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(
R6R	tSPACER trangeRNRRRpR.(R/RCR:RVtiRRs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_no_semis_header_splitters		
8
	
cCs@|i}ddd}t|dd}||iddS(NsReferences: RiPRs	s\References: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(R6RR(R/RCRR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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)(R6RR(R/RCRR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(R6RR(R/RCRR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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?=

(R6R	RRR(R/RCR:R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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>

(R6R	R(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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>R{isTo: "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>

(R6R	R(R/RCRxR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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.(R6RRR(R/RCRrR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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?)(R6RRR(R/RCRrR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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_?=(R6RR(R/RCtfntgsR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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	RRAR(R/RR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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	RRAR(R/RR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_string_headerinst_eqs	

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

(R6R	RR(R/RCR:tt((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt-test_long_unbreakable_lines_with_continuations		
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

(R6R7RR(R/RCtmR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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>

(R6R	RR(R/RCRR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt%test_long_lines_with_different_header9s		
(R<R=RRRRRRRRRRRRRRRRRRR	RR
(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRs*			+			
						
			
								tTestFromManglingcBs#eZdZdZdZRS(cCs-t|_d|id<|iiddS(Nsaaa@bbb.orgRvs(From the desk of A.A.A.:
Blah blah blah
(R	R:RN(R/((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pytsetUpMs
	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
(RRRhRpR:RAR.(R/RrRs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_mangled_fromUs
	cCsEt}t|dt}|i|i|i|iddS(NRs;From: aaa@bbb.org

From the desk of A.A.A.:
Blah blah blah
(RRRRpR:RAR.(R/RrRs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_dont_mangle_from`s
	(R<R=RRR(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRLs		t
TestMIMEAudiocBs5eZdZdZdZdZdZRS(cCsstiitiitdd}ttd|d}z|i|_Wd|i	Xt
|i|_dS(NRRsaudiotest.autrb(RRR R!R"R#RRot
_audiodataR9Rt_au(R/tdatadirR5((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRos$cCs|i|iiddS(Nsaudio/basic(RARRI(R/((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_guess_minor_type}scCs/|ii}|iti||idS(N(RRTRARtdecodestringR(R/tpayload((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt
test_encodingscCs,t|id}|i|iddS(Ntfishs
audio/fish(RRRARI(R/tau((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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"RdRRltfailobjtfoobar(s
attachmentR(R$saudiotest.au(RAR}RRRRJ(R/RCtunlesstmissing((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_add_headers"		

(R<R=RRRRR#(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRns
				t
TestMIMEImagecBs5eZdZdZdZdZdZRS(cCsCtd}z|i|_Wd|iXt|i|_dS(NsPyBanner048.gif(R&Rot_imgdataR9R
t_im(R/R5((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRs
cCs|i|iiddS(Ns	image/gif(RAR&RI(R/((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRscCs/|ii}|iti||idS(N(R&RTRARRR%(R/R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRscCs,t|id}|i|iddS(NRs
image/fish(R
R%RARI(R/tim((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRscCs|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"RdRRlRR (s
attachmentR(R$sdingusfish.gif(RAR}R&RRRJ(R/RCR!R"((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyR#s"		

(R<R=RRRRR#(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyR$s
				tTestMIMEApplicationcBseZdZdZRS(cCs=|i}td}||id||dddS(Nssapplication/octet-streamscontent-transfer-encodingR(RAR
RI(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_headerss	cCsK|i}d}t|}||id||idt|dS(Nss+vv8/f7/Rg(RAR
RTRh(R/RCtbytesR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt	test_bodys
	(R<R=R)R+(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyR(s	tTestMIMETextcBs,eZdZdZdZdZRS(cCstd|_dS(Nshello there(Rt_msg(R/((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRscCs|i}|i}||iid||iiddg}||iid||j||iid|dd|jdS(Ns
text/plainREsus-asciiR Rd(RAR}R-RIRJ(R/RCR!R"((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt
test_typess		cCs4|i|iid|i|iidS(Nshello there(RAR-RTR}tis_multipart(R/((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_payloadscCsF|i}tddd}||iid||dddS(Nshello thereRsus-asciiscontent-typestext/plain; charset="us-ascii"(RARRFRK(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_charsets	(R<R=RR.R0R1(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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>Rvs)Dingus Lovers <cravindogs@cravindogs.com>R{sHere is your dingus fishRg4FcpAiit-t+s %s%04di$s%a, %d %b %Y %H:%M:%StDate(R&RoR9RR
RRtattachttimet	localtimettimezonetaltzonetstrftimeR-R&t_txt(R/R5Rt	containertimagetintrotnowt	timetuplettzsecstsignttzoffset((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAR}RbR-R/RItlenRTt
IndexErrorR>R&(R/RCR!traisesR
tm0tm1((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_hierarchys				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--
(RtparsestrR6R(R/RqR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_empty_multipart_idempotent2s
cCsTtdd}d|d<d|d<d|d<|id	|i|id
dS(NR3R4s	A subjectRsaperson@dom.ainR{sbperson@dom.ainRvR\sContent-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY

--BOUNDARY--(RR_R6R(R/touter((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt/test_no_parts_in_a_multipart_with_none_epilogueCs



	cCsftdd}d|d<d|d<d|d<d	|_d	|_|id
|i|iddS(NR3R4s	A subjectRsaperson@dom.ainR{sbperson@dom.ainRvRR\sContent-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain


--BOUNDARY

--BOUNDARY--
(RtpreambletepilogueR_R6R(R/RO((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt0test_no_parts_in_a_multipart_with_empty_epilogueTs


		
cCss|i}tdd}d|d<d|d<d|d<|id	td
}|i|||iddS(NR3R4s	A subjectRsaperson@dom.ainR{sbperson@dom.ainRvR\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--(R6RR_RR8R(R/RCROR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_one_part_in_a_multipartis	





cCs||i}tdd}d|d<d|d<d|d<d	|_td
}|i||id||iddS(
NR3R4s	A subjectRsaperson@dom.ainR{sbperson@dom.ainRvRshello 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--(R6RRQRR8R_R(R/RCROR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt1test_seq_parts_in_a_multipart_with_empty_preambles	


	

cCs||i}tdd}d|d<d|d<d|d<d|_td	}|i||id
||iddS(NR3R4s	A subjectRsaperson@dom.ainR{sbperson@dom.ainRvshello 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--(R6RRGRQRR8R_R(R/RCROR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt0test_seq_parts_in_a_multipart_with_none_preambles	


	


cCs||i}tdd}d|d<d|d<d|d<d|_td	}|i||id
||iddS(NR3R4s	A subjectRsaperson@dom.ainR{sbperson@dom.ainRvshello 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--(R6RRGRRRR8R_R(R/RCROR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt0test_seq_parts_in_a_multipart_with_none_epilogues	


	


cCs||i}tdd}d|d<d|d<d|d<d	|_td
}|i||id||iddS(
NR3R4s	A subjectRsaperson@dom.ainR{sbperson@dom.ainRvRshello 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--
(R6RRRRR8R_R(R/RCROR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt1test_seq_parts_in_a_multipart_with_empty_epilogues	


	

cCs||i}tdd}d|d<d|d<d|d<d	|_td
}|i||id||iddS(
NR3R4s	A subjectRsaperson@dom.ainR{sbperson@dom.ainRvs
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--

(R6RRRRR8R_R(R/RCROR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAR;RGRTRI(R/RCR:tmsg1RYt
subsubpart((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_message_external_bodys	
cCs/|id}|it|iddS(Ns
msg_37.txti(R;RARGRT(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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
(R6R;RRt
_structureR.(R/RCR:R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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
(R6R;RRR^R.(R/RCR:R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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;RAR(R/R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAR7RR}R/R]RGRT(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt test_boundary_with_leading_spaceMs		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==(RRMtassertEqualsRT(R/R
((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt&test_boundary_without_trailing_newline`s	
	(R<R=RRLRNRPRSRTRURVRWRXRYR\R]R_R`RaRbRd(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyR2s$	(											
					tTestNonConformantcBsYeZdZdZdZdZdZdZdZdZ	dZ
RS(	cCsU|i}|id}||id||id||iddS(Ns
msg_14.txts
text/plainRqR(RAR;RIRR(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_parse_missing_minor_typers
	cCst|i}|id}|id}|t|d|it|id|t|idti	dS(Ns
msg_15.txtitdefectsi(
R}R;RTthasattrRARGRgt
isinstanceRtStartBoundaryNotFoundDefect(R/R!R:tinner((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_same_boundary_inner_outerys	cCs|i}|id}|t|it|it|id|t|idti	|t|idti
dS(Ns
msg_25.txtiii(R}R;RiRTR(RARGRgRtNoBoundaryInMultipartDefectt!MultipartInvariantViolationDefect(R/R!R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_multipart_no_boundarys	cCs|i}|i}t}d|d<||id||id||id|d=d|d<||id||id||idt}t|}|i|||i	ddS(NRqsContent-TypeRs
text/plainscontent-typeRlsContent-Type: foo

(
RAR6R	RRRIRRRpR.(R/RCtneqR:RrRs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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--
(R6R;RT(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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
(R6R;R(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_no_separating_blank_lines	cCs|i}|id}|t|d|it|id|t|idti|t|idti	dS(Ns
msg_41.txtRgiii(
R}R;RhRARGRgRiRRmRn(R/R!R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_lying_multiparts	cCsd|id}|idid}|it|id|it|idtidS(Ns
msg_42.txtii(	R;RTRARGRgR}RiRRj(R/ROtbad((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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
(RAR7RRRTRGRgR}RiRt#FirstHeaderLineIsContinuationDefecttline(R/RCR
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt&test_first_line_is_continuation_headers	
(R<R=RfRlRoRqRrRsRtRvRy(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyReqs		
								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(RARRGR(R(R/RCRrtdh((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RARRGtunicodeRR(R/RCRrR{thu((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RARRGRt__unicode__(R/RCRrR{R~((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_whitespace_eater_unicode_2s	
cCs/d}t|}|i||dfgdS(Ns3Sm=?ISO-8859-1?B?9g==?=rg=?ISO-8859-1?B?5Q==?=sbord(RRARG(R/RrR{((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_rfc2047_missing_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(RRARG(R/RrR{((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_rfc2047_with_whitespaces
(R<R=R|RRRR(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRzs
					tTestMIMEMessagecBs}eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZRS(
cCs1td}z|i|_Wd|iXdS(Ns
msg_11.txt(R&Rot_textR9(R/R5((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRscCs|ittddS(Nsa plain string(Rbt	TypeErrorR(R/((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_type_errorscCs|i}|i}d}t}||d<t|}||id|i}|t|t|t|d|d}|||j||d|dS(Ns
A sub-messageRsmessage/rfc822iitsubject(	RAR}R	RRIRTRitlistRG(R/RCR!RR
RRRY((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_valid_arguments			

cCsX|i}t}d|d<t}d|d<t|}|iti|i|dS(Ns	subpart 1Rs	subpart 2(RAR	RRbRtMultipartConversionErrorR8(R/RCRZtmsg2R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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	RNRRRRpRAR.(R/R
RRrRs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt
test_generate5s	


	
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.
(	RAR}R;RIRTRiRRGR	(R/RCR!R:Rtsubmsg((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_parse_message_rfc822Is		
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.edutdnsRds
reporting-mtaRtnsdtactiontfailedsoriginal-recipientRsjangel1@cougar.noc.ucla.edusfinal-recipientsmessage/rfc822s
message-ids(<002001c144a6$8752e060$56104586@oxy.edu>(srfc822R(sjangel1@cougar.noc.ucla.eduR(
RAR}R;RIR/RGRTRiR	RJRGRR(	R/RCR!R:RYtdsn1tdsn2RR[((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_dsnVsD		


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.ainRvsbperson@dom.ainR{RRsMIME messagesEnd of MIME message
RRsContent-Typesmultipart/mixedRR\(R6R&RoR9R	RQRRRRR8RRRpR.(	R/RCR5RqR:RZRRRs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt
test_epilogues(		


		

	
cCs|i}t}d|d<d|d<d|d<d|_d|_td	}td
}|iddd
d|i||i|||iddS(Nsaperson@dom.ainRvsbperson@dom.ainR{RRs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--
(R6R	RQRRRRR8R(R/RCR:RZR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAR&R7R8R9RTtget_default_typeRI(R/RCR5R:t
container1t
container2tcontainer1atcontainer2a((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAR&R7R8R9RTRRI(R/RCR5R:RRRR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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--
(
RAR6RRRRRR8RIRR(R/RCRpR?t	subpart1at	subpart2atsubpart1tsubpart2((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_default_type_non_parseds4			

cCs|i}td}td}td||f}|t|id||id|||id|dS(NRt	_subpartsiii(RARRRGRT(R/RCttext1ttext2R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt$test_mime_attachments_in_constructor<s	(R<R=RRRRRRRRRRRRR(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRs							
	:		#			JtTestIdempotentcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZRS(cCsCt|}z|i}Wd|iXti|}||fS(N(R&RoR9R7R(R/R$R5RR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyR;MscCsH|i}t}t|dd}|i||||idS(Ntmaxheaderleni(R6RRRpR.(R/R:RqRCRrRs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt_idempotentVs
		
cCs|i}|id\}}||id||id||id||idd||idd||id||i	d|i
||dS(	Ns
msg_01.txts
text/plainRqRiREsus-ascii(scharsetsus-ascii(RcR;RIRRRRJRQRGRRR(R/RCR:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_parse_text_message]s	cCsn|i}|id\}}||id||id||idd|i||dS(Ns
msg_03.txts
text/plainRE(RcR;RIRRGRJR(R/RCR:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_parse_untyped_messageis	cCs)|id\}}|i||dS(Ns
msg_04.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_simple_multipartqscCs)|id\}}|i||dS(Ns
msg_02.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_MIME_digestuscCs)|id\}}|i||dS(Ns
msg_27.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_long_headeryscCs)|id\}}|i||dS(Ns
msg_28.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt"test_MIME_digest_with_part_headers}scCs)|id\}}|i||dS(Ns
msg_06.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_mixed_with_imagescCs)|id\}}|i||dS(Ns
msg_05.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_multipart_reportscCs)|id\}}|i||dS(Ns
msg_16.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRscCs)|id\}}|i||dS(Ns
msg_21.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_preamble_epiloguescCs)|id\}}|i||dS(Ns
msg_23.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_multipart_one_partscCs)|id\}}|i||dS(Ns
msg_24.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_multipart_no_partsscCs)|id\}}|i||dS(Ns
msg_31.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRrscCs)|id\}}|i||dS(Ns
msg_32.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_rfc2231_charsetscCs)|id\}}|i||dS(Ns
msg_33.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_more_rfc2231_parametersscCs)|id\}}|i||dS(Ns
msg_34.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt%test_text_plain_in_a_multipart_digestscCs)|id\}}|i||dS(Nsmsg_12a.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_nested_multipart_mixedsscCs)|id\}}|i||dS(Ns
msg_36.txt(R;R(R/R:Rq((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RcR}R;RIRRQRRRGRTRiR	R(
R/RCR!R:RqtparamstpktpvRZRtmsg3Rtmsg4((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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
(
RcR}R;RIRTRiRRGR	R((R/RCR!R:RqRRZ((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_parsers		
(R<R=R;RRRRRRRRRRRRRRrRRRRRRR(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRLs,																						 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&RoR9R7RRRRpRAR.(R/R5RqR:RrRs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_message_from_strings	
cCstd}zj|i}|idti|}t}t|dd}|i||i||i	Wd|i
XdS(Ns
msg_01.txtiR(R&RotseekR7R8RRRpRAR.R9(R/R5RqR:RrRs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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=(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRss
msg_02.txt(	R}R&RoR9R	R7RRitwalk(R/R!R5RqRR:RY((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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=(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRss
msg_01.txts
msg_02.txt(R}R	R&R7R8R9RiR(R/R!RR5R:RY((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt!test_message_from_file_with_classs	
c#Cstd}|i}|i|i|dddddddd	d
ddd
ddddddddddddddddddd d!g dS("NR7RtEncoderstErrorsRRt	IteratorsRRR
RRtMIMENonMultipartRR	RtUtilst
base64MIMERRERRt	generatorRdRRR8Rtmimetparsert
quopriMIMERR(t
__import__t__all__tsortRA(R/tmoduletall((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest__all__/s

					cCsCti}|ititi|d ti|d dS(Ni(R9RARt	parsedatet
formatdatetgmtime(R/RB((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_formatdateBscCsIti}|ititi|dtd ti|d dS(NR:i(R9RARRRRhR:(R/RB((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_formatdate_localtimeGs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(R9RARRRR=RRh(R/RB((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_formatdate_usegmtMscCs|itidddS(NR(RARRRG(R/((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_parsedate_noneVscCs&|itidtiddS(NsWed,3 Apr 2002 14:58:26 +0800sWed, 3 Apr 2002 14:58:26 +0800(RARR(R/((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_parsedate_compactYscCs#|i}|tidddS(
Ns25 Feb 2003 13:47:26 -0800iiii
i/iiiii(
iiii
i/iiiii(RARtparsedate_tz(R/RC((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_parsedate_no_dayofweek^s	cCs#|i}|tidddS(
Ns5 Feb 2003 13:47:26 -0800iiii
i/iiiii(
iiii
i/iiiii(RARR(R/RC((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt#test_parsedate_compact_no_dayofweekcs	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	(	RARRtintR9tmktimeR:R=R(R/RCttimetupR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt+test_parsedate_acceptable_to_time_functionshs	cCs?|itidd|ititidddS(Ns<>R(RR(RARt	parseaddrt
formataddr(R/((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_parseaddr_emptysscCs|itidddS(NsA Silly Personsperson@dom.ainsA Silly Person <person@dom.ain>(sA Silly Personsperson@dom.ain(RARR(R/((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_noquote_dumpws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(RARRR(R/tatb((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RARRR(R/RR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RARRR(R/RtyRR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_name_with_dotscCs#d}|iti|ddS(NsFoo
	Bar <foo@example.com>sFoo Barsfoo@example.com(sFoo Barsfoo@example.com(RARR(R/R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_multiline_from_commentscCs|itidddS(NsA Silly; Personsperson@dom.ains""A Silly; Person" <person@dom.ain>(sA Silly; Personsperson@dom.ain(RARR(R/((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_quote_dumpscCs{|i}|tidd|tidd|tidd|tidd|tidddS(Nthelloshello
shello
shello
shello

s	hello

(RARtfix_eols(R/RC((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAtfailIfEqualR(R/RCtnetcset1tcset2((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RARtgetaddresses(R/RC((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RARR(R/RC((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_getaddresses_nastys				cCs4|i}tidg}||ddddS(s(Test proper handling of a nested comments%User ((nested comment)) <foo@bar.com>iisfoo@bar.comN(RARR(R/RCtaddrs((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt"test_getaddresses_embedded_comments	cCs?|i}t}|idddd||iddS(Nscontent-dispositionRR$sfoo\wacky"name(RAR	RRU(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_utils_quote_unquotes
		cCs&td}|i|iddS(Ns
not a charsetR(RRAtget_body_encoding(R/RE((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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 worldREsaGVsbG8gd29ybGQ=
Rgscontent-transfer-encodingstext/plain; charset="US-ASCII"sus-asciiR(RAR	RQRGRRRNRTRhRtencode_7or8bit(R/RCR:RRRE((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt-test_get_body_encoding_with_uppercase_charsets.		
	
cCs8td}td}|i|i|idS(Nsus-asciisUS-ASCII(RRAR(R/tlctuc((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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
(R6R;RRR^R.(R/RCR:R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt1test_partial_falls_inside_message_delivery_statuss		( R<R=RRRRRRRRRRRRRRRRRRRRRRR	R
RR
RRRR(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(
RAR6R;Rtbody_line_iteratorRRGtEMPTYSTRINGR RTR&RoR9(R/RCRpR:titRR5((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_body_line_iterator+	s		 cCs|i}|id}ti|d}g}d}x+|D]#}|d7}|i|iq=W||d|ti|ddS(Ns
msg_04.txtRqiiis`a simple kind of mirror
to reflect upon our own
a simple kind of mirror
to reflect upon our own
(RAR;Rttyped_subpart_iteratorRRTRR (R/RCR:RRtsubpartsRY((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_typed_subpart_iterator?	s	

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

Do you like this message?

-Me
(RAR;RRRRTRR (R/RCR:RRRRY((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt(test_typed_subpart_iterator_default_typeP	s	

(R<R=RRR(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyR*	s		tTestParserscBsbeZdZdZdZdZdZdZdZdZ	dZ
d	ZRS(
cCs|i}td}zti|}Wd|iX||dd||dd||id|i|i|it	|i
tdS(Ns
msg_02.txtRysppp-request@zzz.orgRxsppp@zzz.orgsmultipart/mixed(RAR&RtparseR9RIRR/R}RiRTR((R/RCR5R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_header_parserf	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
(RAR7RRT(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_whitespace_continuationt	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
(RAR7RRT(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAR&RR R9RGRTRI(R/RCR5R:tpart1tpart2((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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
(
RAR6R&R7R8R9R/RGRTRI(	R/RCRpR5R:R%tpart1aR&tpart2a((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(R7RR,R RA(R/RR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_three_lines	s
	cCsd|i}d}d}d||f}ti|}||id|||id|dS(NRqs	more texts'Header: %s
Next-Header: %s

Body

RsNext-Header(RAR7Rtget(R/RCtvalue1tvalue2R
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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>FromRvtbody(RAR7RRGRRRT(R/RCR
R:R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_rfc2822_header_syntax	s	
cCs;|i}d}ti|}|t|iddS(Ns<>From foo@example.com 11:25:53
From: bar
!"#QUX;~: zoo

bodyi(RAR7RRGR(R/RCR
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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

bodytAtBtCCR1(RAR7RRRRT(R/RCR
R:theaders((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt!test_rfc2822_one_character_header	s	
(R<R=R!R#R$R'R*R,R0R2R3R8(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRe	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(RARt
base64_lenRGRR(R/RCtsizetbsize((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_len	s"	










cCsk|i}|tidd|tidd|tiddd|tiddddS(NRsaGVsbG8=RtXsaGVsbG8NCndvcmxk
thelloXworld(RARRg(R/RC((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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==
(RARR(R/RC((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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?=REs
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?=(RARt
header_encodeRh(R/RCthe((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_header_encode!
s		(R<R=R>RARBRF(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyR9	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~|_t|it|idjptg}ttd
tddD]}|t|qm~dg|_|iidg}tdD]-}t||ijo|t|qq~|_	t|it|i	djptdS(NRtziR4tZt0t9t!t*R6R5t/Rit~s	t=(
RtordtchrthlitthnonRGtAssertionErrortblittremovetbnon(R/RVRt_[2]t_[3]t_[4]t_[5]t_[6]((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyR?
sJ*JJcCsXx'|iD]}|iti|q
Wx'|iD]}|iti|q4WdS(N(RSRRtheader_quopri_checkRTR}(R/tc((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_header_quopri_checkK
s

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

c
Cs|i}ti}ti}x=d	D]5}|||t||dddddq"Wx$|iD]}|||dqeWx$|iD]}|||dqWdS(
NRs
h@e@l@l@o@RERR:iii(shellos
h@e@l@l@o@(RARtheader_quopri_lenRDRGRSRT(R/RCthqltencRrR_((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_header_quopri_lenW
s			3

cCsd|i}ti}x$|iD]}|||dqWx$|iD]}|||dqCWdS(Nii(RARtbody_quopri_lenRVRX(R/RCtbqlR_((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_body_quopri_lenc
s		

cCsIxBtdD]4}t|}|ititi||q
WdS(Ni(RRRRARRtquote(R/RR_((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_quote_unquote_idempotentk
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?=REs
iso-8859-2s=?iso-8859-2?q?hello?=RCs=?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_?=(RARRDRh(R/RCRE((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRFp
s		cCsk|i}|tidd|tidd|tiddd|tiddddS(NRRR?shello
worldR@(RARRg(R/RC((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRA
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(RARR(R/RC((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRB
s		(R<R=RR`RbRfRiRkRFRARB(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRG>
s								tTestCharsetcBs,eZdZdZdZdZRS(cCs8ddkl}y|id=Wntj
onXdS(Ni(REtfake(R7REtCHARSETSR(R/t
CharsetModule((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttearDown
s
cCso|i}td}d}|i|}|||i|d}|i|}|||i|dS(Nsus-asciisHello World!s
(RARt
to_splittabletfrom_splittable(R/RCR_Rrtsp((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RERm(
RARtbody_encodeRtLookupErrorR7REtadd_charsettQPRG(R/RCR_Ro((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_body_encode
s&	cCs<td}|it|d|ititddS(Nuus-asciisus-asciisascii(RRAR(RbRtCharsetError(R/RE((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_unicode_charset_name
s(R<R=RpRtRyR{(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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!(R6RRR(R/RCR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_simple
s
	
cCsL|i}td}||id|id||iddS(NsHello World!sGoodbye World!sHello World! Goodbye World!(R6RRR(R/RCR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_simple_surprise
s
	
cCs)d}|it||dfgdS(Nsno decoding needed(RARRG(R/R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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
 (RRRR}RG(R/Rtl((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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.」と言っています。(R6RRRRRR}R(R/RCRsRRRRRRRetustrtnewh((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_multilinguals*	cCsF|i}t}||d|idtd||ddS(NRRls
iso-8859-1s=?iso-8859-1?q?foo?=(R6RRR(R/RCR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_header_ctor_default_args1s
		
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(R6RR(R/RCRR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_explicit_maxlinelen8s	cCsN|i}d}t|}||dgt|}|||idS(NR(shelloN(RARRGRR(R/RCRrRR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_us_ascii_headerFs	cCs3|i}t}|idd||ddS(NRs
iso-8859-1s=?iso-8859-1?q?hello?=(RARR(R/RCR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_string_charsetNs		cCsQ|i}tdd}||idtdd}||iddS(Nupöstalsutf-8s=?utf-8?q?p=C3=B6stal?=u菊地時夫s=?utf-8?b?6I+K5Zyw5pmC5aSr?=(RARR(R/RCR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RbRAtUnicodeErrorRRR((R/RIRCRR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_bad_8bit_headerds			cCsq|i}t}|idd|id|i}||dtt|}||i|dS(NRs
iso-8859-1tworlds=?iso-8859-1?q?hello?= world(RARRRRR(R/RCRRr((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt test_encoded_adjacent_nonencodedos		

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(RARRGRR(R/RCRrtpartsthdr((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_whitespace_eaterys	cCs&|i}d}|tit|dS(NsXSubject: =?EUC-KR?B?CSixpLDtKSC/7Liuvsax4iC6uLmwMcijIKHaILzSwd/H0SC8+LCjwLsgv7W/+Mj3IQ?=(RbRRcR(R/RIRr((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_broken_base64_headers	(R<R=R}R~RRRRRRRRRRRR(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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!"(RAR;RJR(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRs	cCs|i}t}|idddd||idd
|idddddd||idd|id}|idddddd||id	dS(NRs%This is even more ***fun*** isn't it!REsus-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!(RAR	RRJR;R(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRs		

cCsz|i}|id}|idddddd|idd	dddd|idd
d||iddS(
Ns
msg_01.txtRlRREsus-asciiRRRs%This is even more ***fun*** isn't it!Rds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
(R6R;RRR(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRs	
cCs/|i}|id}||iddS(Ns
msg_32.txtsus-ascii(RAR;tget_content_charset(R/RCR:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(R7RRJRRittupleRA(R/R
R:tparam((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(R7RRARU(R/R
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(R7RRARU(R/R
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(R7RRARU(R/R
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(R7RRARU(R/R
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(R7RRAR](R/R
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(R7RRAR(R/R
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(R7RRARU(R/R
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt%test_rfc2231_bad_encoding_in_filename4scCs/d}ti|}|i|iddS(Ns:Content-Type: text/plain; charset*=bogus''utf-8%E2%80%9D

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

(R7RRARRG(R/R
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt%test_rfc2231_bad_character_in_charsetJ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�(R7RRARU(R/R
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt&test_rfc2231_bad_character_in_filenameTscCs/d}ti|}|i|iddS(Ns^Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename*=X-UNKNOWN''myfile.txt

s
myfile.txt(R7RRARU(R/R
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_rfc2231_unknown_encoding`scCsa|i}d}ti|}|id\}}}||d||d||ddS(NsJContent-Type: application/x-foo;
	name*0*="Frank's"; name*1*=" Document"

RsFrank's Document(RAR7RRJRG(R/RCR
R:RERRr((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt-test_rfc2231_single_tick_in_filename_extendedis	

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

RsFrank's Document(R7RRJRRiRRA(R/R
R:R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt$test_rfc2231_single_tick_in_filenamev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(RAR7RRJ(R/RCR
R:RERRr((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(R7RRJRRiRRA(R/R
R:R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyttest_rfc2231_tick_attacks
cCs8|i}d}ti|}||idddS(Ns:Content-Type: application/x-foo; name="Frank's Document"

RsFrank's Document(RAR7RRJ(R/RCR
R:((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAR7RRJ(R/RCR
R:RERRr((s9/usr/local/lib/python2.5/email/test/test_email_renamed.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(RAR7RRJ(R/RCR
R:RERRr((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt,test_rfc2231_unencoded_then_encoded_segmentss	

(R<R=RRRRRRRRRRRRRRRRRRRRRRR(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRs.		%						
	
		
		
	
				
	
	
				cCsOtit}g}t|D]*}|ido|t||qq~S(NR(tsystmodulesR<tdirRtgetattr(tmodRVR((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt_testclassess
cCs:ti}x'tD]}|iti|qW|S(N(tunittestt	TestSuiteRtaddTestt	makeSuite(tsuitet	testclass((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyRs

cCs"xtD]}t|q
WdS(N(RR(R((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pyt	test_mains
t__main__tdefaultTestR(RRRR9RR)Rtwarningst	cStringIORR7t
email.charsetRtemail.headerRRRtemail.parserRRtemail.generatorRRt
email.messageR	temail.mime.applicationR
temail.mime.audioRtemail.mime.textRtemail.mime.imageR
temail.mime.baseRtemail.mime.messageRtemail.mime.multipartRRRRRRRttest.test_supportRRt
email.testRR"R,RRR&tTestCaseR'R>RRRRR$R(R,R2ReRzRRRRRR9RGRlR|RRRRR<tmain(((s9/usr/local/lib/python2.5/email/test/test_email_renamed.pys<module>sB"1+|r/;F;Ho:8			


Man Man