403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.208
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/breezy/__pycache__/email_message.cpython-313.pyc
�

p��g!���SrSSKJr SSKJr SSKJr SSKJr SSK	J
r
Jr SSKJ
r SS	KJr SS
KJr SSKJr "SS
5rg)zAA convenience class around email.Message and email.MIMEMultipart.�)�Header)�Message)�
MIMEMultipart)�MIMEText)�
formataddr�	parseaddr�)�__version__)�BzrBadParameterNotUnicode)�safe_unicode)�SMTPConnectionc��\rSrSrSrSSjrSSjrSSjr\rSSjr	Sr
S	r\SS
j5r
\S5r\S5rS
rg)�EmailMessage�aNAn email message.

The constructor needs an origin address, a destination address or addresses
and a subject, and accepts a body as well. Add additional parts to the
message with add_inline_attachment(). Retrieve the entire formatted message
with as_string().

Headers can be accessed with get() and msg[], and modified with msg[] =.
Nc��0UlX@l/Ul[U[[
45(aU/n/nUH#nUR
URU55 M% SRU5URS'URU5URS'[[U55URS'SR[5URS'g)a,Create an email message.

:param from_address: The origin address, to be put on the From header.
:param to_address: The destination address of the message, to be put in
    the To header. Can also be a list of addresses.
:param subject: The subject of the message.
:param body: If given, the body of the message.

All four parameters can be unicode strings or byte strings, but for the
addresses and subject byte strings must be encoded in UTF-8. For the
body any byte string will be accepted; if it's not ASCII or UTF-8,
it'll be sent with charset=8-bit.
z, �To�From�SubjectzBazaar ({})z
User-AgentN)
�_headers�_body�_parts�
isinstance�bytes�str�append�address_to_encoded_header�joinrr�format�_breezy_version)�self�from_address�
to_address�subject�body�to_addresses�addrs       �6/usr/lib/python3/dist-packages/breezy/email_message.py�__init__�EmailMessage.__init__*s�����
��
�����j�5�#�,�/�/�$��J����D����� >� >�t� D�E��#�i�i��5��
�
�d�� $� >� >�|� L��
�
�f��#)�,�w�*?�#@��
�
�i� �&3�&:�&:�?�&K��
�
�l�#�c��URb/URRURSS45 SUlURRXU45 g)aAdd an inline attachment to the message.

:param body: A text to attach. Can be an unicode string or a byte
    string, and it'll be sent as ascii, utf-8, or 8-bit, in that
    preferred order.
:param filename: The name for the attachment. This will give a default
    name for email programs to save the attachment.
:param mime_subtype: MIME subtype of the attachment (eg. 'plain' for
    text/plain [default]).

The attachment body will be displayed inline, so do not use this
function to attach binary attachments.
N�plain)rrr)r r$�filename�mime_subtypes    r'�add_inline_attachment�"EmailMessage.add_inline_attachmentIsI�� �:�:�!��K�K����
�
�D�'�:�;��D�J������D�L�9�:r*c�^�UR(dF[5nURb.URUR5up4UR	X45 O�[5nUbUR
U5 URHiup5nURU5up4[X6U5nUb+USnUSRU5-
nURSU5 SUS'URU5 Mk [URR55H	up�X�U	'M UR5$)z�Return the entire formatted message as a string.

:param boundary: The boundary to use between MIME parts, if applicable.
    Used for tests.
zContent-Typez; name="{}"�inlinezContent-Disposition)rrr�string_with_encoding�set_payloadr�set_boundaryrr�replace_header�attach�sortedr�items�	as_string)r �boundary�msgobjr$�encodingr-r.�payload�content_type�header�values           r'r:�EmailMessage.as_string_s���{�{��Y�F��z�z�%�!%�!:�!:�4�:�:�!F����"�"�4�2��"�_�F��#��#�#�H�-�04���,���!%�!:�!:�4�!@���"�4�x�@���'�#*�>�#:�L� �M�$8�$8��$B�B�L��*�*�>�<�H�19��-�.��
�
�g�&�1<�$�D�M�M�$7�$7�$9�:�M�F�"�6�N�;����!�!r*c�8�URRX5$)z@Get a header from the message, returning failobj if not present.�r�get)r r@�failobjs   r'rE�EmailMessage.get�s���}�}� � ��1�1r*c�:�URRUS5$)z�Get a header from the message, returning None if not present.

This method intentionally does not raise KeyError to mimic the behavior
of __getitem__ in email.Message.
NrD)r r@s  r'�__getitem__�EmailMessage.__getitem__�s���}�}� � ���.�.r*c�8�URRX5$�N)r�__setitem__)r r@rAs   r'rM�EmailMessage.__setitem__�s���}�}�(�(��7�7r*c�z�[XX45nUbURXVU5 [U5RU5 g)z�Create an email message and send it with SMTPConnection.

:param config: config object to pass to SMTPConnection constructor.

See EmailMessage.__init__() and EmailMessage.add_inline_attachment()
for an explanation of the rest of parameters.
N)rr/r
�
send_email)	�configr!r"r#r$�
attachment�attachment_filename�attachment_mime_subtype�msgs	         r'�send�EmailMessage.send�s?��$�<�W�C���!��%�%��1H�
�	�v��)�)�#�.r*c	��[U[5(d[U5e[U5upU(dU$[	[[[
U555U45$)z�RFC2047-encode an address if necessary.

:param address: An unicode string, or UTF-8 byte string.
:return: A possibly RFC2047-encoded string.
)rrrrrrr)�address�user�emails   r'r�&EmailMessage.address_to_encoded_header�sQ���'�3�'�'�+�G�4�4� ��(�����L��s�6�,�t�*<�#=�>��F�G�Gr*c�>�[U[5(aURS5S4$UR	S5 US4$![a URS5S4s$f=f![
a/ UR	S5 US4s$![
a	 US4ss$f=ff=f)z�Return a str object together with an encoding.

:param string\\_: A str or unicode object.
:return: A tuple (str, encoding), where encoding is one of 'ascii',
    'utf-8', or '8-bit', in that preferred order.
�asciizutf-8z8-bit)rr�encode�UnicodeEncodeError�decode�UnicodeDecodeError)�string_s r'r3�!EmailMessage.string_with_encoding�s����g�s�#�#�
:����w�/��9�9�
.����w�'���)�)��&�
:����w�/��9�9�
:��&�
.�.��N�N�7�+�#�W�-�-��)�.�#�W�-�-�.��	
.�s@�A�A#�A �A �#
B�.B�B�B�B�B�B)rrrrL)Nr,)NNr,)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r(r/r:�__str__rErIrM�staticmethodrVrr3�__static_attributes__�r*r'rrsw���L�>;�,!"�F�G�2�/�8��� � '�/��/�0�H��H� �.��.r*rN)ri�email.headerr�
email.messager�email.mime.multipartr�email.mime.textr�email.utilsrr�r
r�errorsr�osutilsr�smtp_connectionr
rrmr*r'�<module>rws2��"H��!�.�$�-�,�-�!�+�y.�y.r*

Youez - 2016 - github.com/yon3zu
LinuXploit