/usr/lib64/python2.7/email
NameSizeModeActions
mime/-0755rm
base64mime.py57940644editdlrm
base64mime.pyc53230644editdlrm
base64mime.pyo53230644editdlrm
charset.py160440644editdlrm
charset.pyc135410644editdlrm
charset.pyo134940644editdlrm
encoders.py20150644editdlrm
encoders.pyc22320644editdlrm
encoders.pyo22320644editdlrm
errors.py16280644editdlrm
errors.pyc35290644editdlrm
errors.pyo35290644editdlrm
feedparser.py204920644editdlrm
feedparser.pyc111430644editdlrm
feedparser.pyo110520644editdlrm
generator.py142030644editdlrm
generator.pyc103800644editdlrm
generator.pyo103800644editdlrm
header.py222430644editdlrm
header.pyc136620644editdlrm
header.pyo135920644editdlrm
iterators.py22020644editdlrm
iterators.pyc23660644editdlrm
iterators.pyo23660644editdlrm
message.py307230644editdlrm
message.pyc286760644editdlrm
message.pyo286760644editdlrm
parser.py32990644editdlrm
parser.pyc38280644editdlrm
parser.pyo38280644editdlrm
quoprimime.py108480644editdlrm
quoprimime.pyc88500644editdlrm
quoprimime.pyo88500644editdlrm
utils.py100260644editdlrm
utils.pyc93240644editdlrm
utils.pyo93240644editdlrm
_parseaddr.py161380644editdlrm
_parseaddr.pyc138930644editdlrm
_parseaddr.pyo138930644editdlrm
__init__.py28560644editdlrm
__init__.pyc28720644editdlrm
__init__.pyo28720644editdlrm
Edit: /usr/lib64/python2.7/email/feedparser.pyo (11052B)
ó {fc@sÈdZdgZddlZddlmZddlmZejdƒZejdƒZejdƒZ ejdƒZ ejd ƒ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 raise 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(g|_g|_g|_t|_dS(N(t_partialt_linest _eofstacktFalset_closed(tself((s(/usr/lib64/python2.7/email/feedparser.pyt__init__3s   cCs|jj|ƒdS(N(Rtappend(R tpred((s(/usr/lib64/python2.7/email/feedparser.pytpush_eof_matcher=scCs |jjƒS(N(Rtpop(R ((s(/usr/lib64/python2.7/email/feedparser.pytpop_eof_matcher@scCs8|jdj|jƒjtƒƒg|_t|_dS(NR(t pushlinestjoinRt splitlinestTrueR (R ((s(/usr/lib64/python2.7/email/feedparser.pytcloseCs" cCsn|js|jrdStS|jjƒ}x>|jddd…D]&}||ƒr@|jj|ƒdSq@W|S(NRiÿÿÿÿ(RR t NeedMoreDataRRR (R tlinetateof((s(/usr/lib64/python2.7/email/feedparser.pytreadlineIs   cCs|jj|ƒdS(N(RR (R R((s(/usr/lib64/python2.7/email/feedparser.pyt unreadline[scCs¿|jtƒ}| s*|djdƒ r=|j|7_dS|jr†|jj|dƒdj|jƒjtƒ|dd+|j2n|djdƒs®|jƒg|_n|j|ƒdS( s$Push some new data into this object.is s NRiiÿÿÿÿ(s s (RRtendswithRR RRR(R tdatatparts((s(/usr/lib64/python2.7/email/feedparser.pytpush`s " cCs|ddd…|jd*dS(Niÿÿÿÿi(R(R tlines((s(/usr/lib64/python2.7/email/feedparser.pyRxscCs|jS(N(R (R ((s(/usr/lib64/python2.7/email/feedparser.pyt is_closed|scCs|S(N((R ((s(/usr/lib64/python2.7/email/feedparser.pyt__iter__scCs%|jƒ}|dkr!t‚n|S(NR(Rt StopIteration(R R((s(/usr/lib64/python2.7/email/feedparser.pytnext‚s   (t__name__t __module__t__doc__R RRRRRRRR R!R#(((s(/usr/lib64/python2.7/email/feedparser.pyR+s         cBseeZdZejd„Zd„Zd„Zd„Zd„Z d„Z d„Z d„Z d „Z RS( sA feed-style parser of email.cCsO||_tƒ|_g|_|jƒj|_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.7/email/feedparser.pyR s     cCs t|_dS(N(RR/(R ((s(/usr/lib64/python2.7/email/feedparser.pyt_set_headersonly˜scCs|jj|ƒ|jƒdS(sPush more data into the parser.N(R(Rt _call_parse(R R((s(/usr/lib64/python2.7/email/feedparser.pytfeed›scCs&y|jƒWntk r!nXdS(N(R+R"(R ((s(/usr/lib64/python2.7/email/feedparser.pyR1 s cCs_|jjƒ|jƒ|jƒ}|jƒdkr[|jƒ r[|jjtj ƒƒn|S(s<Parse all remaining data and return the root message object.t multipart( R(RR1t _pop_messagetget_content_maintypet is_multiparttdefectsR Rt!MultipartInvariantViolationDefect(R troot((s(/usr/lib64/python2.7/email/feedparser.pyR¦s    cCs€|jƒ}|jr:|jjƒdkr:|jdƒn|jrZ|jdj|ƒn|jj|ƒ||_||_dS(Nsmultipart/digestsmessage/rfc822iÿÿÿÿ(R'R-tget_content_typetset_default_typeR)tattachR R.(R tmsg((s(/usr/lib64/python2.7/email/feedparser.pyt _new_message²s   cCs8|jjƒ}|jr+|jd|_n d|_|S(Niÿÿÿÿ(R)RR-R,(R tretval((s(/usr/lib64/python2.7/email/feedparser.pyR4¼s   ccs‰|jƒg}xj|jD]_}|tkr7tVqntj|ƒsltj|ƒsh|jj|ƒnPn|j|ƒqW|j|ƒ|j rg}xMt rè|jj ƒ}|tkrÈtVqœn|dkrØPn|j|ƒqœW|j j tj|ƒƒdS|j jƒdkrxít r |jjtjƒx,|jƒD]}|tkratVqDnPqDW|jƒ}|jjƒx1t r²|jj ƒ}|tkr®tVq‚nPq‚Wx1t ræ|jj ƒ}|tkrâtVq¶nPq¶W|dkr÷Pn|jj|ƒqWdS|j jƒdkrax,|jƒD]}|tkrNtVq1nPq1W|jƒdS|j jƒdkr.|j jƒ}|dkr|j jjtjƒƒg}x5|jD]*}|tkr×tVqºn|j|ƒqºW|j j tj|ƒƒdSd|}tjdtj|ƒdƒ}t } g} t} x·t rú|jj ƒ}|tkrptVqDn|dkr€Pn|j|ƒ} | rê| jdƒr·| jd ƒ} Pn| r7| r| d } t j!| ƒ}|r| t"|jd ƒƒ | d n|j|ƒq>W|j j tj|ƒƒdS( NRsmessage/delivery-statusRR3s--s(?Ps4)(?P--)?(?P[ \t]*)(?P\r\n|\r|\n)?$tendtlinesepiÿÿÿÿi(+R>R(RtheaderREtmatchtNLCRERR t_parse_headersR/RRR-t set_payloadt EMPTYSTRINGRR:RR*R4RR5t get_boundaryR,R7RtNoBoundaryInMultipartDefecttretcompiletescapeRtgroupt NLCRE_eoltsearchtlentpreambleR.tepiloguet get_payloadt isinstancet basestringtStartBoundaryNotFoundDefectt NLCRE_bol(R theadersRRR?R=tboundaryt separatort boundaryretcapturing_preambleRQRAtmotlastlineteolmoRRR@tpayloadt firstlinetbolmo((s(/usr/lib64/python2.7/email/feedparser.pyR*ÄsJ                          !             # c Csþd}g}xÃt|ƒD]µ\}}|ddkrv|sctj|ƒ}|jjj|ƒqn|j|ƒqn|rµtj|ƒd jdƒ}||j|R4R*RE(((s(/usr/lib64/python2.7/email/feedparser.pyRŠs     ì((R&t__all__RJtemailRRRKRDRWRNt NLCRE_crackRBRGtNLtobjectRRR(((s(/usr/lib64/python2.7/email/feedparser.pyts   _