/usr/lib64/python2.6/email
NameSizeModeActions
mime/-0755rm
base64mime.py57920644editdlrm
base64mime.pyc53460644editdlrm
base64mime.pyo53460644editdlrm
charset.py157910644editdlrm
charset.pyc134480644editdlrm
charset.pyo133990644editdlrm
encoders.py23020644editdlrm
encoders.pyc24220644editdlrm
encoders.pyo24220644editdlrm
errors.py16280644editdlrm
errors.pyc35290644editdlrm
errors.pyo35290644editdlrm
feedparser.py206060644editdlrm
feedparser.pyc113140644editdlrm
feedparser.pyo112170644editdlrm
generator.py140620644editdlrm
generator.pyc103840644editdlrm
generator.pyo103840644editdlrm
header.py217380644editdlrm
header.pyc135220644editdlrm
header.pyo134530644editdlrm
iterators.py22020644editdlrm
iterators.pyc23930644editdlrm
iterators.pyo23930644editdlrm
message.py304460644editdlrm
message.pyc286530644editdlrm
message.pyo286530644editdlrm
parser.py33000644editdlrm
parser.pyc38530644editdlrm
parser.pyo38530644editdlrm
quoprimime.py108390644editdlrm
quoprimime.pyc89350644editdlrm
quoprimime.pyo89350644editdlrm
utils.py98190644editdlrm
utils.pyc90680644editdlrm
utils.pyo90680644editdlrm
_parseaddr.py149810644editdlrm
_parseaddr.pyc137030644editdlrm
_parseaddr.pyo137030644editdlrm
__init__.py28560644editdlrm
__init__.pyc28760644editdlrm
__init__.pyo28760644editdlrm
Edit: /usr/lib64/python2.6/email/feedparser.pyc (11314B)
Ñò «gc@sÈdZdgZddkZddklZddklZeidƒZeidƒZeidƒZ eidƒZ eid ƒZ d Z d Z eƒZd efd „ƒYZddd„ƒ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. t FeedParseriÿÿÿÿN(terrors(tmessages | | s( | | )s ( | | )\Zs(^(From |[\041-\071\073-\176]{1,}:|[\t ])ts tBufferedSubFilecBsqeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „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(t_partialt_linest _eofstacktFalset_closed(tself((s(/usr/lib64/python2.6/email/feedparser.pyt__init__3s   cCs|ii|ƒdS(N(Rtappend(R tpred((s(/usr/lib64/python2.6/email/feedparser.pytpush_eof_matcher=scCs |iiƒS(N(Rtpop(R ((s(/usr/lib64/python2.6/email/feedparser.pytpop_eof_matcher@scCs)|ii|iƒd|_t|_dS(NR(RR RtTrueR (R ((s(/usr/lib64/python2.6/email/feedparser.pytcloseCs cCst|ip|iodStS|iiƒ}x@|iddd…D](}||ƒo|ii|ƒdSqDW|S(NRiÿÿÿÿ(RR t NeedMoreDataRRR (R tlinetateof((s(/usr/lib64/python2.6/email/feedparser.pytreadlineIs    cCs(|tj pt‚|ii|ƒdS(N(RtAssertionErrorRR (R R((s(/usr/lib64/python2.6/email/feedparser.pyt unreadline[scCsØ|i|d}|_ti|ƒ}|iƒ|_|i o;|o4|didƒo |idƒ|iƒ|_ng}xCtt|ƒdƒD]+}|i||d||ddƒq˜W|i|ƒdS(s$Push some new data into this object.Riÿÿÿÿs iþÿÿÿiiN( Rt NLCRE_cracktsplitRtendswithtrangetlenR t pushlines(R tdatatpartstlinesti((s(/usr/lib64/python2.6/email/feedparser.pytpush`s& )cCs|ddd…|id*dS(Niÿÿÿÿi(R(R R!((s(/usr/lib64/python2.6/email/feedparser.pyRwscCs|iS(N(R (R ((s(/usr/lib64/python2.6/email/feedparser.pyt is_closed{scCs|S(N((R ((s(/usr/lib64/python2.6/email/feedparser.pyt__iter__~scCs'|iƒ}|djo t‚n|S(NR(Rt StopIteration(R R((s(/usr/lib64/python2.6/email/feedparser.pytnexts   (t__name__t __module__t__doc__R RRRRRR#RR$R%R'(((s(/usr/lib64/python2.6/email/feedparser.pyR+s         cBseeZdZeid„Zd„Zd„Zd„Zd„Z d„Z d„Z d„Z d „Z RS( 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_factoryRt_inputt _msgstackt _parsegenR't_parsetNonet_curt_lastRt _headersonly(R R+((s(/usr/lib64/python2.6/email/feedparser.pyR Œs     cCs t|_dS(N(RR3(R ((s(/usr/lib64/python2.6/email/feedparser.pyt_set_headersonly—scCs|ii|ƒ|iƒdS(sPush more data into the parser.N(R,R#t _call_parse(R R((s(/usr/lib64/python2.6/email/feedparser.pytfeedšscCs(y|iƒWntj onXdS(N(R/R&(R ((s(/usr/lib64/python2.6/email/feedparser.pyR5ŸscCst|iiƒ|iƒ|iƒ}|i pt‚|iƒdjo(|iƒ o|ii t i ƒƒn|S(s<Parse all remaining data and return the root message object.t multipart( R,RR5t _pop_messageR-Rtget_content_maintypet is_multiparttdefectsR Rt!MultipartInvariantViolationDefect(R troot((s(/usr/lib64/python2.6/email/feedparser.pyR¥s   cCs…|iƒ}|io'|iiƒdjo|idƒn|io|idi|ƒn|ii|ƒ||_||_dS(Nsmultipart/digestsmessage/rfc822iÿÿÿÿ(R+R1tget_content_typetset_default_typeR-tattachR R2(R tmsg((s(/usr/lib64/python2.6/email/feedparser.pyt _new_message±s    cCs:|iiƒ}|io|id|_n d|_|S(Niÿÿÿÿ(R-RR1R0(R tretval((s(/usr/lib64/python2.6/email/feedparser.pyR8»s   ccsñ|iƒg}xp|iD]e}|tjo tVqnti|ƒp)ti|ƒp|ii|ƒnPn|i|ƒqW|i|ƒ|i ozg}xSt oK|ii ƒ}|tjo tVq£n|djoPn|i|ƒq£W|i i ti|ƒƒdS|i iƒdjoxût oó|iitiƒx.|iƒD] }|tjo tVqTnPqTW|iƒ}|iiƒx5t o-|ii ƒ}|tjo tVq”nPq”Wx5t o-|ii ƒ}|tjo tVqÌnPqÌW|djoPn|ii|ƒq-WdS|i iƒdjo@x.|iƒD] }|tjo tVqPnPqPW|iƒdS|i iƒdjoû|i iƒ}|djow|i iitiƒƒg}x7|iD],}|tjo tVqÞn|i|ƒqÞW|i i ti|ƒƒdSd|}tidti|ƒdƒ}t } g} t} xét oá|ii ƒ}|tjo tVqkn|djoPn|i|ƒ} | or| idƒo| id ƒ} Pn| o| o[| d } t i!| ƒ}|o"| t"|id ƒƒ | d s4)(?P--)?(?P[ \t]*)(?P\r\n|\r|\n)?$tendtlinesepiÿÿÿÿi(,RBR,RtheaderREtmatchtNLCRERR t_parse_headersR3RRR1t set_payloadt EMPTYSTRINGtjoinR>RR.R8RR9t get_boundaryR0R;RtNoBoundaryInMultipartDefecttretcompiletescapeRtgroupt NLCRE_eoltsearchRtpreambleR2tepiloguet get_payloadt isinstancet basestringRtStartBoundaryNotFoundDefectt NLCRE_bol(R theadersRR!RCRAtboundaryt separatort boundaryretcapturing_preambleRUREtmotlastlineteolmoRVRDtpayloadt firstlinetbolmo((s(/usr/lib64/python2.6/email/feedparser.pyR.Ãsh                         "                %  c Csd}g}xÓt|ƒD]Å\}}|ddjoD|p)ti|ƒ}|iii|ƒqn|i|ƒqn|o:ti|ƒd idƒ}||i|s   ^