403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/twisted/mail/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/twisted/mail/__pycache__/bounce.cpython-312.pyc
�

Ϫ�fb��L�dZddlZddlZddlZddlmZmZmZddl	m
Z
dZdd�Zy)z(
Support for bounce message generation.
�N)�SEEK_END�SEEK_SET�StringIO)�smtpa]From: postmaster@{failedDomain}
To: {failedFrom}
Subject: Returned Mail: see transcript for details
Message-ID: {messageID}
Content-Type: multipart/report; report-type=delivery-status;
    boundary="{boundary}"

--{boundary}

{transcript}

--{boundary}
Content-Type: message/delivery-status
Arrival-Date: {ctime}
Final-Recipient: RFC822; {failedTo}
c
��t|t�r|j|�}t|t�r|j|�}|sdj|��}tj
j
|�d}djtj�tj�d�tjtj��||jdd�d||tjd��||d	�	}t�}|jt!jd
i|���|j#�}|j%d
t&�|j#�}	|j%|t(�|	dkDrS	|j+�}
t|
t�r|
j|�}
t-|
�d
krnT|j|
��R|j/�}t|t�r|j|�}|j|�d|j1|�|j3�j1|�fS)a^
    Generate a bounce message for an undeliverable email message.

    @type message: a file-like object
    @param message: The undeliverable message.

    @type failedFrom: L{bytes} or L{unicode}
    @param failedFrom: The originator of the undeliverable message.

    @type failedTo: L{bytes} or L{unicode}
    @param failedTo: The destination of the undeliverable message.

    @type transcript: L{bytes} or L{unicode}
    @param transcript: An error message to include in the bounce message.

    @type encoding: L{str} or L{unicode}
    @param encoding: Encoding to use, default: utf-8

    @rtype: 3-L{tuple} of (E{1}) L{bytes}, (E{2}) L{bytes}, (E{3}) L{bytes}
    @return: The originator, the destination and the contents of the bounce
        message.  The destination of the bounce message is the originator of
        the undeliverable message.
    zzI'm sorry, the following address has permanent errors: {failedTo}.
I've given up, and I will not retry the message again.
)�failedTo�z{}_{}_{}�XXXXX�@�bounce)�uniq)	�boundary�ctime�
failedAddress�failedDomain�
failedFromr�	messageID�message�
transcriptri'��)�
isinstance�bytes�decode�format�email�utils�	parseaddr�time�os�getpidr�splitr�	messageidr�write�
BOUNCE_FORMAT�tell�seekrr�readline�len�read�encode�getvalue)rrrr�encodingr�data�fp�orig�sz�line�messageContents            �5/usr/lib/python3/dist-packages/twisted/mail/bounce.py�generateBouncer5$s���2�*�e�$��&�&�x�0�
��(�E�"��?�?�8�,�����F���
�	��K�K�)�)�(�3�A�6�M��%�%�d�i�i�k�2�9�9�;��H����D�I�I�K�(�&�%�+�+�C��3�A�6� ���^�^��2�� �
�D�
��B��H�H�]�
!�
!�
)�D�
)�*��<�<�>�D��L�L��H��	����B��L�L��x� �	�E�z���#�#�%�D��$��&��{�{�8�,���4�y�A�~���H�H�T�N�
�!������n�e�,�+�2�2�8�<�N�
���� ��
�!�!�(�+�R�[�[�]�-A�-A�(�-K�K�Kr)�zutf-8)
�__doc__�email.utilsrr r�iorrr�twisted.mailrr%r5rrr4�<module>r;s,����	��+�+���
�&GLr

Youez - 2016 - github.com/yon3zu
LinuXploit