403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��g��(�SrSSKrSSKrSSKrSSKJrJr SSKJrJ	r	 SSK
JrJr \R"SSSS	9r\R"S
SSS	9r\R"SSS
S	9r"SS\5r"SS\5r"SS\5r"SS\5r"SS5rg)z#A convenience class around smtplib.�N)�getaddresses�	parseaddr�)�config�osutils)�BzrError�InternalBzrError�
smtp_passwordz3Password to use for authentication to SMTP server.
)�default�help�smtp_serverz6Hostname of the SMTP server to use for sending email.
�
smtp_usernamez3Username to use for authentication to SMTP server.
c��\rSrSrSrSrSrg)�	SMTPError�2zSMTP error: %(error)sc��Xlg�N��error)�selfrs  �8/usr/lib/python3/dist-packages/breezy/smtp_connection.py�__init__�SMTPError.__init__5s���
�rN��__name__�
__module__�__qualname__�__firstlineno__�_fmtr�__static_attributes__�rrrr2s��"�D�rrc��\rSrSrSrSrSrg)�SMTPConnectionRefused�9z#SMTP connection to %(host)s refusedc��XlX lgr�r�host)rrr(s   rr�SMTPConnectionRefused.__init__<s���
��	rr'Nrr"rrr$r$9s��0�D�rr$c��\rSrSrSrSrg)�DefaultSMTPConnectionRefused�Az;Please specify smtp_server.  No server at default %(host)s.r"N�rrrrr r!r"rrr+r+As��H�Drr+c��\rSrSrSrSrg)�NoDestinationAddress�Ez,Message does not have a destination address.r"Nr-r"rrr/r/Es��9�Drr/c�N�\rSrSrSrSrSSjrSrSrSr	\
S	5rS
rSr
g)
�SMTPConnection�Iz�Connect to an SMTP server and send an email.

This is a gateway between breezy.config.Config and smtplib.SMTP. It
understands the basic bzr SMTP configuration information: smtp_server,
smtp_username, and smtp_password.
�	localhostNc�V�X lURc[RUlXlUR"S5UlUR
UlURcURUlUR"S5UlUR"S5Ul	SUl
g)Nr
rr
)�
_smtp_factory�smtplib�SMTP�_config�get�_config_smtp_server�_smtp_server�_default_smtp_server�_smtp_username�_smtp_password�_connection)rrr6s   rr�SMTPConnection.__init__Ss���*�����%�!(���D����#)�:�:�m�#<�� � �4�4������$� $� 9� 9�D��$�j�j��9���$�j�j��9�����rc�`�URbgUR5 UR5 g)z2If we haven't connected, connect and authenticate.N)r@�_create_connection�
_authenticate)rs r�_connect�SMTPConnection._connectbs+�����'�����!�	
���rc�T�URURS9UlURR5up#SUs=::aS::d>O URR5up#SUs=::aS::dO [SUSU35eURRS5(ayURR!5up#SUs=::aS::dO [S	USU35eURR5up#SUs=::aS::dO [S
USU35egg![a|nURS[
R:XaUURc$[[RUR5e[[RUR5eeSnAff=f)zCreate an SMTP connection.)r(rN��i+zserver refused HELO: � �starttlszserver refused STARTTLS: zserver refused EHLO: )r6r<r@�OSError�args�errno�ECONNREFUSEDr;r+�socketrr$�ehlo�helor�has_extnrJ)r�e�code�resps    rrC�!SMTPConnection._create_connectionms���		�#�1�1�t�7H�7H�1�I�D���%�%�*�*�,�
���t�"�s�"��)�)�.�.�0�J�D��4�&�3�&��"7��v�Q�t�f� E�F�F����$�$�Z�0�0��)�)�2�2�4�J�D��4�&�3�&��";�D�6��4�&� I�J�J��)�)�.�.�0�J�D��4�&�3�&��"7��v�Q�t�f� E�F�F�'�
1��#�	��v�v�a�y�E�.�.�.��+�+�3�6�v�|�|�T�EV�EV�W�W�/����d�>O�>O�P�P���	�s�D!�!
F'�+A7F"�"F'c���[R"5nURc/URSUR5UlURcgUR
c,UR
SURUR5Ul[R"UR5n[R"UR
5nURRX#5 g)z1If necessary authenticate yourself to the server.N�smtp)r�AuthenticationConfigr>�get_userr<r?�get_passwordr�	safe_utf8r@�login)r�auth�username�passwords    rrD�SMTPConnection._authenticate�s����*�*�,�����&�#'�-�-���8I�8I�"J�D���"�"�*�����&�"&�"3�"3���)�)�4�+>�+>�#�D���$�$�T�%8�%8�9���$�$�T�%8�%8�9�������x�2rc��[URSS55Sn/nSH/nURUS5nU(dMURU5 M1 [U5Vs/sHoUSPM	 nnX4$s snf)aGet the origin and destination addresses of a message.

:param message: A message object supporting get() to access its
    headers, like email.message.Message or
    breezy.email_message.EmailMessage.
:return: A pair (from_email, to_emails), where from_email is the email
    address in the From header, and to_emails a list of all the
    addresses in the To, Cc, and Bcc headers.
�FromNr)�To�Cc�Bcc)rr:�appendr)�message�
from_email�to_full_addresses�header�value�pair�	to_emailss       r�get_message_addresses�$SMTPConnection.get_message_addresses�s����w�{�{�6�4�8�9�!�<�
���)�F��K�K���-�E��u�!�(�(��/�*�*6�6G�)H�I�)H��!�W�)H�	�I��$�$��Js�#A6c
�.�URU5up#U(d[eUR5 URR	X#UR55 g![Ra=n[S[[URR555-5eSnAf[Ra)n[URSUR35eSnAf[R an[[#U55eSnAff=f)z�Send an email message.

The message will be sent to all addresses in the To, Cc and Bcc
headers.

:param message: An email.message.Message or
    email.mime.multipart.MIMEMultipart object.
:return: None
zserver refused recipient: %d %sNrI)ror/rEr@�sendmail�	as_stringr7�SMTPRecipientsRefusedr�next�iter�
recipients�values�SMTPResponseException�	smtp_code�
smtp_error�
SMTPException�str)rrhrirnrSs     r�
send_email�SMTPConnection.send_email�s���!%� :� :�7� C��
��&�&�
	$��M�M�O����%�%�j�W�=N�=N�=P�Q���,�,�	��1�D��a�l�l�>Q�>Q�>S�9T�4U�U��
���,�,�	=��q�{�{�m�1�Q�\�\�N�;�<�<���$�$�	$��C��F�#�#��	$�s/�:A�D�18B)�)D�$C$�$D�;D�D)r9r;r@r6r?r<r>r)rrrr�__doc__r=rrErCrD�staticmethodror~r!r"rrr2r2Is=���'��
 �	�G�<3�2�%��%�($rr2)r�rMr7rO�email.utilsrr�rr�errorsrr	�Optionr
r
rrr$r+r/r2r"rr�<module>r�s���"*���
�/��.��
�
���
��
��m�m���
����
�
���
��
�����I��I�#8�I�:�+�:�I$�I$r

Youez - 2016 - github.com/yon3zu
LinuXploit