| Server IP : 43.141.50.122 / Your IP : 113.219.202.141 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 : /lib64/python3.11/email/__pycache__/ |
Upload File : |
�
��en4 � � � d Z g d�ZddlZddlZddlZddlZddlZddlZddlZ ddl
mZ ddl
mZ
ddl
mZ ddl
mZmZmZ ddlmZ d Zd
Zd
ZdZdZ ej d
� � Z ej d� � Zd� Zd� Zd%d�Zd� Zd� Z d&d�Z!d'd�Z"d(d�Z#d� Z$d� Z%d� Z&d� Z'd(d�Z( ej dej) � � Z*d� Z+ d)d"�Z,d*d$�Z-dS )+zMiscellaneous utilities.)�collapse_rfc2231_value�
decode_params�decode_rfc2231�encode_rfc2231�
formataddr�
formatdate�format_datetime�getaddresses�
make_msgid� mktime_tz� parseaddr� parsedate�parsedate_tz�parsedate_to_datetime�unquote� N)�quote)�AddressList)r )r
r �
_parsedate_tz)�Charsetz, � z
�'z[][\\()<>@,:;".]z[\\"]c �R � | � � � dS # t $ r Y dS w xY w)z8Return True if s contains surrogate-escaped binary data.FT)�encode�UnicodeEncodeError)�ss �$/usr/lib64/python3.11/email/utils.py�_has_surrogatesr 3 s; � �
� ���
�
�
��u��� � � ��t�t����s � �
&�&c �Z � | � dd� � }|� dd� � S )N�utf-8�surrogateescape�replace)r �decode)�string�original_bytess r � _sanitizer% @ s. � �
�]�]�7�,=�>�>�N�� � ��)�4�4�4� r c � � | \ }}|� d� � |r� |� d� � d}t � |� � rd}t � d|� � }|�|�|�d|�d�S # t
$ rD t
|t � � rt |� � }|� |� � }|�d|�d�cY S w xY w|S )a� The inverse of parseaddr(), this takes a 2-tuple of the form
(realname, email_address) and returns the string value suitable
for an RFC 2822 From, To or Cc header.
If the first element of pair is false, then the second element is
returned unmodified.
The optional charset is the character set that is used to encode
realname in case realname is not ASCII safe. Can be an instance of str or
a Charset-like object which has a header_encode method. Default is
'utf-8'.
�asciir �"z\\\g<0>z <�>)
r �
specialsre�search� escapesre�subr �
isinstance�strr �
header_encode)�pair�charset�name�address�quotes�encoded_names r r r L s� � � �M�D�'��N�N�7�����
C� C��K�K�� � � � �F�� � ��&�&�
����=�=��T�2�2�D�$*�F�D�D�&�&�&�'�'�'�B�B�� "� 7� 7� 7��'�3�'�'�
+�!�'�*�*��"�0�0��6�6�L� ,���g�g�g�6�6�6�6� 7���� �Ns �A8 �8AC�Cc �v � t � d� | D � � � � }t |� � }|j S )z7Return a list of (REALNAME, EMAIL) for each fieldvalue.c 3 �4 K � | ]}t |� � V � �d S )N�r0 )�.0�vs r � <genexpr>zgetaddresses.<locals>.<genexpr>p s( � � � �6�6�Q�#�a�&�&�6�6�6�6�6�6r&