$42 GRAYBYTE WORDPRESS FILE MANAGER $33

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python27/lib64/python2.7/email/

HOME
Current File : /opt/alt/python27/lib64/python2.7/email//feedparser.pyc
�
�V~gc@s�dZdgZddlZddlmZddlmZejd�Zejd�Zejd�Z	ejd�Z
ejd	�Zd
ZdZ
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	�Zd
�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((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyt__init__3s			cCs|jj|�dS(N(Rtappend(R
tpred((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pytpush_eof_matcher=scCs
|jj�S(N(Rtpop(R
((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pytpop_eof_matcher@scCs8|jdj|j�jt��g|_t|_dS(NR(t	pushlinestjoinRt
splitlinestTrueR	(R
((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pytcloseCs"	cCsn|js|jrdStS|jj�}x>|jddd�D]&}||�r@|jj|�dSq@W|S(NRi����(RR	tNeedMoreDataRRR(R
tlinetateof((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pytreadlineIs		cCs&|tk	st�|jj|�dS(N(RtAssertionErrorRR(R
R((s5/opt/alt/python27/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((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pytpush`s	"
cCs|ddd�|jd*dS(Ni����i(R(R
tlines((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyRxscCs|jS(N(R	(R
((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyt	is_closed|scCs|S(N((R
((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyt__iter__scCs%|j�}|dkr!t�n|S(NR(Rt
StopIteration(R
R((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pytnext�s	(t__name__t
__module__t__doc__RRRRRRRRR!R"R$(((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyR+s	
									cBseeZdZejd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�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(((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyR�s				cCs
t|_dS(N(RR0(R
((s5/opt/alt/python27/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((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pytfeed�scCs&y|j�Wntk
r!nXdS(N(R,R#(R
((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyR2�s
cCso|jj�|j�|j�}|js3t�|j�dkrk|j�rk|jj	t
j��n|S(s<Parse all remaining data and return the root message object.t	multipart(R)RR2t_pop_messageR*Rtget_content_maintypetis_multiparttdefectsRRt!MultipartInvariantViolationDefect(R
troot((s5/opt/alt/python27/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((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyt_new_message�s		cCs8|jj�}|jr+|jd|_n	d|_|S(Ni����(R*RR.R-(R
tretval((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyR5�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
<ntj|
�|j_#nt}	|jj|�qDnxYt
r�|jj�}|tkrftVq:n|j|�}|s:|jj|�Pq:q:W|jj|j�x,|j�D]}|tkr�tVq�nPq�W|j$j�dkra|j$j%}|dkrd|j$_%q�|dk	r�t j!|�}|r^t"|jd��}|| |j$_%q^q�nc|j$j&�}t'|t(�r�t j!|�}|r�|t"|jd�� }|j$j
|�q�n|jj�|j�|j|_$qD|	s�t)�|
j|�qDW|	r�|jjjtj*��|jj
tj|
��g}x(|jD]}|tkrOtVqOqOqOWtj|�|j_%dS|r�dg}ng}x5|jD]*}|tkr�tVq�n|j|�q�W|r!|d}t+j|�}|r!|t"|jd��|d<q!ntj|�|j_%dSg}x5|jD]*}|tkrgtVqJn|j|�qJW|jj
tj|��dS(NRsmessage/delivery-statusRR4s--s(?P<sep>s4)(?P<end>--)?(?P<ws>[ \t]*)(?P<linesep>\r\n|\r|\n)?$tendtlinesepi����i(,R?R)RtheaderREtmatchtNLCRERRt_parse_headersR0RRR.tset_payloadtEMPTYSTRINGRR;RR+R5RR6tget_boundaryR-R8RtNoBoundaryInMultipartDefecttretcompiletescapeRtgroupt	NLCRE_eoltsearchtlentpreambleR/tepiloguetget_payloadt
isinstancet
basestringRtStartBoundaryNotFoundDefectt	NLCRE_bol(R
theadersRR R@R>tboundaryt	separatort
boundaryretcapturing_preambleRRRBtmotlastlineteolmoRSRAtpayloadt	firstlinetbolmo((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyR+�sL

			
		


	
!	



#c
Cs�d}g}x�t|�D]�\}}|ddkrv|sctj|�}|jjj|�qn|j|�qn|r�tj|�d jd�}||j|<dg}}n|j	d�rj|dkrt
j|�}|r|t|j
d�� }n|jj|�qqj|t|�dkrB|jj|�dStj|�}|jjj|�qn|jd�}	|	dkr�tj|�}|jjj|�qn||	 }||	dj�g}qW|r�tj|�jd�|j|<ndS(	NRis 	i����s
sFrom it:(t	enumerateRt#FirstHeaderLineIsContinuationDefectR.R8RRHRtrstript
startswithRORPRQRNtset_unixfromR)RtMisplacedEnvelopeHeaderDefecttfindtMalformedHeaderDefecttlstrip(
R
R t
lastheadert	lastvaluetlinenoRtdefecttlhdrR^ti((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyRF�sH


(R%R&R'RtMessageRR1R3R2RR?R5R+RF(((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyR�s					
		�((R't__all__RKtemailRRRLRERXROtNLCRE_crackRCRHtNLtobjectRRR(((s5/opt/alt/python27/lib64/python2.7/email/feedparser.pyt<module>s		_


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 Jan 2025 9.37 AM
root / linksafe
0755
mime
--
24 Jan 2025 9.35 AM
root / linksafe
0755
__init__.py
2.789 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
__init__.pyc
2.881 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
__init__.pyo
2.881 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
_parseaddr.py
15.76 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
_parseaddr.pyc
13.91 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
_parseaddr.pyo
13.91 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
base64mime.py
5.658 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
base64mime.pyc
5.262 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
base64mime.pyo
5.262 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
charset.py
15.668 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
charset.pyc
13.439 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
charset.pyo
13.394 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
encoders.py
1.968 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
encoders.pyc
2.269 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
encoders.pyo
2.269 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
errors.py
1.59 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
errors.pyc
3.637 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
errors.pyo
3.637 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
feedparser.py
20.012 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
feedparser.pyc
11.174 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
feedparser.pyo
11.085 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
generator.py
13.87 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
generator.pyc
10.378 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
generator.pyo
10.378 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
header.py
21.722 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
header.pyc
13.545 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
header.pyo
13.477 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
iterators.py
2.15 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
iterators.pyc
2.374 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
iterators.pyo
2.374 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
message.py
30.003 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
message.pyc
28.588 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
message.pyo
28.588 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
parser.py
3.222 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
parser.pyc
3.84 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
parser.pyo
3.84 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
quoprimime.py
10.594 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
quoprimime.pyc
8.808 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
quoprimime.pyo
8.808 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
utils.py
9.791 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
utils.pyc
9.309 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
utils.pyo
9.309 KB
8 Jan 2025 10.42 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF