| Server IP : 43.141.49.92 / Your IP : 113.219.202.173 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 : |
�
��eSQ � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ G d� d� � Z G d� d � � Z G d
� de
� � Zd� Z G d
� d� � Z
G d� de
� � Z G d� d� � Z G d� de� � Z G d� d� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� d� � Z G d� d � � Z G d!� d"e� � Z G d#� d$e� � Z G d%� d&� � Z G d'� d(� � Zi d)e�d*e�d+e�d,e�d-e�d.e�d/e�d0e�d1e�d2e�d3e�d4e�d5e�d6e�d7e�d8e�d9e�eeed:��Z G d;� d<� � Zd=S )>z�Representing and manipulating email headers via custom objects.
This module provides an implementation of the HeaderRegistry API.
The implementation is designed to flexibly follow RFC5322 rules.
� )�MappingProxyType)�utils)�errors)�_header_value_parserc � � e Zd Zdd�Zed� � � Zed� � � Zed� � � Zed� � � Zd� Z d � Z
d
� ZdS )�Address� Nc � � d� t d||||f� � � � }d|v sd|v rt d� � �|�q|s|rt d� � �t j |� � \ }}|r#t d� ||� � � � �|j r
|j d �|j }|j }|| _
|| _ || _ dS ) a� Create an object representing a full email address.
An address can have a 'display_name', a 'username', and a 'domain'. In
addition to specifying the username and domain separately, they may be
specified together by using the addr_spec keyword *instead of* the
username and domain keywords. If an addr_spec string is specified it
must be properly quoted according to RFC 5322 rules; an error will be
raised if it is not.
An Address object has display_name, username, domain, and addr_spec
attributes, all of which are read-only. The addr_spec and the string
value of the object are both quoted according to RFC5322 rules, but
without any Content Transfer Encoding.
r N�
�
z8invalid arguments; address parts cannot contain CR or LFz=addrspec specified when username and/or domain also specifiedz6Invalid addr_spec; only '{}' could be parsed from '{}'r )
�join�filter�
ValueError� TypeError�parser�
get_addr_spec�format�all_defects�
local_part�domain�
_display_name� _username�_domain)�self�display_name�usernamer � addr_spec�inputs�a_s�rests �-/usr/lib64/python3.11/email/headerregistry.py�__init__zAddress.__init__ s� � �"