| Server IP : 43.141.49.119 / Your IP : 113.219.202.44 Web Server : Apache System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64 User : www ( 1000) PHP Version : 8.1.27 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib64/python3.11/email/__pycache__/ |
Upload File : |
�
��e�N � �R � g d �Z ddlZddlZddlZddlZddlmZ ddlmZm Z ddl
mZ dZdZ
ej d� � Z ej d ej � � Z G d
� d� � Z G d� d
e� � ZdZ G d� de� � Z e eej dz
� � � � Zdez Zej ZdS ))� Generator�DecodedGenerator�BytesGenerator� N)�deepcopy)�StringIO�BytesIO)�_has_surrogates�_�
z
\r\n|\r|\nz^From c � � e Zd Z ddd�d�Zd� Zdd�Zd� Zd� Zd � Zd
� Z d� Z
d� Zd
� Zd� Z
e
Zd� Zd� Zd� Zd� Zedd�� � Zed� � � ZdS )r N��policyc �Z � |�|�dn|j }|| _ || _ || _ || _ d S )NT)�mangle_from_�_fp�
_mangle_from_�maxheaderlenr )�self�outfpr r r s �(/usr/lib64/python3.11/email/generator.py�__init__zGenerator.__init__# sA � � �. ��#)�>�4�4�v�7J�L����)���(�������� c �: � | j � |� � d S �N)r �write�r �ss r r zGenerator.writeC s � �����q�����r Fc � � | j �|j n| j }|�|� |�� � }| j �|� | j �� � }|j | _ | � | j � � | _ d| _ | � | j � � | _ | j }|j } || _ ||_ |r[|� � � }|s(dt j t j
� � � � z }| � || j z � � | �
|� � || _ ||_ d S # || _ ||_ w xY w)N)�linesep��max_line_length� zFrom nobody )r �cloner r �_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.flattenG sJ � � �( $�{�2����������\�\�'�\�2�2�F���(��\�\�$�2C�\�D�D�F��>����<�<���1�1������"�l�l�4�;�7�7���
������ (� �D�K��C�J��
-��(�(�*�*��� E�*�T�Z�� ���-D�-D�D�E��
�
�5�4�8�+�,�,�,��K�K�����(�D�K�'�C�J�J�J�� )�D�K�'�C�J�'�'�'�'s
�1B E �Ec �J � | � || j d | j �� � S �Nr
)� __class__r r )r �fps r r# zGenerator.clonex s0 � �?��~�~�b�"�0�"�%)�[� � 2� 2� 2r c � � t � � S r )r �r s r �_new_bufferzGenerator._new_buffer� s � ��z�z�r c � � |S r � r s r r% zGenerator._encode� s � ��r c � � |sd S t � |� � }|d d� D ]1}| � |� � | � | j � � �2|d r| � |d � � d S d S )N���)�NLCRE�splitr r$ )r �lines�lines r �_write_lineszGenerator._write_lines� s� � �� ��F����E�"�"���#�2�#�J� !� !�D��J�J�t�����J�J�t�x� � � � ���9� "��J�J�u�R�y�!�!�!�!�!� "� "r c �d � | j } d | _ | � � � x| _ }| � |� � || _ | j }| `n# || _ | j }| `w xY w|rht |� � }|� d� � �|d |d<