$33 GRAYBYTE WORDPRESS FILE MANAGER $19

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

/usr/lib64/python3.12/email/__pycache__/

HOME
Current File : /usr/lib64/python3.12/email/__pycache__//generator.cpython-312.pyc
�

�֦i�S���dZgd�ZddlZddlZddlZddlZddlmZddlm	Z	m
Z
ddlmZddl
mZdZd	Zej"d
�Zej"dej&�Zej"d�Zej"d
�ZGd�d�ZGd�de�ZdZGd�de�Zeeej:dz
��ZdezZej@Z y)z:Classes to generate plain text from a message object tree.)�	Generator�DecodedGenerator�BytesGenerator�N)�deepcopy)�StringIO�BytesIO)�_has_surrogates)�HeaderWriteError�_�
z
\r\n|\r|\nz^From z\r\n[^ \t]|\r[^ \n\t]|\n[^ \t]s\r\n[^ \t]|\r[^ \n\t]|\n[^ \t]c��eZdZdZddd�d�Zd�Zdd�Zd�Zd�Zd	�Z	d
�Z
d�Zd�Zd
�Z
d�ZeZd�Zd�Zd�Zd�Zedd��Zed��Zy)rz�Generates output from a Message object tree.

    This basic generator writes the message to the given file object as plain
    text.
    N��policyc�`�|�|�dn|j}||_||_||_||_y)a�Create the generator for message flattening.

        outfp is the output file-like object for writing the message to.  It
        must have a write() method.

        Optional mangle_from_ is a flag that, when True (the default if policy
        is not set), escapes From_ lines in the body of the message by putting
        a `>' in front of them.

        Optional maxheaderlen specifies the longest length for a non-continued
        header.  When a header line is longer (in characters, with tabs
        expanded to 8 spaces) than maxheaderlen, the header will split as
        defined in the Header class.  Set maxheaderlen to zero to disable
        header wrapping.  The default is 78, as recommended (but not required)
        by RFC 2822.

        The policy keyword specifies a policy object that controls a number of
        aspects of the generator's operation.  If no policy is specified,
        the policy associated with the Message object passed to the
        flatten method is used.

        NT)�mangle_from_�_fp�
_mangle_from_�maxheaderlenr)�self�outfprrrs     �(/usr/lib64/python3.12/email/generator.py�__init__zGenerator.__init__&s9��2��#)�>�4�v�7J�7J�L����)���(������c�:�|jj|�y�N)r�write�r�ss  rrzGenerator.writeFs�������q�rc���|j�|jn|j}|�|j|��}|j�|j|j��}|j|_|j|j�|_d|_|j|j�|_|j}|j}	||_||_|rZ|j�}|s*dtjtj��z}|j||jz�|j|�||_||_y#||_||_wxYw)a�Print the message object tree rooted at msg to the output file
        specified when the Generator instance was created.

        unixfrom is a flag that forces the printing of a Unix From_ delimiter
        before the first object in the message tree.  If the original message
        has no From_ delimiter, a `standard' one is crafted.  By default, this
        is False to inhibit the printing of any From_ delimiter.

        Note that for subobjects, no From_ line is printed.

        linesep specifies the characters used to indicate a new line in
        the output.  The default value is determined by the policy specified
        when the Generator instance was created or, if none was specified,
        from the policy associated with the msg.

        N)�linesep��max_line_length�zFrom nobody )r�clonerr �_NL�_encode�_encoded_NL�_EMPTY�_encoded_EMPTY�get_unixfrom�time�ctimer�_write)r�msg�unixfromr r�old_gen_policy�old_msg_policy�ufroms        r�flattenzGenerator.flattenJs%��* $�{�{�2�����������\�\�'�\�2�F����(��\�\�$�2C�2C�\�D�F��>�>����<�<����1������"�l�l�4�;�;�7���
��������	(� �D�K��C�J���(�(�*���*�T�Z�Z��	�	��-D�D�E��
�
�5�4�8�8�+�,��K�K���(�D�K�'�C�J��)�D�K�'�C�J�s
�A;E�E,c�T�|j||jd|j��S)z1Clone this generator with the exact same options.Nr)�	__class__rr)r�fps  rr$zGenerator.clone{s-���~�~�b�"�0�0�"�%)�[�[��2�	2rc��t�Sr)r�rs r�_new_bufferzGenerator._new_buffer�s
���z�rc��|Sr�rs  rr&zGenerator._encode�s���rc���|sytj|�}|ddD].}|j|�|j|j��0|dr|j|d�yy)N���)�NLCRE�splitrr%)r�lines�lines   r�_write_lineszGenerator._write_lines�s`�������E�"���#�2�J�D��J�J�t���J�J�t�x�x� ����9��J�J�u�R�y�!�rc� �|j}	d|_|j�x|_}|j|�||_|j}|`|rOt	|�}|jd��	|d|d<n|j
d|d�|j
d|d�t|dd�}|�|j|�n||�|jj|j��y#||_|j}|`wxYw)N�content-transfer-encodingr�Content-Transfer-Encoding�content-type��_write_headers)r�
_munge_cter9�	_dispatchr�get�replace_header�getattrrHr�getvalue)rr.�oldfp�sfp�	munge_cte�meths      rr-zGenerator._write�s�������	 �"�D�O�!�-�-�/�/�D�H�s��N�N�3���D�H����I�����3�-�C��w�w�2�3�;�3<�Q�<��/�0��"�"�#>�	�!��M����~�y��|�<��s�,�d�3���<�����$���J������s�|�|�~�&��'�D�H����I���s�/C6�6D
c�&�|j�}|j�}tj||f�j	dd�}t|d|zd�}|�0|j	dd�}t|d|zd�}|�|j}||�y)N�-r�_handle_)�get_content_maintype�get_content_subtype�
UNDERSCORE�join�replacerM�
_writeBody)rr.�main�sub�specificrR�generics       rrJzGenerator._dispatch�s���
�'�'�)���%�%�'���?�?�D�#�;�/�7�7��S�A���t�Z�(�2�D�9���<��l�l�3��,�G��4��g�!5�t�<�D��|������S�	rc���|j�D]�\}}|jj||�}|jjr~|jj}|j|jj�st
d|�d|����tj|j|��rt
d|����|j|���|j|j�y�Nz folded header does not end with z: z folded header contains newline: )�	raw_itemsr�fold�verify_generated_headersr �endswithr
�NEWLINE_WITHOUT_FWSP�search�removesuffixrr%�rr.�h�v�foldedr s      rrHzGenerator._write_headers�s����M�M�O�D�A�q��[�[�%�%�a��+�F��{�{�3�3��+�+�-�-�����t�{�{�':�':�;�*�:�7�+�R��z�R�T�T�'�.�.�v�/B�/B�7�/K�L�*�:�6�*�E�G�G��J�J�v��$�	
�
�
�4�8�8�rc��|j�}|�yt|t�stdt	|�z��t|j�r\|jd�}|�It|�}|d=|j|j|�|j�}|d|df|_
|jrtjd|�}|j|�y)Nzstring payload expected: %s�charsetrDrF�>From )�get_payload�
isinstance�str�	TypeError�typer	�_payload�	get_paramr�set_payloadrIr�fcrer]rB)rr.�payloadrns    r�_handle_textzGenerator._handle_text�s����/�/�#���?���'�3�'��9�D��M�I�J�J��3�<�<�(��m�m�I�.�G��"��s�m���3�4�������g�6��/�/�+��#&�'B�#C�#&�~�#6�#8�������h�h�x��1�G����'�"rc�0�g}|j�}|�g}n5t|t�r|j|�yt|t�s|g}|D]`}|j�}|j
|�}|j|d|j��|j|j���b|j�}|s=|jj|�}|j|�}|j|�|j �e|j"r!t$j'd|j �}	n|j }	|j)|	�|j|j�|jd|z|jz�|r*|j*j|j-d��|D]K}
|j|jdz|z|jz�|j*j|
��M|j|jdz|zdz|jz�|j.�K|j"r!t$j'd|j.�}n|j.}|j)|�yy)NF�r/r roz--r)rprqrrr�listr9r$r3r%�appendrN�get_boundaryr'rY�_make_boundary�set_boundary�preamblerrxr]rBr�pop�epilogue)rr.�msgtexts�subparts�partr�g�boundary�alltextr��	body_partr�s            r�_handle_multipartzGenerator._handle_multipart
s�����?�?�$�����H�
��#�
&��J�J�x� ���H�d�+� �z�H��D�� � �"�A��
�
�1�
�A�
�I�I�d�U�D�H�H�I�=��O�O�A�J�J�L�)�	��#�#�%����&�&�+�+�H�5�G��*�*�7�3�H����X�&��<�<�#��!�!��8�8�H�c�l�l�;���<�<�����h�'��J�J�t�x�x� ��
�
�4�(�?�T�X�X�-�.���H�H�N�N�8�<�<��?�+�"�I��J�J�t�x�x�$���1�D�H�H�<�=��H�H�N�N�9�%�	"�	
�
�
�4�8�8�d�?�X�-��4�t�x�x�?�@��<�<�#��!�!��8�8�H�c�l�l�;���<�<�����h�'�$rc��|j}|jd��|_	|j|�||_y#||_wxYw)Nrr!)rr$r�)rr.�ps   r�_handle_multipart_signedz"Generator._handle_multipart_signedGsA��
�K�K���g�g�a�g�0���	��"�"�3�'��D�K��!�D�K�s	�>�	Ac��g}|j�D]�}|j�}|j|�}|j|d|j��|j�}|j
|j�}|r@|d|jk(r.|j|jj|dd����|j|���|jj|jj|��y)NFr|r=)
rpr9r$r3r%rNr?r'r)r~rYrr)rr.�blocksr�rr��textr@s        r�_handle_message_delivery_statusz)Generator._handle_message_delivery_statusRs������O�O�%�D�� � �"�A��
�
�1�
�A�
�I�I�d�U�D�H�H�I�=��:�:�<�D��J�J�t�/�/�0�E���r��d�&9�&9�9��
�
�d�.�.�3�3�E�#�2�J�?�@��
�
�d�#�&�	
�����t�'�'�,�,�V�4�5rc�R�|j�}|j|�}|j}t|t�r>|j|j
d�d|j��|j�}n|j|�}|jj|�y)NrFr|)r9r$rurqr}r3rpr%rNr&rr)rr.rr�rys     r�_handle_messagezGenerator._handle_messagegsz��������J�J�q�M���,�,���g�t�$�
�I�I�c�o�o�a�(�5�$�(�(�I�K��j�j�l�G��l�l�7�+�G������w�rc�@�tjtj�}dt|zzdz}|�|S|}d}	|jdt
j|�zdztj�}|j|�s	|S|dzt|�z}|dz
}�d)Nz===============z==rz^--z(--)?$�.rG)�random�	randrange�sys�maxsize�_fmt�_compile_re�re�escape�	MULTILINErgrr)�clsr��tokenr��b�counter�cres       rr�zGenerator._make_boundary�s���� � ����-������.��5���<��O�������/�/�%�"�)�)�A�,�"6��"A�2�<�<�P�C��:�:�d�#�����3���W��-�A��q�L�G�rc�.�tj||�Sr)r��compile�r�r�flagss   rr�zGenerator._compile_re�s���z�z�!�U�#�#r)NN)FNr)�__name__�
__module__�__qualname__�__doc__rrr3r$r9r&rBr-rJrHrzr[r�r�r�r��classmethodr�r�r;rrrrs�������@�/(�b2�(��	"� %'�N�(
�&#�,�J�8(�t	�6�* �2����"�$��$rrc�N��eZdZdZd�Zd�Zd�Zd�Z�fd�ZeZ	e
d��Z�xZS)ra�Generates a bytes version of a Message object tree.

    Functionally identical to the base Generator except that the output is
    bytes and not string.  When surrogates were used in the input to encode
    bytes, these are decoded back to bytes for output.  If the policy has
    cte_type set to 7bit, then the message is transformed such that the
    non-ASCII bytes are properly content transfer encoded, using the charset
    unknown-8bit.

    The outfp object must accept bytes in its write method.
    c�Z�|jj|jdd��y)N�ascii�surrogateescape)rr�encoders  rrzBytesGenerator.write�s�������q�x�x��):�;�<rc��t�Sr)rr8s rr9zBytesGenerator._new_buffer�s
���y�rc�$�|jd�S�Nr�)r�rs  rr&zBytesGenerator._encode�s���x�x�� � rc���|j�D]�\}}|jj||�}|jjrx|jjj�}|j
|�std|�d|����tj|j|��rtd|����|jj|���|j|j�yra)rbr�fold_binaryrdr r�rer
�NEWLINE_WITHOUT_FWSP_BYTESrgrhrrr%ris      rrHzBytesGenerator._write_headers�s����M�M�O�D�A�q��[�[�,�,�Q��2�F��{�{�3�3��+�+�-�-�4�4�6�����w�/�*�:�7�+�R��z�R�T�T�-�4�4�V�5H�5H��5Q�R�*�:�6�*�E�G�G��H�H�N�N�6�"�$�	
�
�
�4�8�8�rc�<��|j�yt|j�rf|jjdk(sM|jr%t
j
d|j�|_|j|j�ytt|�+|�y)N�7bitro)rur	r�cte_typerrxr]rB�superrrz)rr.r5s  �rrzzBytesGenerator._handle_text�so����<�<����3�<�<�(����1E�1E�v�1M��!�!�#�x�x��#�,�,�?������c�l�l�+��.��3�C�8rc�L�tj|jd�|�Sr�)r�r�r�r�s   rr�zBytesGenerator._compile_re�s���z�z�!�(�(�7�+�U�3�3r)
r�r�r�r�rr9r&rHrzr[r�r��
__classcell__)r5s@rrr�s:���
�=��!��"
9��J��4��4rrzD[Non-text (%(type)s) part of message omitted, filename %(filename)s]c�$�eZdZdZddd�d�Zd�Zy)rz�Generates a text representation of a message.

    Like the Generator base class, except that non-text parts are substituted
    with a format string representing the part.
    Nrc�b�tj|||||��|�t|_y||_y)a�Like Generator.__init__() except that an additional optional
        argument is allowed.

        Walks through all subparts of a message.  If the subpart is of main
        type `text', then it prints the decoded payload of the subpart.

        Otherwise, fmt is a format string that is used instead of the message
        payload.  fmt is expanded with the following keywords (in
        %(keyword)s format):

        type       : Full MIME type of the non-text part
        maintype   : Main MIME type of the non-text part
        subtype    : Sub-MIME type of the non-text part
        filename   : Filename of the non-text part
        description: Description associated with the non-text part
        encoding   : Content transfer encoding of the non-text part

        The default value for fmt is None, meaning

        [Non-text (%(type)s) part of message omitted, filename %(filename)s]
        rN)rr�_FMTr�)rrrr�fmtrs      rrzDecodedGenerator.__init__�s5��.	���4���l�"(�	�	*��;��D�I��D�Irc
��|j�D]�}|j�}|dk(rt|jd��|���6|dk(r�<t|j|j�|j�|j
�|jd�|jdd�|jd	d
�d�z|����y)Nr�F)�decode)�file�	multipartz
[no filename]zContent-Descriptionz[no description]rEz
[no encoding])rt�maintype�subtype�filename�description�encoding)	�walkrV�printrpr��get_content_typerW�get_filenamerK)rr.r�r�s    rrJzDecodedGenerator._dispatch�s����H�H�J�D��0�0�2�H��6�!��d�&�&�e�&�4�4�@��[�(���d�i�i�#'�#8�#8�#:�#'�#<�#<�#>�#'�#;�#;�#=�#'�#4�#4�_�#E�#'�8�8�,A�,>�$@�#'�8�8�,G�,;�$=�	#�	�!�	"�r)NNN)r�r�r�r�rrJr;rrrr�s���
���<"rrrGz%%0%dd)!r��__all__r�r�r+r��copyr�iorr�email.utilsr	�email.errorsr
rX�NLr�r>r�rxrfr�rrr�r�len�reprr��_widthr�r�r;rr�<module>r�s���
A�
=��	�
��
�� �'�)�
�
�	����
�
�=�!���r�z�z�)�R�\�\�*��!�r�z�z�"C�D��'�R�Z�Z�(J�K��x$�x$�v84�Y�84�vN��6"�y�6"�t

�T�#�+�+�a�-�
 �	!���&����)�)�r

Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
26 May 2026 8.05 AM
root / root
0755
__init__.cpython-312.opt-1.pyc
1.876 KB
27 Apr 2026 4.36 PM
root / root
0644
__init__.cpython-312.opt-2.pyc
1.297 KB
27 Apr 2026 4.36 PM
root / root
0644
__init__.cpython-312.pyc
1.876 KB
27 Apr 2026 4.36 PM
root / root
0644
_encoded_words.cpython-312.opt-1.pyc
8.113 KB
27 Apr 2026 4.36 PM
root / root
0644
_encoded_words.cpython-312.opt-2.pyc
6.29 KB
27 Apr 2026 4.36 PM
root / root
0644
_encoded_words.cpython-312.pyc
8.113 KB
27 Apr 2026 4.36 PM
root / root
0644
_header_value_parser.cpython-312.opt-1.pyc
130.734 KB
27 Apr 2026 4.36 PM
root / root
0644
_header_value_parser.cpython-312.opt-2.pyc
114.531 KB
27 Apr 2026 4.36 PM
root / root
0644
_header_value_parser.cpython-312.pyc
130.795 KB
27 Apr 2026 4.36 PM
root / root
0644
_parseaddr.cpython-312.opt-1.pyc
22.702 KB
27 Apr 2026 4.36 PM
root / root
0644
_parseaddr.cpython-312.opt-2.pyc
19.93 KB
27 Apr 2026 4.36 PM
root / root
0644
_parseaddr.cpython-312.pyc
22.702 KB
27 Apr 2026 4.36 PM
root / root
0644
_policybase.cpython-312.opt-1.pyc
18.199 KB
27 Apr 2026 4.36 PM
root / root
0644
_policybase.cpython-312.opt-2.pyc
9.291 KB
27 Apr 2026 4.36 PM
root / root
0644
_policybase.cpython-312.pyc
18.199 KB
27 Apr 2026 4.36 PM
root / root
0644
base64mime.cpython-312.opt-1.pyc
3.854 KB
27 Apr 2026 4.36 PM
root / root
0644
base64mime.cpython-312.opt-2.pyc
2.149 KB
27 Apr 2026 4.36 PM
root / root
0644
base64mime.cpython-312.pyc
3.854 KB
27 Apr 2026 4.36 PM
root / root
0644
charset.cpython-312.opt-1.pyc
14.822 KB
27 Apr 2026 4.36 PM
root / root
0644
charset.cpython-312.opt-2.pyc
8.703 KB
27 Apr 2026 4.36 PM
root / root
0644
charset.cpython-312.pyc
14.888 KB
27 Apr 2026 4.36 PM
root / root
0644
contentmanager.cpython-312.opt-1.pyc
12.074 KB
27 Apr 2026 4.36 PM
root / root
0644
contentmanager.cpython-312.opt-2.pyc
12.074 KB
27 Apr 2026 4.36 PM
root / root
0644
contentmanager.cpython-312.pyc
12.074 KB
27 Apr 2026 4.36 PM
root / root
0644
encoders.cpython-312.opt-1.pyc
2.042 KB
27 Apr 2026 4.36 PM
root / root
0644
encoders.cpython-312.opt-2.pyc
1.725 KB
27 Apr 2026 4.36 PM
root / root
0644
encoders.cpython-312.pyc
2.042 KB
27 Apr 2026 4.36 PM
root / root
0644
errors.cpython-312.opt-1.pyc
6.858 KB
27 Apr 2026 4.36 PM
root / root
0644
errors.cpython-312.opt-2.pyc
5.4 KB
27 Apr 2026 4.36 PM
root / root
0644
errors.cpython-312.pyc
6.858 KB
27 Apr 2026 4.36 PM
root / root
0644
feedparser.cpython-312.opt-1.pyc
19.149 KB
27 Apr 2026 4.36 PM
root / root
0644
feedparser.cpython-312.opt-2.pyc
17.563 KB
27 Apr 2026 4.36 PM
root / root
0644
feedparser.cpython-312.pyc
19.336 KB
27 Apr 2026 4.36 PM
root / root
0644
generator.cpython-312.opt-1.pyc
20.736 KB
27 Apr 2026 4.36 PM
root / root
0644
generator.cpython-312.opt-2.pyc
17.165 KB
27 Apr 2026 4.36 PM
root / root
0644
generator.cpython-312.pyc
20.736 KB
27 Apr 2026 4.36 PM
root / root
0644
header.cpython-312.opt-1.pyc
23.937 KB
27 Apr 2026 4.36 PM
root / root
0644
header.cpython-312.opt-2.pyc
18.493 KB
27 Apr 2026 4.36 PM
root / root
0644
header.cpython-312.pyc
23.937 KB
27 Apr 2026 4.36 PM
root / root
0644
headerregistry.cpython-312.opt-1.pyc
30.188 KB
27 Apr 2026 4.36 PM
root / root
0644
headerregistry.cpython-312.opt-2.pyc
24.743 KB
27 Apr 2026 4.36 PM
root / root
0644
headerregistry.cpython-312.pyc
30.241 KB
27 Apr 2026 4.36 PM
root / root
0644
iterators.cpython-312.opt-1.pyc
2.735 KB
27 Apr 2026 4.36 PM
root / root
0644
iterators.cpython-312.opt-2.pyc
2.159 KB
27 Apr 2026 4.36 PM
root / root
0644
iterators.cpython-312.pyc
2.735 KB
27 Apr 2026 4.36 PM
root / root
0644
message.cpython-312.opt-1.pyc
51.866 KB
27 Apr 2026 4.36 PM
root / root
0644
message.cpython-312.opt-2.pyc
35.986 KB
27 Apr 2026 4.36 PM
root / root
0644
message.cpython-312.pyc
51.866 KB
27 Apr 2026 4.36 PM
root / root
0644
parser.cpython-312.opt-1.pyc
6.59 KB
27 Apr 2026 4.36 PM
root / root
0644
parser.cpython-312.opt-2.pyc
3.69 KB
27 Apr 2026 4.36 PM
root / root
0644
parser.cpython-312.pyc
6.59 KB
27 Apr 2026 4.36 PM
root / root
0644
policy.cpython-312.opt-1.pyc
11.527 KB
27 Apr 2026 4.36 PM
root / root
0644
policy.cpython-312.opt-2.pyc
5.513 KB
27 Apr 2026 4.36 PM
root / root
0644
policy.cpython-312.pyc
11.527 KB
27 Apr 2026 4.36 PM
root / root
0644
quoprimime.cpython-312.opt-1.pyc
9.719 KB
27 Apr 2026 4.36 PM
root / root
0644
quoprimime.cpython-312.opt-2.pyc
6.392 KB
27 Apr 2026 4.36 PM
root / root
0644
quoprimime.cpython-312.pyc
9.719 KB
27 Apr 2026 4.36 PM
root / root
0644
utils.cpython-312.opt-1.pyc
15.598 KB
27 Apr 2026 4.36 PM
root / root
0644
utils.cpython-312.opt-2.pyc
12.466 KB
27 Apr 2026 4.36 PM
root / root
0644
utils.cpython-312.pyc
15.598 KB
27 Apr 2026 4.36 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF