| Server IP : 121.121.20.254 / Your IP : 216.73.216.123 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/email/__pycache__/ |
Upload File : |
R
>lqj� c � � Q s , QNs] QHGsGs ] QHGsGs ] QH G s Q Q2 s
Q Q\
2 s Q
Q2 s Q Q\2 s
P! )
z-A parser of RFC 5322 and MIME email messages.�Parser�HeaderParser�BytesParser�BytesHeaderParser)�StringIO�
TextIOWrapper)�
FeedParser�BytesFeedParser)�compat32c �H ` � \ sQ s]s n QQ\-Q kksQQ ksQQ ksQsU s P! )r �policyc � � Vm V m P! )a Parser of RFC 5322 and MIME email messages.
Creates an in-memory object tree representing the email message, which
can then be manipulated and turned over to a Generator to return the
textual representation of the message.
The string must be formatted as a block of RFC 5322 headers and header
continuation lines, optionally preceded by a 'Unix-from' header. The
header block is terminated either by the end of the string or by a
blank line.
_class is the class to instantiate for new message objects when they
must be created. This class must have a constructor that can take
zero arguments. Default is Message.Message.
The policy keyword specifies a policy object that controls a number of
aspects of the parser's operation. The default policy maintains
backward compatibility.
��_classr )�selfr r s &&$�!C:\Python315\\Lib\email\parser.py�__init__�Parser.__init__ s � �* ���� c �� � [ U O U O Q5 oU% c UO 2 UO Q2 9o% c UO U2 J, UO
2 ! )a4 Create a message structure from the data in a file.
Reads all the data from the file and returns the root of the message
structure. Optional headersonly is a flag specifying whether to stop
parsing after reading the headers or not. The default is False,
meaning it parses the entire contents of the file.
)r i )r r r �_set_headersonly�read�feed�close)r �fp�headersonly�
feedparser�datas &&& r �parse�Parser.parse) sU � � ����D�K�K�@�
���'�'�)��g�g�d�m�#�d�#��O�O�D�!����!�!r c �<