$76 GRAYBYTE WORDPRESS FILE MANAGER $35

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/python310/lib64/python3.10/email/__pycache__/

HOME
Current File : /opt/alt/python310/lib64/python3.10/email/__pycache__//feedparser.cpython-310.opt-1.pyc
o

���h�X�@s�dZddgZddlZddlmZddlmZddlmZddl	m
Z
e�d	�Ze�d
�Z
e�d�Ze�d
�Ze�d�Zd
ZdZe�ZGdd�de�ZGdd�d�ZGdd�de�ZdS)aFeedParser - 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.
�
FeedParser�BytesFeedParser�N)�errors)�compat32)�deque)�StringIOz
\r\n|\r|\nz(\r\n|\r|\n)z(\r\n|\r|\n)\Zz%^(From |[\041-\071\073-\176]*:|[\t ])��
c@s`eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dS)�BufferedSubFileakA 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$tdd�|_t�|_g|_d|_dS)Nr)�newlineF)r�_partialr�_lines�	_eofstack�_closed��self�r�7/opt/alt/python310/lib64/python3.10/email/feedparser.py�__init__5s
zBufferedSubFile.__init__cC�|j�|�dS�N)r�append)rZpredrrr�push_eof_matcher@�z BufferedSubFile.push_eof_matchercCs
|j��Sr)r�poprrrr�pop_eof_matcherC�
zBufferedSubFile.pop_eof_matchercCs<|j�d�|�|j���|j�d�|j��d|_dS)NrT)r�seek�	pushlines�	readlines�truncaterrrrr�closeFs


zBufferedSubFile.closecCsL|js
|jrdStS|j��}t|j�D]}||�r#|j�|�dSq|S�Nr)r
r�NeedMoreData�popleft�reversedr�
appendleft)r�lineZateofrrr�readlineNs
�zBufferedSubFile.readlinecCrr)r
r&�rr'rrr�
unreadline`szBufferedSubFile.unreadlinecCsx|j�|�d|vrd|vrdS|j�d�|j��}|j�d�|j��|d�d�s5|j�|���|�|�dS)z$Push some new data into this object.r	�
Nr���)r�writerrr �endswithrr)r�data�partsrrr�pushes

zBufferedSubFile.pushcCrr)r
�extend)r�linesrrrrzrzBufferedSubFile.pushlinescCs|Srrrrrr�__iter__}szBufferedSubFile.__iter__cCs|��}|dkr
t�|Sr")r(�
StopIterationr)rrr�__next__�szBufferedSubFile.__next__N)�__name__�
__module__�__qualname__�__doc__rrrr!r(r*r1rr4r6rrrrr
-sr
c@s`eZdZdZded�dd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dS)rzA feed-style parser of email.N��policycCs�||_d|_|dur|jdurddlm}||_n|j|_n||_z||jd�Wnty5d|_Ynwt�|_g|_	|�
�j|_d|_
d|_d|_dS)a_factory is called with no arguments to create a new message obj

        The policy keyword specifies a policy object that controls a number of
        aspects of the parser's operation.  The default policy maintains
        backward compatibility.

        FNr)�Messager;T)r<�_old_style_factoryZmessage_factoryZ
email.messager=�_factory�	TypeErrorr
�_input�	_msgstack�	_parsegenr6�_parse�_cur�_last�_headersonly)rr?r<r=rrrr�s&


�
zFeedParser.__init__cCs
d|_dS)NT)rGrrrr�_set_headersonly�rzFeedParser._set_headersonlycCs|j�|�|��dS)zPush more data into the parser.N)rAr1�_call_parse�rr/rrr�feed�szFeedParser.feedcCs$z|��WdStyYdSwr)rDr5rrrrrI�s
�zFeedParser._call_parsecCsH|j��|��|��}|��dkr"|��s"t��}|j�	||�|S)z<Parse all remaining data and return the root message object.�	multipart)
rAr!rI�_pop_message�get_content_maintypeZis_multipartrZ!MultipartInvariantViolationDefectr<�
handle_defect)r�root�defectrrrr!�s
�zFeedParser.closecCsn|jr|��}n|j|jd�}|jr|j��dkr|�d�|jr)|jd�|�|j�|�||_||_	dS)Nr;zmultipart/digestzmessage/rfc822r,)
r>r?r<rE�get_content_typeZset_default_typerBZattachrrF)r�msgrrr�_new_message�s


zFeedParser._new_messagecCs*|j��}|jr|jd|_|Sd|_|S)Nr,)rBrrE)r�retvalrrrrM�s
�zFeedParser._pop_messageccs��|��g}|jD]-}|turtVq
t�|�s2t�|�s0t��}|j�	|j
|�|j�|�n|�|�q
|�
|�|jrfg}	|j��}|turPtVqB|dkrUn|�|�qC|j
�t�|��dS|j
��dkr�	|j�tj�|��D]
}|tur�tVqy|��}|j��	|j��}|tur�tVq�		|j��}|tur�tVq�	|dkr�	dS|j�|�qn|j
��dkr�|��D]
}|tur�tVq�|��dS|j
��dk�r�|j
��}|du�rt��}|j�	|j
|�g}|jD]}|tu�rtVq�|�|�q�|j
�t�|��dSt|j
�dd����dv�r.t��}|j�	|j
|�d	|}t� d
t�!|�d�}	d}
g}d}d}
	|j��}|tu�rVtV�qF|dk�r\n�|	�|�}|�r@|�"d
��rrd}
|�"d�}n�|
�r�|�r�|d}t#�$|�}|�r�|dt%|�"d���|d<t�|�|j
_&d}
|j�|��qF	|j��}|tu�r�tV�q�|	�|�}|�s�|j�|�n�q�|j�|	j�|��D]}|tu�r�tV�q�|j'��dk�r|j'j(}|dk�r�d|j'_(n@|du�rt#�$|�}|�rt%|�"d��}|d|�|j'_(n"|j'j)}t*|t��r2t#�$|�}|�r2|dt%|�"d���}||j'_)|j��|��|j
|_'n|�|��qG|
�r{t�+�}|j�	|j
|�|j
�t�|��g}|jD]
}|tu�rptV�qd�qdt�|�|j
_(dS|
�s�t�,�}|j�	|j
|�dS|�r�dg}ng}|jD]}|tu�r�tV�q�|�|��q�|�r�|d}t-�|�}|�r�|t%|�"d��d�|d<t�|�|j
_(dSg}|jD]}|tu�r�tV�q�|�|��q�|j
�t�|��dS)NTrzmessage/delivery-status�messagerLzcontent-transfer-encoding�8bit)Z7bitrWZbinaryz--z(?P<sep>z4)(?P<end>--)?(?P<ws>[ \t]*)(?P<linesep>\r\n|\r|\n)?$F�end�linesepr,r).rTrAr#�headerRE�match�NLCRErZ MissingHeaderBodySeparatorDefectr<rOrEr*r�_parse_headersrGr(Zset_payload�EMPTYSTRING�joinrRrrCrMrrNZget_boundaryZNoBoundaryInMultipartDefect�str�get�lowerZ-InvalidMultipartContentTransferEncodingDefect�re�compile�escape�group�	NLCRE_eol�search�len�preamblerF�epilogueZ_payload�
isinstanceZStartBoundaryNotFoundDefectZCloseBoundaryNotFoundDefect�	NLCRE_bol)rZheadersr'rQr3rUrS�boundaryZ	separatorZ
boundaryreZcapturing_preamblerjrYZclose_boundary_seen�moZlastlineZeolmorkrXZpayload�	firstlineZbolmorrrrC�sz�





�


��!



���








�




�



�S

�




zFeedParser._parsegenc	CsTd}g}t|�D]�\}}|ddvr(|s"t�|�}|j�|j|�q|�|�q|r9|jj|j�|��dg}}|�	d�rz|dkr\t
�|�}|rU|dt|�
d���}|j�|�q|t|�dkrm|j�|�dSt�|�}|jj�|�q|�d�}|dkr�t�d�}|jj�|�q|d|�}|g}q|r�|jj|j�|��dSdS)Nrrz 	zFrom ��:zMissing header name.)�	enumeraterZ#FirstHeaderLineIsContinuationDefectr<rOrErZset_rawZheader_source_parse�
startswithrgrhrirfZset_unixfromrAr*ZMisplacedEnvelopeHeaderDefectZdefects�findZInvalidHeaderDefect)	rr3Z
lastheaderZ	lastvalue�linenor'rQro�irrrr]�sH







�zFeedParser._parse_headersr)r7r8r9r:rrrHrKrIr!rTrMrCr]rrrrr�s

~cs eZdZdZ�fdd�Z�ZS)rz(Like FeedParser, but feed accepts bytes.cst��|�dd��dS)N�ascii�surrogateescape)�superrK�decoderJ��	__class__rrrKszBytesFeedParser.feed)r7r8r9r:rK�
__classcell__rrr|rrs)r:�__all__rcZemailrZemail._policybaser�collectionsr�iorrdr\rmrgZNLCRE_crackrZr^�NL�objectr#r
rrrrrr�<module>s*




[


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.36 AM
root / linksafe
0755
__init__.cpython-310.opt-1.pyc
1.539 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
__init__.cpython-310.opt-2.pyc
0.937 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.pyc
1.539 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_encoded_words.cpython-310.opt-1.pyc
5.621 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_encoded_words.cpython-310.opt-2.pyc
3.791 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_encoded_words.cpython-310.pyc
5.621 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_header_value_parser.cpython-310.opt-1.pyc
76.509 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_header_value_parser.cpython-310.opt-2.pyc
60.206 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_header_value_parser.cpython-310.pyc
76.54 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_parseaddr.cpython-310.opt-1.pyc
12.234 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_parseaddr.cpython-310.opt-2.pyc
9.422 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_parseaddr.cpython-310.pyc
12.234 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_policybase.cpython-310.opt-1.pyc
14.898 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_policybase.cpython-310.opt-2.pyc
5.933 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_policybase.cpython-310.pyc
14.898 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
base64mime.cpython-310.opt-1.pyc
3.18 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
base64mime.cpython-310.opt-2.pyc
1.465 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
base64mime.cpython-310.pyc
3.18 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
charset.cpython-310.opt-1.pyc
11.299 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
charset.cpython-310.opt-2.pyc
5.151 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
charset.cpython-310.pyc
11.319 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
contentmanager.cpython-310.opt-1.pyc
7.231 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
contentmanager.cpython-310.opt-2.pyc
7.231 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
contentmanager.cpython-310.pyc
7.231 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
encoders.cpython-310.opt-1.pyc
1.604 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
encoders.cpython-310.opt-2.pyc
1.277 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
encoders.cpython-310.pyc
1.604 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
errors.cpython-310.opt-1.pyc
5.729 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
errors.cpython-310.opt-2.pyc
4.36 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
errors.cpython-310.pyc
5.729 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
feedparser.cpython-310.opt-1.pyc
10.214 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
feedparser.cpython-310.opt-2.pyc
8.621 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
feedparser.cpython-310.pyc
10.346 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
generator.cpython-310.opt-1.pyc
12.707 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
generator.cpython-310.opt-2.pyc
9.126 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
generator.cpython-310.pyc
12.707 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
header.cpython-310.opt-1.pyc
16.092 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
header.cpython-310.opt-2.pyc
10.631 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
header.cpython-310.pyc
16.092 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
headerregistry.cpython-310.opt-1.pyc
21.372 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
headerregistry.cpython-310.opt-2.pyc
15.906 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
headerregistry.cpython-310.pyc
21.407 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
iterators.cpython-310.opt-1.pyc
1.938 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
iterators.cpython-310.opt-2.pyc
1.352 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
iterators.cpython-310.pyc
1.938 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
message.cpython-310.opt-1.pyc
36.934 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
message.cpython-310.opt-2.pyc
20.937 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
message.cpython-310.pyc
36.934 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
parser.cpython-310.opt-1.pyc
5.556 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
parser.cpython-310.opt-2.pyc
2.639 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
parser.cpython-310.pyc
5.556 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
policy.cpython-310.opt-1.pyc
9.442 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
policy.cpython-310.opt-2.pyc
3.404 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
policy.cpython-310.pyc
9.442 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
quoprimime.cpython-310.opt-1.pyc
7.46 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
quoprimime.cpython-310.opt-2.pyc
4.105 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
quoprimime.cpython-310.pyc
7.46 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
utils.cpython-310.opt-1.pyc
11.604 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
utils.cpython-310.opt-2.pyc
8.121 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
utils.cpython-310.pyc
11.604 KB
9 Jan 2026 2.05 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF