CasperSecurity

Current Path : /lib/python3/dist-packages/twisted/mail/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/twisted/mail/__pycache__/_except.cpython-310.pyc

o

�b"�@s�dZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de�ZGd
d�de�Z	Gdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd �d e�ZGd!d"�d"e�ZGd#d$�d$e�ZGd%d&�d&e�ZGd'd(�d(e�ZGd)d*�d*e�ZGd+d,�d,e�ZGd-d.�d.e�ZGd/d0�d0e�ZGd1d2�d2e�ZGd3d4�d4e�ZGd5d6�d6e�ZGd7d8�d8e�ZGd9d:�d:e�ZGd;d<�d<e�Z Gd=d>�d>e�Z!Gd?d@�d@e!�Z"GdAdB�dBe"�Z#GdCdD�dDe"�Z$GdEdF�dFe�Z%GdGdH�dHe�Z&GdIdJ�dJe�Z'GdKdL�dLe�Z(GdMdN�dNe(�Z)GdOdP�dPe(�Z*GdQdR�dRe(�Z+GdSdT�dTe(�Z,GdUdV�dVe(�Z-dWS)Xz 
Exceptions in L{twisted.mail}.
�)�Optionalc@�eZdZdS)�IMAP4ExceptionN��__name__�
__module__�__qualname__�r	r	�6/usr/lib/python3/dist-packages/twisted/mail/_except.pyr�rc@r)�IllegalClientResponseNrr	r	r	r
rrrc@r)�IllegalOperationNrr	r	r	r
r
rr
c@r)�IllegalMailboxEncodingNrr	r	r	r
rrrc@r)�MailboxExceptionNrr	r	r	r
rrrc@�eZdZdefdd�ZdS)�MailboxCollision�returncC�
d|jS)NzMailbox named %s already exists��args��selfr	r	r
�__str__ �
zMailboxCollision.__str__N�rrr�strrr	r	r	r
r�rc@r)�
NoSuchMailboxrcCr)NzNo mailbox named %s existsrrr	r	r
r%rzNoSuchMailbox.__str__Nrr	r	r	r
r$rrc@r)�ReadOnlyMailboxrcCsdS)NzMailbox open in read-only stater	rr	r	r
r*szReadOnlyMailbox.__str__Nrr	r	r	r
r)rrc@r)�UnhandledResponseNrr	r	r	r
r.rrc@r)�NegativeResponseNrr	r	r	r
r 2rr c@�"eZdZdd�Zdefdd�ZdS)�NoSupportedAuthenticationcCst�|d�||_||_dS)Nz-No supported authentication schemes available)r�__init__�serverSupports�clientSupports)rr$r%r	r	r
r#7s
z"NoSupportedAuthentication.__init__rcCst�|�d�|j|j�S)Nz,: Server supports {!r}, client supports {!r})rr�formatr$r%rr	r	r
r<s���z!NoSupportedAuthentication.__str__N�rrrr#rrr	r	r	r
r"6sr"c@r)�IllegalServerResponseNrr	r	r	r
r(Err(c@r)�IllegalIdentifierErrorNrr	r	r	r
r)Irr)c@r)�IllegalQueryErrorNrr	r	r	r
r*Mrr*c@r)�MismatchedNestingNrr	r	r	r
r+Qrr+c@r)�MismatchedQuotingNrr	r	r	r
r,Urr,c@r)�	SMTPErrorNrr	r	r	r
r-Yrr-c
@s`eZdZdZ				ddededeedeeded	efd
d�Z	de
fd
d�Zdefdd�ZdS)�SMTPClientErrorz,
    Base class for SMTP client errors.
    NF�code�resp�log�	addresses�isFatal�retrycCsPt|t�r
|�d�}t|t�r|�d�}||_||_||_||_||_||_dS)a
        @param code: The SMTP response code associated with this error.
        @param resp: The string response associated with this error.
        @param log: A string log of the exchange leading up to and including
            the error.
        @param isFatal: A boolean indicating whether this connection can
            proceed or not. If True, the connection will be dropped.
        @param retry: A boolean indicating whether the delivery should be
            retried. If True and the factory indicates further retries are
            desirable, they will be attempted, otherwise the delivery will be
            failed.
        �utf-8N)	�
isinstancer�encoder/r0r1r2r3r4�rr/r0r1r2r3r4r	r	r
r#bs




zSMTPClientError.__init__rcCs|���d�S)Nr5)�	__bytes__�decoderr	r	r
r�szSMTPClientError.__str__cCsT|jdkr|jd�d���|jg}n|jg}|jr%|�|j�|�d�d�|�S)Nr�03d� ��
)r/r7r0r1�append�join)r�resr	r	r
r9�s


zSMTPClientError.__bytes__)NNFF)
rrr�__doc__�int�bytesr�object�boolr#rrr9r	r	r	r
r.]s*������
�"r.c@�eZdZdZdS)�ESMTPClientErrorz-
    Base class for ESMTP client errors.
    N�rrrrBr	r	r	r
rH��rHc@rG)�EHLORequiredErrorz{
    The server does not support EHLO.

    This is considered a non-fatal error (the connection will not be dropped).
    NrIr	r	r	r
rK�rJrKc@rG)�AUTHRequiredErrorz�
    Authentication was required but the server does not support it.

    This is considered a non-fatal error (the connection will not be dropped).
    NrIr	r	r	r
rL�rJrLc@rG)�TLSRequiredErrorz�
    Transport security was required but the server does not support it.

    This is considered a non-fatal error (the connection will not be dropped).
    NrIr	r	r	r
rM�rJrMc@rG)�AUTHDeclinedErrorz�
    The server rejected our credentials.

    Either the username, password, or challenge response
    given to the server was rejected.

    This is considered a non-fatal error (the connection will not be
    dropped).
    NrIr	r	r	r
rN�rJrNc@rG)�AuthenticationErrorz�
    An error occurred while authenticating.

    Either the server rejected our request for authentication or the
    challenge received was malformed.

    This is considered a non-fatal error (the connection will not be
    dropped).
    NrIr	r	r	r
rO�rJrOc@rG)�SMTPTLSErrorz�
    An error occurred while negiotiating for transport security.

    This is considered a non-fatal error (the connection will not be dropped).
    NrIr	r	r	r
rP�rJrPc@�eZdZdZddd�ZdS)�SMTPConnectErrorzt
    Failed to connect to the mail exchange host.

    This is considered a fatal error.  A retry will be made.
    NTc	C�t�|||||||�dS�N�r.r#r8r	r	r
r#��zSMTPConnectError.__init__�NNTT�rrrrBr#r	r	r	r
rR��rRc@rQ)�SMTPTimeoutErrorz�
    Failed to receive a response from the server in the expected time period.

    This is considered a fatal error.  A retry will be made.
    NTc	CrSrTrUr8r	r	r
r#�rVzSMTPTimeoutError.__init__rWrXr	r	r	r
rZ�rYrZc@seZdZdZddd�ZdS)�SMTPProtocolErrorzo
    The server sent a mangled response.

    This is considered a fatal error.  A retry will not be made.
    NTFc	CrSrTrUr8r	r	r
r#�rVzSMTPProtocolError.__init__)NNTFrXr	r	r	r
r[�rYr[c@rG)�SMTPDeliveryErrorz=
    Indicates that a delivery attempt has had an error.
    NrIr	r	r	r
r\�rJr\c@r!)�SMTPServerErrorcCs||_||_dSrT�r/r0)rr/r0r	r	r
r#�s
zSMTPServerError.__init__rcCsd|j|jfS)Nz%.3d %sr^rr	r	r
r�szSMTPServerError.__str__Nr'r	r	r	r
r]�sr]c@r!)�SMTPAddressErrorcCs(ddlm}t�|||�||�|_dS)Nr)�Address)�twisted.mail.smtpr`r]r#�addr)rrbr/r0r`r	r	r
r#szSMTPAddressError.__init__rcCsd|j|j|jfS)Nz%.3d <%s>... %s)r/rbr0rr	r	r
r�zSMTPAddressError.__str__Nr'r	r	r	r
r_sr_c@�eZdZddd�ZdS)�SMTPBadRcpt�&�$Cannot receive for specified addresscC�t�||||�dSrT�r_r#�rrbr/r0r	r	r
r#rczSMTPBadRcpt.__init__N)rfrg�rrrr#r	r	r	r
re�rec@rd)�
SMTPBadSenderrf�Sender not acceptablecCrhrTrirjr	r	r
r#rczSMTPBadSender.__init__N)rfrnrkr	r	r	r
rmrlrmc@rG)�AddressErrorz 
    Parse error in address
    NrIr	r	r	r
rorJroc@rG)�	POP3Errorz)
    The base class for POP3 errors.
    NrIr	r	r	r
rpsrpc@rG)�_POP3MessageDeletedzb
    An internal control-flow error which indicates that a deleted message was
    requested.
    NrIr	r	r	r
rq#rJrqc@rG)�POP3ClientErrorzA
    The base class for all exceptions raised by POP3Client.
    NrIr	r	r	r
rr*rJrrc@rG)� InsecureAuthenticationDisallowedze
    An error indicating secure authentication was required but no mechanism
    could be found.
    NrIr	r	r	r
rs0rJrsc@rG)�TLSErrorz�
    An error indicating secure authentication was required but either the
    transport does not support TLS or no TLS context factory was supplied.
    NrIr	r	r	r
rt7rJrtc@rG)�TLSNotSupportedErrorzi
    An error indicating secure authentication was required but the server does
    not support TLS.
    NrIr	r	r	r
ru>rJruc@seZdZdZddd�ZdS)�ServerErrorResponsez
    An error indicating that the server returned an error response to a
    request.

    @ivar consumer: See L{__init__}
    NcCst�||�||_dS)a
        @type reason: L{bytes}
        @param reason: The server response minus the status indicator.

        @type consumer: callable that takes L{object}
        @param consumer: The function meant to handle the values for a
            multi-line response.
        N)rrr#�consumer)r�reasonrwr	r	r
r#Ms	
zServerErrorResponse.__init__rTrXr	r	r	r
rvEsrvc@rG)�LineTooLongz�
    An error indicating that the server sent a line which exceeded the
    maximum line length (L{LineOnlyReceiver.MAX_LENGTH}).
    NrIr	r	r	r
ryZrJryN).rB�typingr�	Exceptionrrr
rrrrrrr r"r(r)r*r+r,r-r.rHrKrLrMrNrOrPrRrZr[r\r]r_rermrorprqrrrsrtrurvryr	r	r	r
�<module>sX5	
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY