AlkantarClanX12

Your IP : 18.191.103.144


Current Path : /opt/alt/python312/lib64/python3.12/email/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/email/__pycache__/feedparser.cpython-312.opt-2.pyc

�

�Q�fY��P�	ddgZddlZddlmZddlmZddlmZddlm	Z	ejd�Zejd	�Zejd
�Z
ejd	�Zejd�ZdZd
Ze�ZGd�de�ZGd�d�ZGd�de�Zy)�
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�J�eZdZ	d�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zy)�BufferedSubFilec�`�td��|_t�|_g|_d|_y)Nr	)�newlineF)r�_partialr�_lines�	_eofstack�_closed��selfs �7/opt/alt/python312/lib64/python3.12/email/feedparser.py�__init__zBufferedSubFile.__init__4s'��!��,��
��g���������c�:�|jj|�y�N)r�append)r�preds  r�push_eof_matcherz BufferedSubFile.push_eof_matcher?s�������d�#rc�6�|jj�Sr)r�poprs r�pop_eof_matcherzBufferedSubFile.pop_eof_matcherBs���~�~�!�!�#�#rc��|jjd�|j|jj��|jjd�|jj	�d|_y)NrT)r�seek�	pushlines�	readlines�truncaterrs r�closezBufferedSubFile.closeEsV���
�
���1�����t�}�}�.�.�0�1��
�
���1���
�
��� ���rc��|js|jrytS|jj�}t	|j
�D]'}||�s�|jj
|�y|S�Nr	)rr�NeedMoreData�popleft�reversedr�
appendleft)r�line�ateofs   r�readlinezBufferedSubFile.readlineMse���{�{��|�|�����{�{�"�"�$���d�n�n�-�E��T�{����&�&�t�,��	.�
�rc�:�|jj|�yr)rr+�rr,s  r�
unreadlinezBufferedSubFile.unreadline_s��	
�����t�$rc��	|jj|�d|vrd|vry|jjd�|jj�}|jjd�|jj	�|djd�s)|jj|j
��|j|�y)Nr
�
r���)r�writer!r#r$�endswithrr")r�data�partss   r�pushzBufferedSubFile.pushds���2��
�
���D�!��t���D� 0��	
�
�
���1���
�
�'�'�)���
�
���1���
�
��� ��R�y�!�!�$�'��M�M����	�	��,����u�rc�:�|jj|�yr)r�extend)r�liness  rr"zBufferedSubFile.pushlinesys�������5�!rc��|Sr�rs r�__iter__zBufferedSubFile.__iter__|s���rc�<�|j�}|dk(rt�|Sr')r.�
StopIterationr0s  r�__next__zBufferedSubFile.__next__s���}�}����2�:����rN)
�__name__�
__module__�__qualname__rrrr%r.r1r9r"r?rBr>rrrr,s9���	�$�$���$%�
�*"��rrc�L�eZdZ	ded�d�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zy)
rN��policyc�t�	||_d|_|�,|j�ddlm}||_n-|j|_n||_	||j��t�|_g|_	|j�j|_d|_
d|_d|_y#t$r
d|_Y�]wxYw)NFr)�MessagerGT)rH�_old_style_factory�message_factory�
email.messagerJ�_factory�	TypeErrorr�_input�	_msgstack�	_parsegenrB�_parse�_cur�_last�_headersonly)rrNrHrJs    rrzFeedParser.__init__�s���	����"'������%�%�-�1� '��
� &� 6� 6��
�$�D�M�
/�����,�&�'�������n�n�&�/�/�����	���
�!�����
/�*.��'�
/�s�B$�$B7�6B7c��d|_y)NT)rVrs r�_set_headersonlyzFeedParser._set_headersonly�s
�� ��rc�\�	|jj|�|j�yr)rPr9�_call_parse)rr7s  r�feedzFeedParser.feed�s#��-�����������rc�D�	|j�y#t$rYywxYwr)rSrArs rrZzFeedParser._call_parse�s"��	��K�K�M���	��	�s��	�c�:�	|jj�|j�|j�}|j	�dk(rL|j�s<|js0tj�}|jj||�|S)N�	multipart)rPr%rZ�_pop_message�get_content_maintype�is_multipartrVr�!MultipartInvariantViolationDefectrH�
handle_defect)r�root�defects   rr%zFeedParser.close�s}��J������������ � �"���$�$�&�+�5��(�(�*�4�3D�3D��=�=�?�F��K�K�%�%�d�F�3��rc��|jr|j�}n|j|j��}|jr.|jj	�dk(r|jd�|jr|jdj|�|jj|�||_||_	y)NrGzmultipart/digestzmessage/rfc822r4)
rKrNrHrT�get_content_type�set_default_typerQ�attachrrU)r�msgs  r�_new_messagezFeedParser._new_message�s����"�"��-�-�/�C��-�-�t�{�{�-�3�C��9�9����3�3�5�9K�K�� � �!1�2��>�>��N�N�2��%�%�c�*������c�"���	���
rc��|jj�}|jr|jd|_|Sd|_|S)Nr4)rQrrT)r�retvals  rr_zFeedParser._pop_message�s@�����#�#�%���>�>����r�*�D�I��
��D�I��
rc#�BK�|j�g}|jD]�}|tur	t���tj	|�slt
j	|�sUt
j�}|jj|j|�|jj|�n|j|���|j|�|jrug}	|jj�}|tur	t���,|dk(rn|j|��C|jj!t"j%|��y|jj'�dk(r�	|jj)t
j�|j+�D]}|tur	t���n|j-�|jj/�	|jj�}|tur	t���,		|jj�}|tur	t���,	|dk(r	y|jj|���|jj1�dk(r8|j+�D]}|tur	t���n|j-�y|jj1�dk(�r�|jj3�}|��t
j4�}|jj|j|�g}|jD]$}|tur	t���|j|��&|jj!t"j%|��yt7|jj9dd��j;�dvr:t
j<�}|jj|j|�d	|z}t?j@d
t?jB|�zdz�}d}	g}
d}d}	|jj�}|tur	t���,|dk(r�n�|j	|�}
|
�r�|
jEd
�rd}|
jEd�}�ny|	r�|
ra|
d}tFjI|�}|r!|dtK|jEd��|
d<t"j%|
�|j_&d}	|jj|���	|jj�}|tur	t���,|j	|�}
|
s|jj|�n�[|jj)|j�|j+�D]}|tur	t���n|jNj1�dk(rv|jNjP}|dk(rd|jN_(n�|��tFjI|�}
|
r�tK|
jEd��}|d||jN_(nl|jNjR}tU|t6�rFtFjI|�}
|
r/|dtK|
jEd��}||jN_)|jj/�|j-�|j|_'n|
j|����|	r�t
jV�}|jj|j|�|jj!t"j%|
��g}|jD]}|tus�t���t"j%|�|j_(y|s;t
jX�}|jj|j|�y|rdg}ng}|jD]$}|tur	t���|j|��&|r<|d}tZj	|�}|r |tK|jEd��d|d<t"j%|�|j_(yg}|jD]$}|tur	t���|j|��&|jj!t"j%|��y�w)NTr	zmessage/delivery-status�messager^zcontent-transfer-encoding�8bit)�7bitrp�binaryz--z(?P<sep>z4)(?P<end>--)?(?P<ws>[ \t]*)(?P<linesep>\r\n|\r|\n)?$F�end�linesepr4r).rkrPr(�headerRE�match�NLCREr� MissingHeaderBodySeparatorDefectrHrcrTr1r�_parse_headersrVr.�set_payload�EMPTYSTRING�joinrgrrRr_rr`�get_boundary�NoBoundaryInMultipartDefect�str�get�lower�-InvalidMultipartContentTransferEncodingDefect�re�compile�escape�group�	NLCRE_eol�search�len�preamblerU�epilogue�_payload�
isinstance�StartBoundaryNotFoundDefect�CloseBoundaryNotFoundDefect�	NLCRE_bol)r�headersr,rer<rm�boundary�	separator�
boundaryre�capturing_preambler�rt�close_boundary_seen�mo�lastline�eolmor�rs�payload�	firstline�bolmos                     rrRzFeedParser._parsegen�s������������K�K�D��|�#�"�"���>�>�$�'��{�{�4�(�#�D�D�F�F��K�K�-�-�d�i�i��@��K�K�*�*�4�0���N�N�4� � � 	
���G�$�����E���{�{�+�+�-���<�'�&�&���2�:�����T�"��
�I�I�!�!�+�"2�"2�5�"9�:���9�9�%�%�'�+D�D�����,�,�U�[�[�9�"�n�n�.�F���-�*�*� ��	/�
�!�!�#����+�+�-�
��;�;�/�/�1�D��|�+�*�*� ����;�;�/�/�1�D��|�+�*�*� ���2�:��
����&�&�t�,�?�B�9�9�)�)�+�y�8��.�.�*���\�)�&�&���	+�

������9�9�)�)�+�{�:��y�y�-�-�/�H���
 �;�;�=�����)�)�$�)�)�V�<��� �K�K�D��|�+�*�*� ��L�L��&�	(�
�	�	�%�%�k�&6�&6�u�&=�>���D�I�I�M�M�"=�v�F�G�M�M�O�5�6��M�M�O�����)�)�$�)�)�V�<�
�x��I�����R�Y�Y�y�1�1�G�H�I�J�"&���H��G�"'����{�{�+�+�-���<�'�&�&���2�:���%�%�d�+���
�x�x���.2�+�"$�(�(�9�"5���)�#�(0��|�H�$-�$4�$4�X�$>�E�$�/7�8M�#�e�k�k�!�n�:M�9M�/N����1<�1A�1A�(�1K�D�I�I�.�-2�*����.�.�t�4� �
�#�{�{�3�3�5���<�/�".�.�$�'�-�-�d�3��!� �K�K�2�2�4�8�!���K�K�0�0��1A�1A�B�"&�.�.�"2��!�\�1�".�.�$��	#3��z�z�6�6�8�K�G�#'�:�:�#6�#6��#�r�>�26�D�J�J�/�%�1�!*�!1�!1�(�!;�B�!�&)�"�(�(�1�+�&6��6>�u���o��
�
� 3�"&�*�*�"5�"5��%�g�s�3�!*�!1�!1�'�!:�B�!�*1�2D�C������4D�3D�*E��6=��
�
� 3��K�K�/�/�1��%�%�'�"&���D�J��O�O�D�)�_�f"��;�;�=�����)�)�$�)�)�V�<��	�	�%�%�k�&6�&6�x�&@�A��� �K�K�D��|�+�*�*� �(�&1�%5�%5�h�%?��	�	�"��'��;�;�=�����)�)�$�)�)�V�<����4���������<�'�&�&������%�	$��$�Q�K�	�!���	�2���"+�C����A��,?�,@�"A�H�Q�K�!,�!1�!1�(�!;�D�I�I������K�K�D��|�#�"�"���L�L���	 �
	
�	�	���k�.�.�u�5�6�s
�^.d�1E.dc��d}g}t|�D�]�\}}|ddvrP|s<tj|�}|jj	|j
|��L|j
|��^|r6|j
j|jj|��dg}}|jd�r�|dk(rQtj|�}|r|dt|jd��}|j
j|���|t|�dz
k(r|jj!|�ytj"|�}|j
j$j
|���g|j'd�}|dk(r<tj(d�}|j
j$j
|����|d|}|g}���|r3|j
j|jj|��yy)Nr	rz 	zFrom ��:zMissing header name.)�	enumerater�#FirstHeaderLineIsContinuationDefectrHrcrTr�set_raw�header_source_parse�
startswithr�r�r�r��set_unixfromrPr1�MisplacedEnvelopeHeaderDefect�defects�find�InvalidHeaderDefect)	rr<�
lastheader�	lastvalue�linenor,rer��is	         rryzFeedParser._parse_headers�s����
��	�%�e�,�L�F�D��A�w�%��!�$�G�G��M�F��K�K�-�-�d�i�i��@��� � ��&���!��	�	�!�!�4�;�;�#B�#B�9�#M�N�(*�B�I�
����w�'��Q�;�"�)�)�$�/�B��#�$6�c�"�(�(�1�+�&6�%6�7���I�I�*�*�4�0���s�5�z�A�~�-��K�K�*�*�4�0��$�A�A�$�G�F��I�I�%�%�,�,�V�4���	�	�#��A�
�A�v��3�3�4J�K���	�	�!�!�(�(��0���b�q��J���I�g-�j��D�I�I���t�{�{�>�>�y�I�J�rr)
rCrDrErrrXr[rZr%rkr_rRryr>rrrr�s<��'�"��"�>!��
����{7�z:Krc� ��eZdZ	�fd�Z�xZS)rc�D��t�|�|jdd��y)N�ascii�surrogateescape)�superr[�decode)rr7�	__class__s  �rr[zBytesFeedParser.feeds���
���T�[�[��*;�<�=r)rCrDrEr[�
__classcell__)r�s@rrrs���2�>�>r)�__all__r��emailr�email._policybaser�collectionsr�iorr�rwr�r��NLCRE_crackrur{�NL�objectr(rrrr>rr�<module>r�s���
�"�*�
+��	��&�����
�
�=�!���B�J�J��'�	��B�J�J�(�)�	��b�j�j��)���2�:�:�>�?����	���x��W�f�W�tIK�IK�X>�j�>r