Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 18.119.117.236
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : message.cpython-313.pyc
�

*}g����SrSS/rSSKrSSKrSSKrSSKJrJr SSKJ	r	 SSKJ
r
 SSKJr SS	KJ
r SS
KJr \R"rSr\R&"S5rS
rSSjrSrSrSr"SS5r"SS\5r"SS\5rg)z8Basic message object for the email package object model.�Message�EmailMessage�N)�BytesIO�StringIO)�utils)�errors)�compat32��charset)�decode_bz; z[ \(\)<>@,;:\\"/\[\]\?=]c��[U5RS5upnU(dUR5S4$UR5UR54$)N�;)�str�	partition�strip)�param�a�sep�bs    �4/opt/alt/python313/lib64/python3.13/email/message.py�_splitparamrsF��
�E�
�$�$�S�)�I�A�A���w�w�y�$����7�7�9�a�g�g�i���c���Ub�[U5S:�a�[U[5(a/US-
n[R"USUSUS5nU<SU<3$URS5 U(d[RU5(aU<S	[R"U5<S
3$U<SU<3$U$![a) US-
n[R"USS5nU<SU<3s$f=f)afConvenience function to format and return a key=value pair.

This will quote the value if needed or if quote is true.  If value is a
three tuple (charset, language, value), it will be encoded according
to RFC2231 rules.  If it contains non-ascii characters it will likewise
be encoded according to RFC2231 rules, using the utf-8 charset and
a null language.
r�*���=�asciizutf-8�z="�")
�len�
isinstance�tupler�encode_rfc2231�encode�UnicodeEncodeError�	tspecials�search�quote)r�valuer)s   r�_formatparamr+'s���
��S��Z�!�^��e�U�#�#��S�L�E��(�(��q��5��8�U�1�X�F�E�#�U�+�+�
0����W�%��I�$�$�U�+�+� %�u�{�{�5�'9�:�:�#�U�+�+����&�
0������,�,�U�G�R�@��"'��/�/�
0�s�B3�30C&�%C&c��S[U5-n/nUSSS:XGa-USSnURS5nUS:�a{URSSU5URSSU5-
S-(aLURSUS-5nUS:�a1URSSU5URSSU5-
S-(aMLUS:a[U5nUSUnSU;aKUR	S5nUSUR5R
5S-X4S-SR5-nURUR55 XSnUSSS:XaGM-U$)Nrrrr z\"rr)r�find�countr!�indexr�lower�append)�s�plist�end�f�is     r�_parseparamr7Is>���c�!�f��A��E�
�B�Q�%�3�,�
�a�b�E���f�f�S�k���A�g�1�7�7�3��3�/�!�'�'�%��C�2H�H�A�M��&�&��c�A�g�&�C��A�g�1�7�7�3��3�/�!�'�'�%��C�2H�H�A�M�M���7��a�&�C�
�d�s�G���!�8������A��"�1����
�#�#�%��+�a�!���g�m�m�o�=�A�
���Q�W�W�Y��
�d�G���B�Q�%�3�,��Lrc��[U[5(a"USUS[R"US54$[R"U5$)Nrrr)r"r#r�unquote)r*s r�
_unquotevaluer:]sB��
�%�����Q�x��q��5�=�=��q��#:�:�:��}�}�U�#�#rc�r�/n[UR55nUHInURS5(dMURS5R	S5upEn[USS9  O
 [
S5eUHTnU(d[
S5eURS5S:Xa O,[R"U5nURU5 MV SRU5$![a M�f=f![Ra0 US	S
-
S-S-S
-S-n[R"USU5nNzf=f)zDecode uuencoded data.sbegin � �)�basez`begin` line not foundzTruncated inputs 	
sendr� �?���Nr)
�iter�
splitlines�
startswith�removeprefixr�int�
ValueErrorr�binascii�a2b_uu�Errorr1�join)	�encoded�
decoded_lines�encoded_lines_iter�line�mode�_�path�decoded_line�nbytess	         r�
_decode_uurWhs3���M��g�0�0�2�3��"���?�?�9�%�%� �-�-�i�8�B�B�4�H�M�D�T�
��D�q�!��#��1�2�2�"����.�/�/�
�Z�Z��
%��
/��	:�#�?�?�4�0�L�
	���\�*�#��8�8�M�"�"��'�
��
���~�~�	:��Q���
�b�(�A�-��1�a�7�F�#�?�?�4���=�9�L�	:�s%�
C!�%C2�!
C/�.C/�2AD6�5D6c�|�\rSrSrSr\4SjrSrS4SjrSr	S5S	jr
S
rSrSr
S
rS6SjrS7SjrSrSrSrSrSrSrSrSrSrSrSrS7SjrSrSrS7SjrSr S r!S!r"S"r#S#r$S$r%S%r&S&r'S8S'jr(S8S(jr)S9S)jr*S:S*jr+S;S+jr,S7S,jr-S7S-jr.S.r/S7S/jr0S7S0jr1S1r2SS2K3J4r4 S3r5g)<r�a�Basic message object.

A message object is defined as something that has a bunch of RFC 2822
headers and a payload.  It may optionally have an envelope header
(a.k.a. Unix-From or From_ header).  If the message is a container (i.e. a
multipart or a message/rfc822), then the payload is a list of Message
objects, otherwise it is a string.

Message objects implement part of the `mapping' interface, which assumes
there is exactly one occurrence of the header per message.  Some headers
do in fact appear multiple times (e.g. Received) and for those headers,
you must use the explicit API to set or get all the headers.  Not all of
the mapping methods are implemented.
c��Xl/UlSUlSUlSUlS=UlUl/UlSUlg)N�
text/plain)	�policy�_headers�	_unixfrom�_payload�_charset�preamble�epilogue�defects�
_default_type)�selfr\s  r�__init__�Message.__init__�s@������
������
���
�(,�,��
��
����)��rc�"�UR5$)z9Return the entire formatted message as a string.
        )�	as_string�res r�__str__�Message.__str__�s���~�~��rrNc��SSKJn UcUROUn[5nU"USUUS9nUR	XS9 UR5$)anReturn the entire formatted message as a string.

Optional 'unixfrom', when true, means include the Unix From_ envelope
header.  For backward compatibility reasons, if maxheaderlen is
not specified it defaults to 0, so you must override it explicitly
if you want a different maxheaderlen.  'policy' is passed to the
Generator instance used to serialize the message; if it is not
specified the policy associated with the message instance is used.

If the message object contains binary data that is not encoded
according to RFC standards, the non-compliant data will be replaced by
unicode "unknown character" code points.
r)�	GeneratorF)�mangle_from_�maxheaderlenr\��unixfrom)�email.generatorrnr\r�flatten�getvalue)rerrrpr\rn�fp�gs       rri�Message.as_string�sN��	.� &�����F��
�Z���b�#(�#/�#�
%��	
�	�	�$�	�*��{�{�}�rc�"�UR5$)z?Return the entire formatted message as a bytes object.
        )�as_bytesrjs r�	__bytes__�Message.__bytes__�s���}�}��rc��SSKJn UcUROUn[5nU"USUS9nUR	XS9 UR5$)a"Return the entire formatted message as a bytes object.

Optional 'unixfrom', when true, means include the Unix From_ envelope
header.  'policy' is passed to the BytesGenerator instance used to
serialize the message; if not specified the policy associated with
the message instance is used.
r)�BytesGeneratorF)ror\rq)rsr~r\rrtru)rerrr\r~rvrws      rrz�Message.as_bytes�sE��	3� &�����F��
�Y���2�E�&�A��	�	�	�$�	�*��{�{�}�rc�6�[UR[5$)z6Return True if the message consists of multiple parts.)r"r_�listrjs r�is_multipart�Message.is_multipart�s���$�-�-��.�.rc��Xlg�N�r^)rerrs  r�set_unixfrom�Message.set_unixfrom�s��!�rc��UR$r�r�rjs r�get_unixfrom�Message.get_unixfrom�s���~�~�rc��URc	U/UlgURRU5 g![a [S5ef=f)z�Add the given payload to the current payload.

The current payload will always be a list of objects after this method
is called.  If you want to set the payload to a scalar object, use
set_payload() instead.
Nz=Attach is not valid on a message with a non-multipart payload)r_r1�AttributeError�	TypeError)re�payloads  r�attach�Message.attach�sO���=�=� �$�I�D�M�
:��
�
�$�$�W�-��!�
:��!9�:�:�
:�s	�4�A
c��UR5(a&U(agUcUR$URU$Ub@[UR[5(d![	S[UR5-5eURn[
URSS55R5nU(di[U[5(aR[R"U5(a7URSS5nURURS5S5nU$U$[U[5(aURSS5nUS	:Xa[ R""W5$US
:XaP[%SR'WR)555upgUHnUR*R-X5 M  U$US;a[/W5$[U[5(aW$U$![a URSS5nU$f=f![a U$f=f![a URS5nN�f=f![0a Ws$f=f)
a�Return a reference to the payload.

The payload will either be a list object or a string.  If you mutate
the list object, you modify the message's payload in place.  Optional
i returns that index into the payload.

Optional decode is a flag indicating whether the payload should be
decoded or not, according to the Content-Transfer-Encoding header
(default is False).

When True and the message is not a multipart, the payload will be
decoded if this header's value is `quoted-printable' or `base64'.  If
some other encoding is used, or the header is missing, or if the
payload has bogus data (i.e. bogus base64 or uuencoded data), the
payload is returned as-is.

If the message is a multipart and the decode flag is True, then None
is returned.
NzExpected list, got %szcontent-transfer-encodingrr�surrogateescape�replace�raw-unicode-escapezquoted-printable�base64r)z
x-uuencode�uuencode�uuezx-uue)r�r_r"r�r��typer�getr0r�_has_surrogatesr%�decode�get_content_charset�LookupErrorr&�quopri�decodestringrrMrEr\�
handle_defectrWrI)	rer6r�r��cte�bpayloadr*rc�defects	         r�get_payload�Message.get_payload�s&��D��������y��}�}�$��}�}�Q�'�'�
�=��D�M�M�4�!@�!@��3�d�4�=�=�6I�I�J�J��-�-���$�(�(�6��;�<�B�B�D����'�3�'�'�E�,A�,A�'�,J�,J��&�~�~�g�7H�I�H�F�"*�/�/�$�2J�2J�7�2S�U^�"_��
�N�7�N��g�s�#�#�
@�"�>�>�'�3D�E���$�$��&�&�x�0�0�
�H�_�&�c�h�h�x�/B�/B�/D�&E�F�N�E�!�����)�)�$�7�"��L�
�>�
>�
 �!�(�+�+��g�s�#�#��O����?'�F�"*�/�/�'�9�"E���N�	F��)����N���&�
@�
#�>�>�*>�?��
@��$�
 ���
 �sT�,H�?!G)�:H�
H>�)H	�H�H	�	H�
H�H�H;�:H;�>I
�I
c�:�[US5(aFUcXlg[U[5(d[U5nUR	UR
S5n[US5(aUR
SS5UlOXlUbURU5 gg)z�Set the payload to the given value.

Optional charset sets the message's default character set.  See
set_charset() for details.
r%Nr�r�r)�hasattrr_r"�Charsetr%�output_charsetr��set_charset)rer�rs   r�set_payload�Message.set_payloadKs����7�H�%�%��� '�
���g�w�/�/�!�'�*���n�n�W�%;�%;�=N�O�G��7�H�%�%�#�N�N�7�4E�F�D�M�#�M������W�%�rc��UcURS5 SUlg[U[5(d[U5nXlSU;aUR	SS5 SU;a UR	SSUR5S9 O UR
SUR55 XR5:wa URUR5UlSU;aUR5nU"U5 gg![a} URnU(a?URS	S
5nO+![a URUR5nOf=fURU5UlUR	SU5 gf=f)a�Set the charset of the payload to a given character set.

charset can be a Charset instance, a string naming a character set, or
None.  If it is a string it will be converted to a Charset instance.
If charset is None, the charset parameter will be removed from the
Content-Type field.  Anything else will generate a TypeError.

The message will be assumed to be of type text/* encoded with
charset.input_charset.  It will be converted to charset.output_charset
and encoded properly, if needed, when generating the plain text
representation of the message.  MIME headers (MIME-Version,
Content-Type, Content-Transfer-Encoding) will be added as needed.
Nr�MIME-Version�1.0�Content-Typer[r
zContent-Transfer-Encodingrr�)�	del_paramr`r"r��
add_header�get_output_charset�	set_param�body_encoder_�get_body_encodingr�r%�UnicodeErrorr�)rerr�r�s    rr��Message.set_charset_s_���?��N�N�9�%� �D�M���'�7�+�+��g�&�G��
���%��O�O�N�E�2���%��O�O�N�L�$+�$>�$>�$@�
�
B�
�N�N�9�g�&@�&@�&B�C��0�0�2�2�#�/�/��
�
�>�D�M�&�d�2��+�+�-�C�

B��D�	�3���
B��-�-���I�")�.�.��:K�"L���'�I�")�.�.��1G�1G�"H��I�� '� 3� 3�G� <��
���� ;�S�A�
B�s6�+C5�5E<�D&�%E<�&%E�E<�
E�+E<�;E<c��UR$)zKReturn the Charset instance associated with the message's payload.
        )r`rjs r�get_charset�Message.get_charset�s���}�}�rc�,�[UR5$)z9Return the total number of headers, including duplicates.)r!r]rjs r�__len__�Message.__len__�s���4�=�=�!�!rc�$�URU5$)aGet a header value.

Return None if the header is missing instead of raising an exception.

Note that if the header appeared multiple times, exactly which
occurrence gets returned is undefined.  Use get_all() to get all
the values matching a header field name.
)r�)re�names  r�__getitem__�Message.__getitem__�s���x�x��~�rc�r�URRU5nU(aaUR5nSnURH?upgUR5U:XdMUS-
nXS:�dM'[	SRX155e URR
URRX55 g)z�Set the value of a header.

Note: this does not overwrite an existing header with the same field
name.  Use __delitem__() first to delete any existing headers.
rrz/There may be at most {} {} headers in a messageN)r\�header_max_countr0r]rI�formatr1�header_store_parse)rer��val�	max_count�lname�found�k�vs        r�__setitem__�Message.__setitem__�s����K�K�0�0��6�	���J�J�L�E��E��
�
����7�7�9��%��Q�J�E��)�(�*8�8>��y�8O�Q�Q�	&�	
�
�
���T�[�[�;�;�D�F�Grc��UR5n/nURH-up4UR5U:wdMURX445 M/ X lg)zgDelete all occurrences of a header, if present.

Does not raise an exception if the header is missing.
N)r0r]r1)rer��
newheadersr�r�s     r�__delitem__�Message.__delitem__�sI��
�z�z�|���
��M�M�D�A��w�w�y�D� ��!�!�1�&�)�"�#�
rc�x�UR5nURHup4X#R5:XdM g g)NTF)r0r])rer��
name_lowerr�r�s     r�__contains__�Message.__contains__�s1���Z�Z�\�
��M�M�D�A��W�W�Y�&��"�rc#�># �URH	upUv� M g7fr��r])re�fieldr*s   r�__iter__�Message.__iter__�s��� �M�M�L�E��K�*�s�c�P�URVVs/sHupUPM	 snn$s snnf)aReturn a list of all the message's header field names.

These will be sorted in the order they appeared in the original
message, or were added to the message, and may contain duplicates.
Any fields deleted and re-inserted are always appended to the header
list.
r��rer�r�s   r�keys�Message.keys�s"��#�m�m�,�m�d�a��m�,�,��,s�"c��URVVs/sH upURRX5PM" snn$s snnf)aReturn a list of all the message's header values.

These will be sorted in the order they appeared in the original
message, or were added to the message, and may contain duplicates.
Any fields deleted and re-inserted are always appended to the header
list.
�r]r\�header_fetch_parser�s   r�values�Message.values�s>��!�M�M�+�)�D�A����.�.�q�4�)�+�	+��+s�';c	��URVVs/sH!upXRRX54PM# snn$s snnf)z�Get all the message's header fields and values.

These will be sorted in the order they appeared in the original
message, or were added to the message, and may contain duplicates.
Any fields deleted and re-inserted are always appended to the header
list.
r�r�s   r�items�
Message.items�sA��!�M�M�+�)�D�A��K�K�2�2�1�8�9�)�+�	+��+s�(<c��UR5nURH6up4UR5U:XdMURRX45s $ U$)zfGet a header value.

Like __getitem__() but return failobj instead of None when the field
is missing.
)r0r]r\r�)rer��failobjr�r�s     rr��Message.get�sI���z�z�|���M�M�D�A��w�w�y�D� ��{�{�5�5�a�;�;�"��rc�<�URRX45 g)zwStore name and value in the model without modification.

This is an "internal" API, intended only for use by a parser.
N)r]r1)rer�r*s   r�set_raw�Message.set_raw�s��
	
�
�
���d�]�+rc�H�[URR55$)z~Return the (name, value) header pairs without modification.

This is an "internal" API, intended only for use by a generator.
)rDr]�copyrjs r�	raw_items�Message.raw_itemss��
�D�M�M�&�&�(�)�)rc���/nUR5nURHEupEUR5U:XdMURURR	XE55 MG U(dU$U$)a)Return a list of all the values for the named field.

These will be sorted in the order they appeared in the original
message, and may contain duplicates.  Any fields deleted and
re-inserted are always appended to the header list.

If no such fields exist, failobj is returned (defaults to None).
)r0r]r1r\r�)rer�r�r�r�r�s      r�get_all�Message.get_alls\�����z�z�|���M�M�D�A��w�w�y�D� ��
�
�d�k�k�<�<�Q�B�C�"���N��
rc	�4�/nUR5HVupVUc#URURSS55 M+UR[URSS5U55 MX UbUR	SU5 [
R
U5X'g)uHExtended header setting.

name is the header field to add.  keyword arguments can be used to set
additional parameters for the header field, with underscores converted
to dashes.  Normally the parameter will be added as key="value" unless
value is None, in which case only the key will be added.  If a
parameter value contains non-ASCII characters it can be specified as a
three-tuple of (charset, language, value), in which case it will be
encoded according to RFC2231 rules.  Otherwise it will be encoded using
the utf-8 charset and a language of ''.

Examples:

msg.add_header('content-disposition', 'attachment', filename='bud.gif')
msg.add_header('content-disposition', 'attachment',
               filename=('utf-8', '', Fußballer.ppt'))
msg.add_header('content-disposition', 'attachment',
               filename='Fußballer.ppt'))
NrS�-r)r�r1r�r+�insert�	SEMISPACErM)re�_name�_value�_params�partsr�r�s       rr��Message.add_header#s{��(���M�M�O�D�A��y����Q�Y�Y�s�C�0�1����\�!�)�)�C��*=�q�A�B�	$�
���L�L��F�#��n�n�U�+��rc�0�UR5n[[[UR55UR5HFunupEUR5U:XdMUR
R
XB5URU' g [U5e)z�Replace a header.

Replace the first matching header found in the message, retaining
header order and case.  If no matching header was found, a KeyError is
raised.
N)r0�zip�ranger!r]r\r��KeyError)rer�r�r6r�r�s      r�replace_header�Message.replace_headerAss�����
���U�3�t�}�}�#5�6��
�
�F�I�A�v���w�w�y�E�!�#'�;�;�#A�#A�!�#L��
�
�a� ��G�
�5�/�!rc���[5nURSU5nX!LaUR5$[U5SR	5nURS5S:wagU$)a�Return the message's content type.

The returned string is coerced to lower case of the form
`maintype/subtype'.  If there was no Content-Type header in the
message, the default type as given by get_default_type() will be
returned.  Since according to RFC 2045, messages always have a default
type this will always return a value.

RFC 2045 defines a message's default type to be text/plain unless it
appears inside a multipart/digest container, in which case it would be
message/rfc822.
�content-typer�/rr[)�objectr��get_default_typerr0r.)re�missingr*�ctypes    r�get_content_type�Message.get_content_typeTsa���(�������1�����(�(�*�*��E�"�1�%�+�+�-���;�;�s��q� ���rc�J�UR5nURS5S$)zsReturn the message's main content type.

This is the `maintype' part of the string returned by
get_content_type().
rr�r�split�rers  r�get_content_maintype�Message.get_content_maintypel�&���%�%�'���{�{�3���"�"rc�J�UR5nURS5S$)zrReturns the message's sub-content type.

This is the `subtype' part of the string returned by
get_content_type().
rrrrs  r�get_content_subtype�Message.get_content_subtypeurrc��UR$)z�Return the `default' content type.

Most messages have a default content type of text/plain, except for
messages that are subparts of multipart/digest containers.  Such
subparts have a default content type of message/rfc822.
�rdrjs rr	�Message.get_default_type~s���!�!�!rc��Xlg)z�Set the `default' content type.

ctype should be either "text/plain" or "message/rfc822", although this
is not enforced.  The default content type is not stored in the
Content-Type header.
Nrrs  r�set_default_type�Message.set_default_type�s
��#�rc�n�[5nURX#5nXCLaU$/n[U5HJnURSS5upxUR	5nUR	5nUR
Xx45 ML [R"U5nU$![
a UR	5nSnNLf=f)Nrrr)	rr�r7rrrIr1r�
decode_params)	rer��headerr
r*�params�pr�r�s	         r�_get_params_preserve�Message._get_params_preserve�s����(������)�����N����U�#�A�
��G�G�C��O�	���z�z�|���i�i�k��

�M�M�4�+�&�$��$�$�V�,���
��
�
��w�w�y����
�s�4B�B4�3B4c��[5nURXB5nXTLaU$U(a"UVVs/sHupgU[U54PM snn$U$s snnf)a%Return the message's Content-Type parameters, as a list.

The elements of the returned list are 2-tuples of key/value pairs, as
split on the `=' sign.  The left hand side of the `=' is the key,
while the right hand side is the value.  If there is no `=' sign in
the parameter the value is the empty string.  The value is as
described in the get_param() method.

Optional failobj is the object to return if there is no Content-Type
header.  Optional header is the header to search instead of
Content-Type.  If unquote is True, the value is unquoted.
)rr#r:)rer�r r9r
r!r�r�s        r�
get_params�Message.get_params�sT���(���*�*�7�;�����N��6<�=�f�d�a�Q�
�a�(�)�f�=�=��M��>s�A
c��X0;aU$URX#5H?upVUR5UR5:XdM)U(a
[U5s $Us $ U$)aReturn the parameter value if found in the Content-Type header.

Optional failobj is the object to return if there is no Content-Type
header, or the Content-Type header has no such parameter.  Optional
header is the header to search instead of Content-Type.

Parameter keys are always compared case insensitively.  The return
value can either be a string, or a 3-tuple if the parameter was RFC
2231 encoded.  When it's a 3-tuple, the elements of the value are of
the form (CHARSET, LANGUAGE, VALUE).  Note that both CHARSET and
LANGUAGE can be None, in which case you should consider VALUE to be
encoded in the us-ascii charset.  You can usually ignore LANGUAGE.
The parameter value (either the returned string, or the VALUE item in
the 3-tuple) is always unquoted, unless unquote is set to False.

If your application doesn't care whether the parameter was RFC 2231
encoded, it can turn the return value into a string as follows:

    rawparam = msg.get_param('foo')
    param = email.utils.collapse_rfc2231_value(rawparam)

)r#r0r:)rerr�r r9r�r�s       r�	get_param�Message.get_param�sT��0���N��-�-�g�>�D�A��w�w�y�E�K�K�M�)��(��+�+��H�?��rc��[U[5(dU(aXVU4nX0;aUR5S:XaSnOURU5nUR	XS9(d6U(d
[XU5nO�[RU[XU5/5nOySnURUUS9Hcup�SnU	R5UR5:Xa
[XU5nO[X�U5nU(dUnMM[RX�/5nMe X�RU5:wa U(aURX85 gX	X�U'gg)a�Set a parameter in the Content-Type header.

If the parameter already exists in the header, its value will be
replaced with the new value.

If header is Content-Type and has not yet been defined for this
message, it will be set to "text/plain" and the new parameter and
value will be appended as per RFC 2045.

An alternate header can be specified in the header argument, and all
parameters will be quoted as necessary unless requote is False.

If charset is specified, the parameter will be encoded according to RFC
2231.  Optional language specifies the RFC 2231 language, defaulting
to the empty string.  Both charset and language should be strings.
rr[)r r�r r9N)
r"r#r0r�r)r+r�rMr&r)rerr*r �requoter�languager�r�	old_param�	old_value�append_params            rr��Message.set_param�s%��$�%��'�'�G���.�E���&�,�,�.�N�"B� �E��H�H�V�$�E��~�~�e�~�3��$�U�7�;��!����L��w�?�@�B���E�(,���v�@G�)8�)I�$�	�!���?�?�$����
�5�#/��g�#F�L�#/�	�g�#N�L��(�E�%�N�N�E�+@�A�E�)I��H�H�V�$�$���#�#�F�2��L�$�V��%rc	�.�X ;agSnURX#S9H_upVUR5UR5:wdM)U(d[XVU5nM>[R	U[XVU5/5nMa X@RU5:waX	X@U'gg)aRemove the given parameter completely from the Content-Type header.

The header will be re-written in place without the parameter or its
value. All values will be quoted as necessary unless requote is
False.  Optional header specifies an alternative to the Content-Type
header.
Nrr,)r&r0r+r�rMr�)rerr r-�	new_ctyper"r�s       rr��Message.del_params�������	��O�O�6�O�C�D�A��w�w�y�E�K�K�M�)� � ,�Q�7� ;�I� )���	�0<�Q�7�0K�0M�!N�I�D�����(�(���$��L�)rc���URS5S:Xd[eUR5S:XaUS	SUS'X ;aXU'gURX#S9nX	XU'USSHupVUR	XVX#5 M g)	a�Set the main type and subtype for the Content-Type header.

type must be a string in the form "maintype/subtype", otherwise a
ValueError is raised.

This method replaces the Content-Type header, keeping all the
parameters in place.  If requote is False, this leaves the existing
header's quoting as is.  Otherwise, the parameters will be quoted (the
default).

An alternative header can be specified in the header argument.  When
the Content-Type header is set, we'll always also add a MIME-Version
header.
rrrzmime-versionr�r�Nr,)r.rIr0r&r�)rer�r r-r!r"r�s       r�set_type�Message.set_type&s��� �z�z�#��!�#����<�<�>�^�+��^�$�#(�D�� �����L�������@���L��V���1�2�J�D�A��N�N�1��1�rc��[5nURSUS5nX2LaURSUS5nX2LaU$[R"U5R	5$)aReturn the filename associated with the payload if present.

The filename is extracted from the Content-Disposition header's
`filename' parameter, and it is unquoted.  If that header is missing
the `filename' parameter, this method falls back to looking for the
`name' parameter.
�filename�content-dispositionr�r)rr)r�collapse_rfc2231_valuer)rer�r
r:s    r�get_filename�Message.get_filenameFs[���(���>�>�*�g�7L�M�����~�~�f�g�~�F�H����N��+�+�H�5�;�;�=�=rc��[5nURSU5nX2LaU$[R"U5R	5$)z�Return the boundary associated with the payload if present.

The boundary is extracted from the Content-Type header's `boundary'
parameter, and it is unquoted.
�boundary)rr)rr<�rstrip)rer�r
r@s    r�get_boundary�Message.get_boundaryVs@���(���>�>�*�g�6�����N��+�+�H�5�<�<�>�>rc���[5nURUS5nX2La[R"S5e/nSnUHEupgUR	5S:XaURSSU-45 SnM3URXg45 MG U(dURSSU-45 /nURH�up�U	R	5S:Xa/nUH6up�U
S:XaURU5 MURU<SU
<35 M8 [RU5n
URURRX�55 M�URX�45 M� X�lg	)
a�Set the boundary parameter in Content-Type to 'boundary'.

This is subtly different than deleting the Content-Type header and
adding a new one with a new boundary parameter via add_header().  The
main difference is that using the set_boundary() method preserves the
order of the Content-Type header in the original message.

HeaderParseError is raised if the message has no Content-Type header.
rzNo Content-Type header foundFr@z"%s"TrrN)rr#r�HeaderParseErrorr0r1r]r�rMr\r�)rer@r
r!�	newparams�foundp�pk�pvr��hr�r�r�r�s              r�set_boundary�Message.set_boundarycsD���(���*�*�7�N�C�����)�)�*H�I�I��	����F�B��x�x�z�Z�'�� � �*�f�x�.?�!@�A���� � �"��*���
���j�&�8�*;�<�=��
��M�M�D�A��w�w�y�N�*���%�D�A��B�w����Q������1�%5�6�	&�
 �n�n�U�+���!�!�$�+�+�"@�"@��"H�I��!�!�1�&�)�"�#�
rc�j�[5nURSU5nX2LaU$[U[5(a.US=(d SnUSR	S5n[XT5nUR	S5 UR5$![[4a USnN9f=f![a Us$f=f)z�Return the charset parameter of the Content-Type header.

The returned string is always coerced to lower case.  If there is no
Content-Type header, or if that header has no charset parameter,
failobj is returned.
rrzus-asciirr�)	rr)r"r#r%rr�r�r0)rer�r
r�pcharsetrzs      rr��Message.get_content_charset�s����(���.�.��G�4�����N��g�u�%�%��q�z�/�Z�H�
%�#�1�:�,�,�-A�B���h�1��	��N�N�:�&��}�}���� ��.�
%�!�!�*��
%��
�	��N�	�s$�B�'B#�B �B �#B2�1B2c�j�UR5Vs/sHo"RU5PM sn$s snf)a}Return a list containing the charset(s) used in this message.

The returned list of items describes the Content-Type headers'
charset parameter for this message and all the subparts in its
payload.

Each item will either be a string (the value of the charset parameter
in the Content-Type header of that part) or the value of the
'failobj' parameter (defaults to None), if the part does not have a
main MIME type of "text", or the charset is not defined.

The list will contain one string for each part of the message, plus
one for the container message (i.e. self), so that a non-multipart
message will still return a list of length 1.
)�walkr�)rer��parts   r�get_charsets�Message.get_charsets�s,�� ?C�i�i�k�J�k�d�(�(��1�k�J�J��Js�0c�h�URS5nUcg[U5SR5nU$)z�Return the message's content-disposition if it exists, or None.

The return values can be either 'inline', 'attachment' or None
according to the rfc2183.
r;Nr)r�rr0)rer*�c_ds   r�get_content_disposition�Message.get_content_disposition�s8�����.�/���=���%� ��#�)�)�+���
r)rQ)	r`rdr]r_r^rcrbr\ra)FrN)FN)NFr�)NrT)r�TNrF)rT)r�T)6�__name__�
__module__�__qualname__�__firstlineno__�__doc__r	rfrkrir{rzr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrr	rr#r&r)r�r�r7r=rBrKr�rSrW�email.iteratorsrQ�__static_attributes__�rrrr�s��
�'�
*� �
�0�

�/�"��:� V�p&�(-B�^�"�	�H�$
#���-�	+�	+�
�",�*��$,�<
"�&�0#�#�"�#��*�,5C�� �DFJ�5:�1%�f%�,2�@>� ?�,#�\�<K�$
�%�$rc��^�\rSrSrSU4SjjrSU4SjjrSrSrSrSSjr	1S	kr
S
rSrSS.S
jr
SS.SjrSrSSjrSSjrSSjrSS.SjrSrSrSrSrSrSrU=r$)�MIMEParti�Nc�:>�UcSSKJn Un[TU]
U5 g)Nr)�default)�email.policyrd�superrf)rer\rd�	__class__s   �rrf�MIMEPart.__init__�s����>�,��F�
���� rc�d>�UcUROUnUcURn[TU]
XU5$)a�Return the entire formatted message as a string.

Optional 'unixfrom', when true, means include the Unix From_ envelope
header.  maxheaderlen is retained for backward compatibility with the
base Message class, but defaults to None, meaning that the policy value
for max_line_length controls the header maximum length.  'policy' is
passed to the Generator instance used to serialize the message; if it
is not specified the policy associated with the message instance is
used.
)r\�max_line_lengthrfri)rerrrpr\rgs    �rri�MIMEPart.as_string�s7���!'�����F����!�1�1�L��w� ���@�@rc�N�URURRSS9S9$)NT)�utf8�r\)rir\�clonerjs rrk�MIMEPart.__str__�s%���~�~�T�[�[�%6�%6�D�%6�%A�~�B�Brc�L�URS5nUcS$URS:H$)Nr;F�
attachment)r��content_disposition)rerVs  r�
is_attachment�MIMEPart.is_attachment�s+���h�h�,�-����u�P��)@�)@�L�)P�Prc#�# �UR5(agUR5RS5up4US:XaXB;aURU5U4v� gUS:wdUR	5(dgUS:wa1UR5HnUR
XR5Shv�N M gSU;aURS5U4v� SnURS5nU(a$UR5HnUSU:XdMUn O UcUR5nU(aUSOSnUbUR
Xb5Shv�N ggN�N7f)Nr�text�	multipart�related�start�
content-idr)	rtrrr/r��
iter_parts�
_find_bodyr)r�)	rerR�preferencelist�maintype�subtype�subpart�	candidaterz�subpartss	         rr}�MIMEPart._find_body�sG��������� �1�1�3�9�9�#�>����v���(�%�+�+�G�4�d�;�;���{�"�$�*;�*;�*=�*=���i���?�?�,���?�?�7�C�C�C�-����&�!�'�'�	�2�D�9�9��	����w�'����?�?�,���<�(�E�1� '�I��-����'�'�)�H�'/����T�I�� ����y�A�A�A�!�D�
B�s+�B"E
�$E�%AE
�>E
�?E�E
�E
c�|�[U5nSnURX5HupEXB:dMUnUnUS:XdM U$ U$)a�Return best candidate mime part for display as 'body' of message.

Do a depth first search, starting with self, looking for the first part
matching each of the items in preferencelist, and return the part
corresponding to the first item that has a match, or None if no items
have a match.  If 'related' is not included in preferencelist, consider
the root part of any multipart/related encountered as a candidate
match.  Ignore parts with 'Content-Disposition: attachment'.
Nr)r!r})rer~�	best_prio�body�priorRs      r�get_body�MIMEPart.get_bodysO����'�	����/�/�$�?�J�D��� �	����1�9����
@��r>�rw�html�rw�plain�rxry�rx�alternativec#�# �UR5RS5upUS:wdUS:XagUR5nUR5nUS:Xa�US:Xa}URS5nU(aISn/nUH-nUR
S5U:XaS	nMURU5 M/ U(aUShv�N gURS
5 UShv�N g/n	UHfnUR5RS5upX4UR;a-UR5(dX);aU	RU5 MbUv� Mh g![a gf=fN�N�7f)a�Return an iterator over the non-main parts of a multipart.

Skip the first of each occurrence of text/plain, text/html,
multipart/related, or multipart/alternative in the multipart (unless
they have a 'Content-Disposition: attachment' header) and include all
remaining subparts in the returned iterator.  When applied to a
multipart/related, return all parts except the root part.  Return an
empty iterator when applied to a multipart/alternative or a
non-multipart.
rrxr�NryrzFr{Tr)rrr�r�r�r)r�r1�pop�_body_typesrt)
rerr�r�r�rzr��attachmentsrR�seens
          r�iter_attachments�MIMEPart.iter_attachments&s[���!�1�1�3�9�9�#�>����{�"�g��&>���"�"�$��	��L�L�N�E�
�{�"�w�)�';��N�N�7�+�E���� ��!�D��x�x��-��6� $��#�*�*�4�0�	"�
�*�*�*���I�I�a�L��������D� $� 5� 5� 7� =� =�c� B��H��#�t�'7�'7�7��*�*�,�,��1D����G�$���J�
��7�	��	��$+�
�sI�?E�E
�A'E�9E�:E�E�A4E�

E�E�E�E�Ec#�l# �UR5(aUR5Shv�N ggN7f)znReturn an iterator over all immediate subparts of a multipart.

Return an empty iterator for a non-multipart.
N)r�r�rjs rr|�MIMEPart.iter_parts]s0���
������'�'�)�)�)��)�s�)4�2�4)�content_managerc�`�UcURRnUR"U/UQ70UD6$r�)r\r��get_content�rer��args�kws    rr��MIMEPart.get_contentes2���"�"�k�k�9�9�O��*�*�4�=�$�=�"�=�=rc�b�UcURRnUR"U/UQ70UD6 gr�)r\r��set_contentr�s    rr��MIMEPart.set_contentjs/���"�"�k�k�9�9�O��#�#�D�6�4�6�2�6rc�0�UR5S:Xa4UR5nX!4-nXB;a[SRXA55e/n/nURHOupxUR5R
S5(aURXx45 M=URXx45 MQ U(a9[U5"URS9n	XilURU	l
U	/Ul
O/Ul
XPlSU-US'UbURSU5 gg)NrxzCannot convert {} to {}�content-rnz
multipart/r�r@)rrrIr�r]r0rFr1r�r\r_r�)
rer��disallowed_subtypesr@�existing_subtype�keep_headers�part_headersr�r*rRs
          r�_make_multipart�MIMEPart._make_multipartos���$�$�&�+�5�#�7�7�9��"5�
�"B���6� �!:�!A�!A�$�"/�0�0������=�=�K�D��z�z�|�&�&�z�2�2��#�#�T�M�2��#�#�T�M�2�	)�
���:�T�[�[�1�D�(�M� �M�M�D�M�!�F�D�M��D�M�$�
�+�g�5��^�����N�N�:�x�0� rc�*�URSSU5 g)Nry)r��mixed�r��rer@s  r�make_related�MIMEPart.make_related�s�����Y�(@�(�Krc�*�URSSU5 g)Nr�)r�r�r�s  r�make_alternative�MIMEPart.make_alternative�s�����]�J��Arc�*�URSSU5 g)Nr�r`r�r�s  r�
make_mixed�MIMEPart.make_mixed�s�����W�b�(�3r)�_dispc��UR5S:wdUR5U:wa[USU-5"5 [U5"URS9nUR
"U0UD6 U(a
SU;aX%S'UR
U5 g)Nrx�make_rnr;zContent-Disposition)rr�getattrr�r\r�r�)re�_subtyper�r�r�rRs      r�_add_multipart�MIMEPart._add_multipart�s{���%�%�'�;�6��(�(�*�h�6��D�'�H�,�-�/��D�z����-�����$�%�"�%��*�$�6�*/�&�'����D�rc�4�UR"S/UQ7SS0UD6 g)Nryr��inline�r��rer�r�s   r�add_related�MIMEPart.add_related�s�����I�C��C�H�C��Crc�0�UR"S/UQ70UD6 g)Nr�r�r�s   r�add_alternative�MIMEPart.add_alternative�s�����M�7�D�7�B�7rc�4�UR"S/UQ7SS0UD6 g)Nr�r�rrr�r�s   r�add_attachment�MIMEPart.add_attachment�s�����G�E�d�E�,�E�"�Erc� �/UlSUlgr��r]r_rjs r�clear�MIMEPart.clear�s����
���
rc��URVVs/sH.upUR5RS5(aM+X4PM0 snnUlSUlgs snnf)Nr�)r]r0rFr_)re�nr�s   r�
clear_content�MIMEPart.clear_content�sL��,0�M�M�B�M�D�A� !���	� 4� 4�Z� @� �!��M�B��
���
��Bs
�*A�Ar�r�)FNN))ryr�r�)rYrZr[r\rfrirkrtr}r�r�r�r|r�r�r�r�r�r�r�r�r�r�r�r�r_�
__classcell__�rgs@rrbrb�s����!�A� C�Q�B�:�(1�K�5�n*�26�>�
26�7�
1�6L�B�4�59��D�8�F���rrbc�(^�\rSrSrU4SjrSrU=r$)ri�c�>>�[TU]"U0UD6 SU;aSUS'gg)Nr�r�)rfr�)rer�r�rgs   �rr��EmailMessage.set_content�s,���
���T�(�R�(���%�#(�D�� �&rr`)rYrZr[r\r�r_r�r�s@rrr�s
���)�)r)NT)r]�__all__rJ�rer��iorr�emailrr�email._policybaser	rr`�email._encoded_wordsrr�r��compiler'rr+r7r:rWrrbrr`rr�<module>r�s���
?��n�
%���	�
� ���&�%�)�
�
�
���	�
�J�J�2�3�	� � �D�($�#�>G
%�G
%�T\�w�\�~)�8�)r
© 2025 GrazzMean-Shell