KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/email/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/email/FeedParser.pyo
mò
‚=5Dc@s¶dZdkZdklZdklZeidƒZeidƒZeidƒZeidƒZ	eidƒZ
dZd	Ze
ƒZd
e
fd„ƒYZdfd
„ƒYZdS(sFeedParser - An email feed parser.

The feed parser implements an interface for incrementally parsing an email
message, line by line.  This has advantages for certain applications, such as
those reading email messages off a socket.

FeedParser.feed() is the primary interface for pushing new data into the
parser.  It returns when there's nothing more it can do with the available
data.  When you have no more data to push into the parser, call .close().
This completes the parsing and returns the root message object.

The other advantage of this parser is that it will never throw a parsing
exception.  Instead, when it finds something unexpected, it adds a 'defect' to
the current message.  Defects are just instances that live on the message
object's .defects attribute.
N(sErrors(sMessages
|
|
s(
|
|
)s	(
|
|
)$s(^(From |[\041-\071\073-\176]{1,}:|[\t ])ts
tBufferedSubFilecBsqtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
RS(skA file-ish object that can have new data loaded into it.

    You can also push and pop line-matching predicates onto a stack.  When the
    current predicate matches the current line, a false EOF response
    (i.e. empty string) is returned instead.  This lets the parser adhere to a
    simple abstraction -- it parses until EOF closes the current message.
    cCs(d|_g|_g|_t|_dS(NR(tselft_partialt_linest	_eofstacktFalset_closed(R((t(/usr/lib64/python2.4/email/FeedParser.pyt__init__0s			cCs|ii|ƒdS(N(RRtappendtpred(RR((Rtpush_eof_matcher:scCs
|iiƒS(N(RRtpop(R((Rtpop_eof_matcher=scCs)|ii|iƒd|_t|_dS(NR(RRR
RtTrueR(R((Rtclose@s	cCs}|ip|iodSntSn|iiƒ}xC|iddd…D]+}||ƒo|ii|ƒdSqJqJW|S(NRiÿÿÿÿ(	RRRtNeedMoreDataR
tlineRtateofR
(RRR((RtreadlineFs


cCs|ii|ƒdS(N(RRR
R(RR((Rt
unreadlineXscCs’|i|d}|_ti|ƒ}|iƒ|_g}xCtt	|ƒdƒD]+}|i||d||ddƒqRW|i|ƒdS(s$Push some new data into this object.RiiN(
RRtdatatNLCRE_cracktsplittpartsR
tlinestrangetlentiR
t	pushlines(RRRRR((Rtpush]s)cCs|ddd…|id*dS(Niÿÿÿÿi(RRR(RR((RRpscCs|iS(N(RR(R((Rt	is_closedtscCs|S(N(R(R((Rt__iter__wscCs'|iƒ}|djo
t‚n|S(NR(RRRt
StopIteration(RR((Rtnextzs

(t__name__t
__module__t__doc__R	RRRRRRRR R!R#(((RR(s	
									t
FeedParsercBsetZdZeid„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„ZRS(
sA feed-style parser of email.cCsO||_tƒ|_g|_|iƒi|_d|_	d|_
t|_dS(s@_factory is called with no arguments to create a new message objN(
t_factoryRRt_inputt	_msgstackt	_parsegenR#t_parsetNonet_curt_lastRt_headersonly(RR(((RR	…s				cCs
t|_dS(N(RRR0(R((Rt_set_headersonlyscCs|ii|ƒ|iƒdS(sPush more data into the parser.N(RR)RRt_call_parse(RR((Rtfeed“scCs(y|iƒWntj
onXdS(N(RR,R"(R((RR2˜scCsb|iiƒ|iƒ|iƒ}|iƒdjo(|iƒo|ii	t
iƒƒn|S(s<Parse all remaining data and return the root message object.t	multipartN(RR)RR2t_pop_messagetroottget_content_maintypetis_multiparttdefectsR
tErrorst!MultipartInvariantViolationDefect(RR6((RRžs

!cCs…|iƒ}|io'|iiƒdjo|idƒn|io|idi|ƒn|ii|ƒ||_||_	dS(Nsmultipart/digestsmessage/rfc822iÿÿÿÿ(
RR(tmsgR.tget_content_typetset_default_typeR*tattachR
R/(RR<((R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NRsmessage/delivery-statustmessageR4s--s(?P<sep>s4)(?P<end>--)?(?P<ws>[ \t]*)(?P<linesep>\r\n|\r|\n)?$tendtlinesepiÿÿÿÿi(=RR@theadersR)RRtheaderREtmatchtNLCRERR
t_parse_headersR0RRRR.tset_payloadtEMPTYSTRINGtjoinR=RR+RAR5R<RR7tget_boundarytboundaryR-R9R:tNoBoundaryInMultipartDefectt	separatortretcompiletescapet
boundaryretcapturing_preambletpreambleRRDtmotgrouptlastlinet	NLCRE_eoltsearchteolmoRR/tepilogueRCtget_payloadtpayloadt
isinstancet
basestringtStartBoundaryNotFoundDefectt	firstlinet	NLCRE_boltbolmo(RRcR_RCR]RDReRYR<RNRTR\RURRVRWRRERPRA((RR+¼sd



















 


"













%

c
Csd}	g}xÖt|ƒD]È\}}|ddjoD|	p)ti|ƒ}|i
ii|ƒqn|i|ƒqn|	o:t
i|ƒd idƒ}||i
|	<dg}	}n|idƒo°|djoKti|ƒ}|o|t|idƒƒ }n|i
i|ƒqq{|t|ƒdjo|ii|ƒdSq{ti|ƒ}|i
ii|ƒqn|idƒ}|djo)ti|ƒ}|i
ii|ƒqn|| }	||diƒg}qW|	o#t
i|ƒidƒ|i
|	<ndS(	NRis 	iÿÿÿÿs
sFrom it:(t
lastheadert	lastvaluet	enumerateRtlinenoRR:t#FirstHeaderLineIsContinuationDefecttdefectRR.R9R
RKRLtrstriptlhdrt
startswithRZR[RWRRXtset_unixfromR)RtMisplacedEnvelopeHeaderDefecttfindRtMalformedHeaderDefecttlstrip(
RRRhRWRRlRjRnRRg((RRI¨sJ





(
R$R%R&tMessageR	R1R3R2RR@R5R+RI(((RR'‚s					
		ì(R&RQtemailR:RuRRRHRdRZRRFRKtNLtobjectRRR'(
RHRwRdRFR'RKRQR:RRRRuRZ((Rt?s	

	Z

Anon7 - 2021