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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

6�h�B���SSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKrSSK
JrJrJrJrJr SSKJr SSKJrJrJrJrJr SSKJrJrJr "SS	\
R>5r "S
S\
R>5r!S!Sjr"S
r#Sr$Sr%Sr&S"Sjr'S"Sjr(Sr)S#Sjr*S$S%Sjjr+S&Sjr,S'Sjr-S(Sjr.S)S*Sjjr/S"S+Sjjr0S)S,Sjjr1S)S-Sjjr2S)S.Sjjr3\RhRjr6S/Sjr7S0Sjr8S1S jr9g)2�)�annotationsN)�Any�List�Optional�Tuple�Union�)�_)�encoding�error�pycompat�sslutil�util)�procutil�
stringutil�urlutilc�,�\rSrSrSrSSjrSSjrSrg)	�STARTTLS�-z�Derived class to verify the peer certificate for STARTTLS.

This class allows to pass any keyword arguments to SSL socket creation.
Nc�^�[RR"U40UD6 XlX lg�N)�smtplib�SMTP�__init__�_ui�_host)�self�ui�host�kwargss    �0/usr/lib/python3/dist-packages/mercurial/mail.pyr�STARTTLS.__init__3s#�������d�-�f�-����
�c��URS5(dSn[R"U5eURS5upVUS:Xaw[R
"URUUURURS9UlURRS5Ul
SUlSUl0Ul
SUlXV4$)N�starttlsz*STARTTLS extension not supported by serverr���r�serverhostname�rbr)�has_extnr�
SMTPException�docmdr�
wrapsocket�sockrr�makefile�file�	helo_resp�	ehlo_resp�esmtp_features�
does_esmtp)r�keyfile�certfile�context�msg�resp�replys       r!r%�STARTTLS.starttls8s����}�}�Z�(�(�>�C��'�'��,�,��
�
�:�.�
���3�;��*�*��	�	����8�8�#�z�z��D�I��	�	�*�*�4�0�D�I�!�D�N�!�D�N�"$�D���D�O��}�r#)rrr4r2r3r0r1r.r�NNN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr%�__static_attributes__�r#r!rr-s���
�
r#rc�(�\rSrSrSrSSjrSrSrg)�SMTPS�Mz�Derived class to verify the peer certificate for SMTPS.

This class allows to pass any keyword arguments to SSL socket creation.
Nc��X lX0l[RR"U40UD6 X@l[RUlXlgr)	r5r6rrrr�
SMTP_SSL_PORT�default_portr)rrr5r6rr s      r!r�SMTPS.__init__Ss;���� �
������d�-�f�-��
�#�1�1����r#c�B�URS:�a URRSX44-5 [R"X4U5n[
R"UURURURURS9nURS5UlU$)Nrsconnect: %r
r'r))�
debuglevelr�debug�socket�create_connectionrr-r5r6rr/r0)rr�port�timeout�
new_sockets     r!�_get_socket�SMTPS._get_socket[s����?�?�Q���H�H�N�N�+��|�o�=�>��-�-�t�l�G�D�
��'�'���L�L��M�M��x�x��:�:�
�
��'�'��-��	��r#)rrr6rIr0r5r<)r=r>r?r@rArrSrBrCr#r!rErEMs���
�r#rEc�H�SSKn[USS5 g![a gf=f)z9Returns true iff Python has TLS support, false otherwise.rN�HAS_TLSFT)�ssl�getattr�ImportError)rWs r!�	_pyhastlsrZjs+������Y��&�������s��
!�!c��^
�URSS5nURSS5nUS:H=(d [R"U5nUS:HnU(dU(a.[5(d[R
"[
S55eURSS5nU(d[R
"[
S55eU(a%UR[
S	55 [XUS
9m
O&U(a[XUS
9m
O[R"US9m
U(aSnOS
n[R"URSSU55nUR[
S5XW4-5 T
RXWS9 U(aJUR[
S55 T
R5 T
R!5 T
R5 U(dU(a:UR[
S55 ["R$"T
R&5 [)UT
XW5 U
4Sjn	U	$![R*a/n[R
"[R,"U55eSnAff=f)z;build an smtp connection and return a function to send mail�smtpslocal_hostnamestlssstarttlsssmtpss/can't use TLS: Python SSL support not installed�hosts+smtp.host not configured - cannot send mails(using smtps)
)�local_hostnamer)r^i��sports$sending mail: smtp host %s, port %d
)rrPs(using starttls)
s(verifying remote certificate)
Nc�>�TRXU5$![Ra_nURR	5Vs/sHoDSPM	 Os snfnn[
R"SSRU5-5eSnAf[Ra/n[
R"[R"U55eSnAff=f)Nr	�
)�sendmailr�SMTPRecipientsRefused�
recipients�valuesr�Abort�joinr+r�forcebytestr)�senderrdr8�inst�r�ss     �r!�send�_smtp.<locals>.send�s����	=��:�:�f�#�6�6���,�,�	>�(,���(>�(>�(@�A�(@�1�A�$�(@��A�J�A��+�+�e�e�j�j��&<�<�=�=���$�$�	=��+�+�j�5�5�d�;�<�<��	=�s,��C	�B�A�0B�C	�*C�C	)�configr�	parseboolrZrrfr
�noterErrrr�getport�connect�ehlor%r�validatesocketr.�_smtp_loginr+rh)rr^�tlsr%�smtps�mailhost�defaultport�mailportrjrmrls          @r!�_smtpr|us�����Y�Y�w�(9�:�N�
�)�)�G�V�
$�C��k�!�>�Z�%9�%9�#�%>�H��8�O�E��E�9�;�;��k�k�!�N�O�P�P��y�y��'�*�H���k�k�!�J�K�L�L��
����$�%�&��"�(�C��	��R�X�F���L�L��7����������r�y�y��'�;�G�H�H��G�G�A�6�7�8�:N�N�O��I�I�8�I�+��
����'�(�)�	����	�
�
��	�����5�
����5�6�7����q�v�v�&�9��B��8�.�=��K��� � �9��k�k�*�1�1�$�7�8�8��9�s�

H"�"I%�6*I � I%c��URSS5nURSS5nU(aGU(a[R"U5nO)UR5nUb[R"U5nU(aMU(aEUR	[S5U-5 [R"U5nUR
XE5 ggg)afA hook for the keyring extension to perform the actual SMTP login.

An already connected SMTP object of the proper type is provided, based on
the current configuration.  The host and port to which the connection was
established are provided for accessibility, since the SMTP object doesn't
provide an accessor.  ``smtplib.SMTPException`` is raised on error.
r\susernamespasswordNs&(authenticating to mail server as %s)
)ror�strfromlocal�getpassrqr
�login)r�smtpryr{�username�passwords      r!rvrv�s����y�y��+�.�H��y�y��+�.�H����,�,�X�6�H��z�z�|�H��#�#�0�0��:���H�
����<�=��H�I��(�(��2���
�
�8�&��xr#c	� �URSS5nSnSUU"U5SR[XR554-nUR[	S5U-5 [
R"US5nUR[R"U55 UR5nU(ac[R"S[RR[
R "U5S	5[
R""U54-5eg
)zsend mail using sendmail.�email�methodc�~�[R"[R"[R
"U555$r)r�
shellquoter�emailr�
strtolocal)�xs r!�stremail�_sendmail.<locals>.stremail�s)���"�"�:�#3�#3�H�4G�4G��4J�#K�L�Lr#s%s -f %s %s� ssending mail: %s
swbs%s %srN)rorg�maprqr
r�popen�writer�tonativeeol�closerrf�os�path�basename�
shellsplit�explainexit)	rrirdr8�programr��cmdline�fp�rets	         r!�	_sendmailr��s����i�i��)�,�G�M�������	�	�#�h�+�,� ��G�
�G�G�A�#�$�w�.�/�	�����	'�B��H�H�T�
�
�c�
"�#�
�(�(�*�C�
��k�k����� � ��!4�!4�W�!=�a�!@�A��$�$�S�)��
�
�	
�r#c�d�[US5n[R"S[R"55nUR	S[
R"U5[
R"U54-5 UR	U5 UR	S5 SSS5 g!,(df   g=f)zwrite mails to mboxzab+z%a %b %d %H:%M:%S %YsFrom %s %s
s

N)�open�time�strftime�	localtimer�rr�)�mboxrirdr8r��dates      r!�_mboxr��s���
�d�E�	�b��}�}�3�T�^�^�5E�F��
�����"�"�6�*�H�,?�,?��,E�F�
G�	
�	����
�
�����
�	�	�s�BB!�!
B/c�^^�T(a [TS5R5 U4Sj$TRSS5S:Xa[T5$U4Sj$)zjmake a mail connection. return a function to send mail.
call as sendmail(sender, list-of-recipients, msg).�wbc�>�[TXU5$r)r�)rlrk�mr�s   �r!�<lambda>�connect.<locals>.<lambda>�s���u�T�1��3r#r�r�r\c�>�[TXU5$r)r�)rlrkr�rs   �r!r�r��s���9�R��q�1r#)r�r�ror|)rr�s``r!rsrs�sD�����T�4���� �3�3�	�y�y��9�%��0��R�y��1�1r#c�&�[XS9nU"XU5$)N)r�)rs)rrirdr8r�rms      r!rbrb�s���2�!�D���C�(�(r#c�r�URSS5nUS:Xa7URSS5(d[R"[S55eg	[R
"U5nU(aUSOSnU(a[R"U5(d"[R"[S5U-5eg	)
z=determine if we have enough config data to try sending email.r�r�r\r]s>smtp specified as email transport, but no smtp host configuredrr#s0%r specified as email transport, but not in PATHN)rorrfr
rr��findexe)r�method�commands   r!�validateconfigr��s���
�Y�Y�x��
+�F�
����y�y��'�*�*��+�+��3���
�+��%�%�f�-�� '�'�!�*�S���H�,�,�W�5�5��+�+��E�F��P��
�6r#c���[RRU5RR	5nURS5(aURS5(dSUSS-$U$)��isoziso-�N)r��charset�Charset�
input_charset�lower�
startswith)�css r!�
codec2ianar�
sY��	���	�	�r�	"�	0�	0�	6�	6�	8�B�
�}�}�U���B�M�M�&�$9�$9���1�2����
�Ir#c�D�SS[R"[R5[R"[R5/nU(aS/nUH*nUR	U5 [X[
U55s $ [XS5$![a MGf=f)a"Return MIME message suitable for a patch.
Charset will be detected by first trying to decode as us-ascii, then utf-8,
and finally the global encodings. If all those fail, fall back to
ISO-8859-1, an encoding with that allows all byte sequences.
Transfer encodings will be used if necessary.�us-ascii�utf-8z
iso-8859-1)r
�sysstrr�fallbackencoding�decode�
mimetextqpr��UnicodeDecodeError)rl�subtype�displayr�r�s     r!�
mimetextpatchr�s���	������)�)�*�����1�1�2�	
�B���\����	�
�H�H�W���a�*�W�*=�>�>���a�,�/�/��"�	��	�s�%B�
B�Bc�X�[RRU5n[RR	5nURSU-5 UR
5H3n[U5S:�dM[RRUl	 O URX5 U$)zSReturn MIME message.
Quoted-printable transfer encoding will be used if necessary.
ztext/i�)r�r�r��message�Message�set_type�
splitlines�len�QP�
body_encoding�set_payload)�bodyr�r�r�r8�lines      r!r�r�4s��
���	�	�w�	'�B�
�-�-�
�
�
!�C��L�L��7�"�#����!���t�9�s�?�$�}�}�/�/�B���"��O�O�D���Jr#c��URSS5Vs/sH'n[R"UR55PM) nn[R"[R
R55[R"[RR55S/nUHnX;dM
UR
U5 M UVs/sHoRS5(aMUPM sn$s snfs snf)z;Obtains charsets to send mail parts not containing patches.r�scharsetsr��ascii)�
configlistr
r�r�rr��append�endswith)rr��charsets�	fallbackss    r!�	_charsetsr�Os����-�-��+�6��6�B�	������
�#�6�
��
	����1�1�7�7�9�:�����)�)�/�/�1�2���I�
��
���O�O�B���"�>��2���W�)=�B��>�>����?s�.C5�C:�,C:c
�D�U=(d [U5n[U[5(d1UHnURU5U4s $ URSS5S4$URS5 US4$![a MR[
a5 UR
[S5[R"U5-5 M�f=f![a� [R[R4H�n[R"U5nURU5nO![a M9f=fUHinURU5U4s s s$![a M*[
a5 UR
[S5[R"U5-5 Mgf=f M� US4$f=f)aReturns (converted) string, charset tuple.
Finds out best charset by cycling through sendcharsets in descending
order. Tries both encoding and fallbackencoding for input. Only as
last resort send as is in fake ascii.
Caveat: Do not use for mail parts containing patches!s!ignoring invalid sendcharset: %s
r��backslashreplacer�)r��
isinstance�bytes�encode�UnicodeEncodeError�LookupError�warnr
r
�sysbytesr�r�rr�r�)rrlr��sendcharsets�ocs�ics�us       r!�_encoder�`s����,�y��}�L��a���� �C�
��x�x��}�c�)�)� ��8�8�G�%7�8�*�D�D��	�����&
�j�=���C&�
���
�����;�<��'�'��,�-��
�����%�%�x�'@�'@�A�C��/�/�#�&�C�
��H�H�S�M���%�
��
��#����8�8�C�=�#�-�-��)���"���G�G��?�@�"�+�+�C�0�1����$�
B�"
�j�=��%�s~�A1�B?�1
B<�>:B<�;B<�?AF�D�F�
D#�F�"D#�#F�,E�>F�
F	�F�:F	�F�F	�	F�Fc��U(d;[XU5up[RRX5R	5$[
R"U5$)z4Returns RFC-2047 compliant header from given string.)r�r��header�Headerr�rr~�rrlr�r�r�s     r!�
headencoder��sD�����x�(����|�|�"�"�1�)�0�0�2�2�� � ��#�#r#c��[R"U5n[XU5nURS5upEUR	S5 UR	[
R"[R55RS5nSXE4-n[RRU[R "U545$![a# [R"[S5U-5e[aE UR	S5 N~![a# [R"[S5U-5ef=ff=f)N�@r��idnas%s@%ssinvalid email address: %ssinvalid local address: %s)rr�r��splitr�r
r�r�r�rrfr
�
ValueErrorr��utils�
formataddrr~)r�name�addrr��acc�doms      r!�_addressencoder��s�����t�$�D��b��)�D�F��:�:�d�#����
�
�7���j�j�����):�):�;�<�C�C�F�K���3�*�$���;�;�!�!�4��)>�)>�t�)D�"E�F�F���B��k�k�!�8�9�D�@�A�A��F�	F��K�K�� ��!�	F��+�+�a� <�=��D�E�E�	F��	F�s�A,C�5D?�;D�-D;�;D?c���U(dU(d[R"U=(d S5$[RR	[R"U55upE[XXR5$)z-Turns address into RFC-2047 compliant header.r#)rr~r�r��	parseaddrr�)r�addressr�r�r�r�s      r!�
addressencoder��sL���g��$�$�W�^��4�4����&�&�x�'<�'<�W�'E�F�J�D��"�D�3�3r#c���/nUHGn[U[5(d
SU-5eUR[R"U55 MI U(a7UVs/sH)oUR5(dMUR5PM+ sn$/n[RRU5H2upxU(d	U(dM[XX�5n	URU	5 M4 U$s snf)z�Turns a list of addresses into a list of RFC-2047 compliant headers.
A single element of input list may contain multiple addresses, but output
always has one address per itemz%r unexpectedly not a bytestr)
r�r�r�rr~�stripr�r��getaddressesr�)
r�addrsr�r��straddrs�a�resultr�r�rks
          r!�addrlistencoder�s����H�
���!�U�#�#�H�%D�q�%H�H�#�����-�-�a�0�1���#+�9�8�a�w�w�y�	����	�8�9�9�
�F��k�k�.�.�x�8�
���4�4��r��8�A��M�M�!��9��M��:s�C'�7C'c�J�SnU(d[XU5up[USU5$)zccreates mime text object, encodes it if needed, and sets
charset and transfer-encoding accordingly.r��plain)r�r�r�s     r!�
mimeencoder	�s)��
�B����x�(����a��"�%�%r#c���[RR5n[R"USS[S5S9nUR
U5UR5 $!UR5 f=f)Nr��surrogateescape�
)r�errors�newline)r��parser�Parser�io�
TextIOWrapper�chr�parse�detach)r��eps  r!rr�sW��	���	�	�	�B�
�	�	�
�W�%6��B��
�B���x�x��|�
�	�	����	�	��s�A!�!A3c�`�[RR5nURU5$r)r�r�BytesParser�
parsebytes)�datars  r!rr�s#��	���	!�	!�	#�B�
�=�=���r#c��/n[RRU5Htup#Ub#URUR	U55 M+[U[5(aURU5 MSURUR	S55 Mv [R"SRU55$![
[4a N�f=f![
a Of=fURUR	S55 M�)zDecodes RFC-2047 headerzUTF-8z
ISO-8859-1� )r�r��
decode_headerr�r�r�r�r��strr�
unitolocalrg)rl�uparts�partr�s    r!�
headdecoder"�s���
�F����3�3�A�6�
����
��
�
�d�k�k�'�2�3��
�d�C� � ��M�M�$���	��M�M�$�+�+�g�.�/��7�$���s�x�x��/�0�0��'��4�
��
��"�	��	���
�
�d�k�k�,�/�0s#� B?�6 C�?C�C�
C"�!C")�return�boolr)r�rr#r)rF)rlr�r�rr�r$r#�email.message.Message)r�r�r�rr�rr#r%)rrr#�	List[str])rrrlr�r�r&r#zTuple[bytes, str])NF)
rrrlzUnion[bytes, str]r��Optional[List[str]]r�r$r#r)
rrr�rr�rr�r'r#r)
rrr�r�r�r'r�r$r#r)
rrrzList[bytes]r�r'r�r$r#r&)
rrrlr�r�r'r�r$r#r%)r�rr#r%)rr�r#r%)rlz!Union[email.header.Header, bytes]r#r�):�
__future__rr��
email.charset�email.generator�email.header�
email.message�email.parserrr�rrNr��typingrrrrr�i18nr
r�rrr
rrr�rrrrrrErZr|rvr�r�rsrbr�r�r�r�r�r�r�r�r�rr	�	generator�BytesGenerator�	Generatorrrr"rCr#r!�<module>r3sD��#�������	�	��
����������w�|�|��@�G�L�L��:�1�h'�.
�4�2�)�
�(���0��0�
�0��0��	0�:�
����(+����6?�"/�j%)��	$��$��$�"�$��	$�
	�$�DH�G��G��G�!�G�-@�G��G�0%)��	
4��
4�
�
4�"�
4��	
4�
	�
4� %)��	�����"���	�
��6%)��	&��&��&�"�&��	&�
�&�
�O�O�*�*�	���
1r#

Youez - 2016 - github.com/yon3zu
LinuXploit