/usr/lib/python3/dist-packages/twisted/mail/__pycache__
NameSizeModeActions
alias.cpython-310.pyc254600644editdlrm
bounce.cpython-310.pyc27160644editdlrm
imap4.cpython-310.pyc1887170644editdlrm
interfaces.cpython-310.pyc400610644editdlrm
mail.cpython-310.pyc233090644editdlrm
maildir.cpython-310.pyc298900644editdlrm
pb.cpython-310.pyc46680644editdlrm
pop3.cpython-310.pyc526490644editdlrm
pop3client.cpython-310.pyc6570644editdlrm
protocols.cpython-310.pyc130160644editdlrm
relay.cpython-310.pyc58810644editdlrm
relaymanager.cpython-310.pyc386600644editdlrm
smtp.cpython-310.pyc622340644editdlrm
tap.cpython-310.pyc116840644editdlrm
_cred.cpython-310.pyc42270644editdlrm
_except.cpython-310.pyc123290644editdlrm
_pop3client.cpython-310.pyc463540644editdlrm
__init__.cpython-310.pyc2220644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/mail/__pycache__/bounce.cpython-310.pyc (2716B)
o bb @sNdZddlZddlZddlZddlmZmZmZddl m Z dZ d dd Z dS) z( Support for bounce message generation. N)SEEK_ENDSEEK_SETStringIO)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} utf-8c CsVt|tr ||}t|tr||}|sdj|d}tj|d}dtt dt t|| ddd||t j dd||d }t}|tjdi||}|d t|} ||t| d kr |} t| tr}| |} t| d krn|| qon|} t| tr| |} || d ||||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. )failedToz{}_{}_{}XXXXX@bounce)uniq) boundaryctime failedAddress failedDomain failedFromr messageIDmessage transcriptri'N) isinstancebytesdecodeformatemailutils parseaddrtimeosgetpidrsplitr messageidrwrite BOUNCE_FORMATtellseekrrreadlinelenreadencodegetvalue) rrrrencodingrdatafporigszlinemessageContentrr5/usr/lib/python3/dist-packages/twisted/mail/bounce.pygenerateBounce$sR                r5)rr) __doc__ email.utilsrr riorrr twisted.mailrr%r5rrrr4s