Ë k}4ÃCS´gãó�—dZgd¢ZddlmZmZddlmZmZddlm Z Gd„d«Z Gd„d e «Z Gd „d «Z Gd „d e «Z y)z-A parser of RFC 2822 and MIME email messages.)ÚParserÚ HeaderParserÚ BytesParserÚBytesHeaderParserÚ FeedParserÚBytesFeedParseré)ÚStringIOÚ TextIOWrapper)rr)Úcompat32có*—eZdZdedœd„Zdd„Zdd„Zy)rN©Úpolicycó —||_||_y)a…Parser of RFC 2822 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 2822 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. N)Ú_classr)Úselfrrs ú#/usr/lib/python3.12/email/parser.pyÚ__init__zParser.__init__s€ð*ˆŒ ؈� ócóø—t|j|j¬«}|r|j«|j d«x}r%|j |«|j d«x}rŒ%|j «S)a\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 )rrrÚ_set_headersonlyÚreadÚfeedÚclose)rÚfpÚ headersonlyÚ feedparserÚdatas rÚparsez Parser.parse)sj€ô  § ¡ °D·K±KÔ@ˆ Ù Ø × 'Ñ 'Ô )Ø—g‘g˜d“mÐ#ˆdÐ#Ø �O‰O˜DÔ !ð—g‘g˜d“mÐ#ˆdÑ#à×ÑÓ!Ð!rcó:—|jt|«|¬«S)a-Create a message structure from a string. 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)rr ©rÚtextrs rÚparsestrzParser.parsestr8s€ð�z‰zœ( 4›.°kˆzÓBÐBr)N©F)Ú__name__Ú __module__Ú __qualname__r rrr#©rrrrs„ð¨hôó0 "ôCrrcó—eZdZdd„Zdd„Zy)rcó0—tj||d«S©NT)rr©rrrs rrzHeaderParser.parseDs€Ü�|‰|˜D " dÓ+Ð+rcó0—tj||d«Sr+)rr#r!s rr#zHeaderParser.parsestrGs€Ü�‰˜t T¨4Ó0Ð0rN©T)r%r&r'rr#r(rrrrCs „ó,ô1rrcó"—eZdZd„Zdd„Zdd„Zy)rcó$—t|i|¤Ž|_y)aÐParser of binary RFC 2822 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 input must be formatted as a block of RFC 2822 headers and header continuation lines, optionally preceded by a `Unix-from' header. The header block is terminated either by the end of the input 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. N)rÚparser)rÚargsÚkws rrzBytesParser.__init__Ms€ô ˜dÐ) bÑ)ˆ� rcó¢—t|dd¬«} |jj||«|j«S#|j«wxYw)acCreate a message structure from the data in a binary 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. ÚasciiÚsurrogateescape)ÚencodingÚerrors)r r1rÚdetachr,s rrzBytesParser.parse_s?€ô˜2¨Ð8IÔ Jˆð Ø—;‘;×$Ñ$ R¨Ó5à �I‰I�KøˆB�I‰I�Kús �<¼Acó`—|jdd¬«}|jj||«S)a2Create a message structure from a byte string. 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. ÚASCIIr6)r8)Údecoder1r#r!s rÚ parsebyteszBytesParser.parsebytesns.€ð�{‰{˜7Ð+<ˆ{Ó=ˆØ�{‰{×#Ñ# D¨+Ó6Ð6rNr$)r%r&r'rrr=r(rrrrKs„ò*ó$ ô 7rrcó—eZdZdd„Zdd„Zy)rcó2—tj||d¬«S©NTr )rrr,s rrzBytesHeaderParser.parse{s€Ü× Ñ   r°tÐ Ó<ÐrGsNðñ 4ò ,€÷'ç8Ý&÷0Cñ0Côf1�6ô1÷,7ñ,7ô^D˜ õDr