HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/mail/__pycache__/_except.cpython-38.pyc
U


W[;"�@s�dZddlmZmZddlmZmZGdd�de�ZGdd�de�Z	Gdd	�d	e�Z
Gd
d�de�ZGdd
�d
e�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�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.d/�d/e�ZGd0d1�d1e�ZGd2d3�d3e�ZGd4d5�d5e�Z Gd6d7�d7e�Z!Gd8d9�d9e�Z"Gd:d;�d;e�Z#Gd<d=�d=e�Z$Gd>d?�d?e�Z%Gd@dA�dAe%�Z&GdBdC�dCe&�Z'GdDdE�dEe&�Z(GdFdG�dGe�Z)GdHdI�dIe�Z*GdJdK�dKe�Z+GdLdM�dMe�Z,GdNdO�dOe,�Z-GdPdQ�dQe,�Z.GdRdS�dSe,�Z/GdTdU�dUe,�Z0GdVdW�dWe,�Z1dXS)Yz 
Exceptions in L{twisted.mail}.
�)�absolute_import�division)�_PY3�unicodec@seZdZdS)�IMAP4ExceptionN��__name__�
__module__�__qualname__�rr�6/usr/lib/python3/dist-packages/twisted/mail/_except.pyr
src@seZdZdS)�IllegalClientResponseNrrrrrr
sr
c@seZdZdS)�IllegalOperationNrrrrrrsrc@seZdZdS)�IllegalMailboxEncodingNrrrrrrsrc@seZdZdS)�MailboxExceptionNrrrrrr!src@seZdZdd�ZdS)�MailboxCollisioncCs
d|jS)NzMailbox named %s already exists��args��selfrrr�__str__'szMailboxCollision.__str__N�rr	r
rrrrrr&src@seZdZdd�ZdS)�
NoSuchMailboxcCs
d|jS)NzNo mailbox named %s existsrrrrrr-szNoSuchMailbox.__str__Nrrrrrr,src@seZdZdd�ZdS)�ReadOnlyMailboxcCsdS)NzMailbox open in read-only staterrrrrr3szReadOnlyMailbox.__str__Nrrrrrr2src@seZdZdS)�UnhandledResponseNrrrrrr7src@seZdZdS)�NegativeResponseNrrrrrr<src@seZdZdd�Zdd�ZdS)�NoSupportedAuthenticationcCst�|d�||_||_dS)Nz-No supported authentication schemes available)r�__init__�serverSupports�clientSupports)rrrrrrrBs�z"NoSupportedAuthentication.__init__cCst�|�d|j|jfS)Nz(: Server supports %r, client supports %r)rrrrrrrrrHs

��z!NoSupportedAuthentication.__str__N�rr	r
rrrrrrrAsrc@seZdZdS)�IllegalServerResponseNrrrrrr!Osr!c@seZdZdS)�IllegalIdentifierErrorNrrrrrr"Tsr"c@seZdZdS)�IllegalQueryErrorNrrrrrr#Ysr#c@seZdZdS)�MismatchedNestingNrrrrrr$^sr$c@seZdZdS)�MismatchedQuotingNrrrrrr%csr%c@seZdZdS)�	SMTPErrorNrrrrrr&hsr&c@s*eZdZdZd
dd�Zdd�Zdd	�ZdS)�SMTPClientErrorz,
    Base class for SMTP client errors.
    NFcCs(||_||_||_||_||_||_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.
        @type log: L{bytes}

        @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.
        N)�code�resp�log�	addresses�isFatal�retry�rr(r)r*r+r,r-rrrrqszSMTPClientError.__init__cCstr|���d�S|��SdS)N�utf-8)r�	__bytes__�decoderrrrr�szSMTPClientError.__str__cCsv|jdkrd�|j|j�g}n|jg}|jrB|�|j�|�d�t|�D] \}}t|t�rJ|�d�||<qJd�	|�S)Nrz	{:03d} {}�r/�
)
r(�formatr)r*�append�	enumerate�
isinstancer�encode�join)r�res�i�rrrrr0�s


zSMTPClientError.__bytes__)NNFF)rr	r
�__doc__rrr0rrrrr'ms�
r'c@seZdZdZdS)�ESMTPClientErrorz-
    Base class for ESMTP client errors.
    N�rr	r
r=rrrrr>�sr>c@seZdZdZdS)�EHLORequiredErrorz{
    The server does not support EHLO.

    This is considered a non-fatal error (the connection will not be dropped).
    Nr?rrrrr@�sr@c@seZdZdZdS)�AUTHRequiredErrorz�
    Authentication was required but the server does not support it.

    This is considered a non-fatal error (the connection will not be dropped).
    Nr?rrrrrA�srAc@seZdZdZdS)�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).
    Nr?rrrrrB�srBc@seZdZdZdS)�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).
    Nr?rrrrrC�srCc@seZdZdZdS)�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).
    Nr?rrrrrD�srDc@seZdZdZdS)�SMTPTLSErrorz�
    An error occurred while negiotiating for transport security.

    This is considered a non-fatal error (the connection will not be dropped).
    Nr?rrrrrE�srEc@seZdZdZddd�ZdS)�SMTPConnectErrorzt
    Failed to connect to the mail exchange host.

    This is considered a fatal error.  A retry will be made.
    NTc	Cst�|||||||�dS�N�r'rr.rrrr�s�zSMTPConnectError.__init__)NNTT�rr	r
r=rrrrrrF�s�rFc@seZdZdZddd�ZdS)�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	Cst�|||||||�dSrGrHr.rrrr�s�zSMTPTimeoutError.__init__)NNTTrIrrrrrJ�s�rJc@seZdZdZddd�ZdS)�SMTPProtocolErrorzo
    The server sent a mangled response.

    This is considered a fatal error.  A retry will not be made.
    NTFc	Cst�|||||||�dSrGrHr.rrrrs�zSMTPProtocolError.__init__)NNTFrIrrrrrKs�rKc@seZdZdZdS)�SMTPDeliveryErrorz=
    Indicates that a delivery attempt has had an error.
    Nr?rrrrrLsrLc@seZdZdd�Zdd�ZdS)�SMTPServerErrorcCs||_||_dSrG�r(r))rr(r)rrrrszSMTPServerError.__init__cCsd|j|jfS)Nz%.3d %srNrrrrrszSMTPServerError.__str__Nr rrrrrMsrMc@seZdZdd�Zdd�ZdS)�SMTPAddressErrorcCs(ddlm}t�|||�||�|_dS)Nr)�Address)Ztwisted.mail.smtprPrMr�addr)rrQr(r)rPrrrr!szSMTPAddressError.__init__cCsd|j|j|jfS)Nz%.3d <%s>... %s)r(rQr)rrrrr(szSMTPAddressError.__str__Nr rrrrrO srOc@seZdZddd�ZdS)�SMTPBadRcpt�&�$Cannot receive for specified addresscCst�||||�dSrG�rOr�rrQr(r)rrrr.szSMTPBadRcpt.__init__N)rSrT�rr	r
rrrrrrR-s�rRc@seZdZddd�ZdS)�
SMTPBadSenderrS�Sender not acceptablecCst�||||�dSrGrUrVrrrr5szSMTPBadSender.__init__N)rSrYrWrrrrrX4srXc@seZdZdZdS)�AddressErrorz 
    Parse error in address
    Nr?rrrrrZ:srZc@seZdZdZdS)�	POP3Errorz)
    The base class for POP3 errors.
    Nr?rrrrr[@sr[c@seZdZdZdS)�_POP3MessageDeletedzb
    An internal control-flow error which indicates that a deleted message was
    requested.
    Nr?rrrrr\Hsr\c@seZdZdZdS)�POP3ClientErrorzA
    The base class for all exceptions raised by POP3Client.
    Nr?rrrrr]Psr]c@seZdZdZdS)� InsecureAuthenticationDisallowedze
    An error indicating secure authentication was required but no mechanism
    could be found.
    Nr?rrrrr^Wsr^c@seZdZdZdS)�TLSErrorz�
    An error indicating secure authentication was required but either the
    transport does not support TLS or no TLS context factory was supplied.
    Nr?rrrrr__sr_c@seZdZdZdS)�TLSNotSupportedErrorzi
    An error indicating secure authentication was required but the server does
    not support TLS.
    Nr?rrrrr`gsr`c@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)r]r�consumer)r�reasonrbrrrrvs	zServerErrorResponse.__init__)NrIrrrrraosrac@seZdZdZdS)�LineTooLongz�
    An error indicating that the server sent a line which exceeded the
    maximum line length (L{LineOnlyReceiver.MAX_LENGTH}).
    Nr?rrrrrd�srdN)2r=Z
__future__rrZtwisted.python.compatrr�	Exceptionrr
rrrrrrrrrr!r"r#r$r%r&r'r>r@rArBrCrDrErFrJrKrLrMrOrRrXrZr[r\r]r^r_r`rardrrrr�<module>sX5