Ë
    ojø!  ã                   ó°  — d Z ddlmZ  G d„ de«      Z G d„ de«      Z G d„ de«      Z G d	„ d
e«      Z G d„ de«      Z G d„ de«      Z	 G d„ de«      Z
 G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ d e«      Z G d!„ d"e«      Z G d#„ d$e«      Z G d%„ d&e«      Z G d'„ d(e«      Z G d)„ d*e«      Z G d+„ d,e«      Z G d-„ d.e«      Z G d/„ d0e«      Z G d1„ d2e«      Z G d3„ d4e«      Z G d5„ d6e«      Z G d7„ d8e«      Z G d9„ d:e«      Z G d;„ d<e«      Z  G d=„ d>e«      Z! G d?„ d@e!«      Z" G dA„ dBe"«      Z# G dC„ dDe"«      Z$ G dE„ dFe«      Z% G dG„ dHe«      Z& G dI„ dJe«      Z' G dK„ dLe«      Z( G dM„ dNe(«      Z) G dO„ dPe(«      Z* G dQ„ dRe(«      Z+ G dS„ dTe(«      Z, G dU„ dVe(«      Z-yW)Xz 
Exceptions in L{twisted.mail}.
é    )ÚOptionalc                   ó   — e Zd Zy)ÚIMAP4ExceptionN©Ú__name__Ú
__module__Ú__qualname__© ó    ú6/usr/lib/python3/dist-packages/twisted/mail/_except.pyr   r      ó   „ Ør   r   c                   ó   — e Zd Zy)ÚIllegalClientResponseNr   r
   r   r   r   r      r   r   r   c                   ó   — e Zd Zy)ÚIllegalOperationNr   r
   r   r   r   r      r   r   r   c                   ó   — e Zd Zy)ÚIllegalMailboxEncodingNr   r
   r   r   r   r      r   r   r   c                   ó   — e Zd Zy)ÚMailboxExceptionNr   r
   r   r   r   r      r   r   r   c                   ó   — e Zd Zdefd„Zy)ÚMailboxCollisionÚreturnc                 ó    — d| j                   z  S )NzMailbox named %s already exists©Úargs©Úselfs    r   Ú__str__zMailboxCollision.__str__    s   € Ø0°4·9±9Ñ<Ð<r   N©r   r   r	   Ústrr   r
   r   r   r   r      s   „ ð=˜ô =r   r   c                   ó   — e Zd Zdefd„Zy)ÚNoSuchMailboxr   c                 ó    — d| j                   z  S )NzNo mailbox named %s existsr   r   s    r   r   zNoSuchMailbox.__str__%   s   € Ø+¨d¯i©iÑ7Ð7r   Nr   r
   r   r   r"   r"   $   s   „ ð8˜ô 8r   r"   c                   ó   — e Zd Zdefd„Zy)ÚReadOnlyMailboxr   c                  ó   — y)NzMailbox open in read-only stater
   r   s    r   r   zReadOnlyMailbox.__str__*   s   € Ø0r   Nr   r
   r   r   r%   r%   )   s   „ ð1˜ô 1r   r%   c                   ó   — e Zd Zy)ÚUnhandledResponseNr   r
   r   r   r(   r(   .   r   r   r(   c                   ó   — e Zd Zy)ÚNegativeResponseNr   r
   r   r   r*   r*   2   r   r   r*   c                   ó   — e Zd Zd„ Zdefd„Zy)ÚNoSupportedAuthenticationc                 óL   — t         j                  | d«       || _        || _        y )Nz-No supported authentication schemes available)r   Ú__init__ÚserverSupportsÚclientSupports)r   r/   r0   s      r   r.   z"NoSupportedAuthentication.__init__7   s#   € Ü×Ñ Ð&UÔVØ,ˆÔØ,ˆÕr   r   c                 óz   — t         j                  | «      dj                  | j                  | j                  «      z   S )Nz,: Server supports {!r}, client supports {!r})r   r   Úformatr/   r0   r   s    r   r   z!NoSupportedAuthentication.__str__<   s=   € Ü×%Ñ%Øó
à:×AÑAØ×ÑØ×Ñó
ñ
ð 	
r   N©r   r   r	   r.   r    r   r
   r   r   r,   r,   6   s   „ ò-ð

˜ô 
r   r,   c                   ó   — e Zd Zy)ÚIllegalServerResponseNr   r
   r   r   r5   r5   E   r   r   r5   c                   ó   — e Zd Zy)ÚIllegalIdentifierErrorNr   r
   r   r   r7   r7   I   r   r   r7   c                   ó   — e Zd Zy)ÚIllegalQueryErrorNr   r
   r   r   r9   r9   M   r   r   r9   c                   ó   — e Zd Zy)ÚMismatchedNestingNr   r
   r   r   r;   r;   Q   r   r   r;   c                   ó   — e Zd Zy)ÚMismatchedQuotingNr   r
   r   r   r=   r=   U   r   r   r=   c                   ó   — e Zd Zy)Ú	SMTPErrorNr   r
   r   r   r?   r?   Y   r   r   r?   c                   ó^   — e Zd ZdZ	 	 	 	 ddededee   dee   dedefd	„Z	d
e
fd„Zd
efd„Zy)ÚSMTPClientErrorz,
    Base class for SMTP client errors.
    NÚcodeÚrespÚlogÚ	addressesÚisFatalÚretryc                 óÜ   — t        |t        «      r|j                  d«      }t        |t        «      r|j                  d«      }|| _        || _        || _        || _        || _        || _        y)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    ÚencoderB   rC   rD   rE   rF   rG   ©r   rB   rC   rD   rE   rF   rG   s          r   r.   zSMTPClientError.__init__b   s^   € ô* �dœCÔ Ø—;‘;˜wÓ'ˆDä�cœ3ÔØ—*‘*˜WÓ%ˆCàˆŒ	ØˆŒ	ØˆŒØ"ˆŒØˆŒØˆ�
r   r   c                 ó@   — | j                  «       j                  d«      S )NrI   )Ú	__bytes__Údecoder   s    r   r   zSMTPClientError.__str__„   s   € Ø�~‰~Ó×&Ñ& wÓ/Ð/r   c                 ó&  — | j                   dkD  r-| j                   d›d�j                  «       | j                  z   g}n| j                  g}| j                  r,|j	                  | j                  «       |j	                  d«       dj                  |«      S )Nr   Ú03dú r   ó   
)rB   rK   rC   rD   ÚappendÚjoin)r   Úress     r   rN   zSMTPClientError.__bytes__‡   so   € Ø�9‰9�qŠ=Ø—i‘i �_ AÐ&×-Ñ-Ó/°$·)±)Ñ;Ð<‰Cà—9‘9�+ˆCØ�8Š8Ø�J‰J�t—x‘xÔ Ø�J‰J�sŒOØ�z‰z˜#‹Ðr   )NNFF)r   r   r	   Ú__doc__ÚintÚbytesr   ÚobjectÚboolr.   r    r   rN   r
   r   r   rA   rA   ]   sv   „ ñð  $Ø&*ØØñ àð ð ð ð �e‰_ð	 ð
 ˜FÑ#ð ð ð ð ó ðD0˜ó 0ð˜5ô r   rA   c                   ó   — e Zd ZdZy)ÚESMTPClientErrorz-
    Base class for ESMTP client errors.
    N©r   r   r	   rW   r
   r   r   r]   r]   ’   ó   „ òr   r]   c                   ó   — e Zd ZdZy)ÚEHLORequiredErrorz{
    The server does not support EHLO.

    This is considered a non-fatal error (the connection will not be dropped).
    Nr^   r
   r   r   ra   ra   ˜   ó   „ òr   ra   c                   ó   — e Zd ZdZy)Ú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^   r
   r   r   rd   rd       rb   r   rd   c                   ó   — e Zd ZdZy)Ú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^   r
   r   r   rf   rf   ¨   rb   r   rf   c                   ó   — e Zd ZdZy)Ú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^   r
   r   r   rh   rh   °   ó   „ òr   rh   c                   ó   — e Zd ZdZy)Ú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^   r
   r   r   rk   rk   ¼   ri   r   rk   c                   ó   — e Zd ZdZy)ÚSMTPTLSErrorz–
    An error occurred while negiotiating for transport security.

    This is considered a non-fatal error (the connection will not be dropped).
    Nr^   r
   r   r   rm   rm   È   rb   r   rm   c                   ó   — e Zd ZdZdd„Zy)ÚSMTPConnectErrorzt
    Failed to connect to the mail exchange host.

    This is considered a fatal error.  A retry will be made.
    Nc           	      ó:   — t         j                  | ||||||«       y ©N©rA   r.   rL   s          r   r.   zSMTPConnectError.__init__×   ó   € Ü× Ñ   t¨T°3¸	À7ÈEÕRr   ©NNTT©r   r   r	   rW   r.   r
   r   r   ro   ro   Ð   ó   „ ñôSr   ro   c                   ó   — e Zd ZdZdd„Zy)Ú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.
    Nc           	      ó:   — t         j                  | ||||||«       y rq   rr   rL   s          r   r.   zSMTPTimeoutError.__init__â   rs   r   rt   ru   r
   r   r   rx   rx   Û   rv   r   rx   c                   ó   — e Zd ZdZdd„Zy)ÚSMTPProtocolErrorzo
    The server sent a mangled response.

    This is considered a fatal error.  A retry will not be made.
    Nc           	      ó:   — t         j                  | ||||||«       y rq   rr   rL   s          r   r.   zSMTPProtocolError.__init__í   rs   r   )NNTFru   r
   r   r   r{   r{   æ   rv   r   r{   c                   ó   — e Zd ZdZy)ÚSMTPDeliveryErrorz=
    Indicates that a delivery attempt has had an error.
    Nr^   r
   r   r   r~   r~   ñ   r_   r   r~   c                   ó   — e Zd Zd„ Zdefd„Zy)ÚSMTPServerErrorc                 ó    — || _         || _        y rq   ©rB   rC   )r   rB   rC   s      r   r.   zSMTPServerError.__init__ø   s   € ØˆŒ	Øˆ�	r   r   c                 ó8   — d| j                   | j                  fz  S )Nz%.3d %sr‚   r   s    r   r   zSMTPServerError.__str__ü   s   € Ø˜DŸI™I t§y¡yÐ1Ñ1Ð1r   Nr3   r
   r   r   r€   r€   ÷   s   „ òð2˜ô 2r   r€   c                   ó   — e Zd Zd„ Zdefd„Zy)ÚSMTPAddressErrorc                 óX   — ddl m} t        j                  | ||«        ||«      | _        y )Nr   )ÚAddress)Útwisted.mail.smtpr‡   r€   r.   Úaddr)r   r‰   rB   rC   r‡   s        r   r.   zSMTPAddressError.__init__  s"   € Ý-ä× Ñ   t¨TÔ2Ù˜D“Mˆ�	r   r   c                 óN   — d| j                   | j                  | j                  fz  S )Nz%.3d <%s>... %s)rB   r‰   rC   r   s    r   r   zSMTPAddressError.__str__  s    € Ø  D§I¡I¨t¯y©y¸$¿)¹)Ð#DÑDÐDr   Nr3   r
   r   r   r…   r…      s   „ ò"ðE˜ô Er   r…   c                   ó   — e Zd Zdd„Zy)ÚSMTPBadRcptc                 ó4   — t         j                  | |||«       y rq   ©r…   r.   ©r   r‰   rB   rC   s       r   r.   zSMTPBadRcpt.__init__  ó   € Ü×!Ñ! $¨¨d°DÕ9r   N)é&  z$Cannot receive for specified address©r   r   r	   r.   r
   r   r   rŒ   rŒ     ó   „ ô:r   rŒ   c                   ó   — e Zd Zdd„Zy)ÚSMTPBadSenderc                 ó4   — t         j                  | |||«       y rq   rŽ   r�   s       r   r.   zSMTPBadSender.__init__  r�   r   N)r‘   zSender not acceptabler’   r
   r   r   r•   r•     r“   r   r•   c                   ó   — e Zd ZdZy)ÚAddressErrorz 
    Parse error in address
    Nr^   r
   r   r   r˜   r˜     r_   r   r˜   c                   ó   — e Zd ZdZy)Ú	POP3Errorz)
    The base class for POP3 errors.
    Nr^   r
   r   r   rš   rš     s   „ ñð 	r   rš   c                   ó   — e Zd ZdZy)Ú_POP3MessageDeletedzb
    An internal control-flow error which indicates that a deleted message was
    requested.
    Nr^   r
   r   r   rœ   rœ   #  ó   „ òr   rœ   c                   ó   — e Zd ZdZy)ÚPOP3ClientErrorzA
    The base class for all exceptions raised by POP3Client.
    Nr^   r
   r   r   rŸ   rŸ   *  r_   r   rŸ   c                   ó   — e Zd ZdZy)Ú InsecureAuthenticationDisallowedze
    An error indicating secure authentication was required but no mechanism
    could be found.
    Nr^   r
   r   r   r¡   r¡   0  r�   r   r¡   c                   ó   — e Zd ZdZy)ÚTLSErrorzš
    An error indicating secure authentication was required but either the
    transport does not support TLS or no TLS context factory was supplied.
    Nr^   r
   r   r   r£   r£   7  r�   r   r£   c                   ó   — e Zd ZdZy)ÚTLSNotSupportedErrorzi
    An error indicating secure authentication was required but the server does
    not support TLS.
    Nr^   r
   r   r   r¥   r¥   >  r�   r   r¥   c                   ó   — e Zd ZdZdd„Zy)ÚServerErrorResponsez
    An error indicating that the server returned an error response to a
    request.

    @ivar consumer: See L{__init__}
    Nc                 ó>   — t         j                  | |«       || _        y)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   Úreasonr©   s      r   r.   zServerErrorResponse.__init__M  s   € ô 	× Ñ   vÔ.Ø ˆ�r   rq   ru   r
   r   r   r§   r§   E  s   „ ñô
!r   r§   c                   ó   — e Zd ZdZy)ÚLineTooLongz†
    An error indicating that the server sent a line which exceeded the
    maximum line length (L{LineOnlyReceiver.MAX_LENGTH}).
    Nr^   r
   r   r   r¬   r¬   Z  r�   r   r¬   N).rW   Útypingr   Ú	Exceptionr   r   r   r   r   r   r"   r%   r(   r*   r,   r5   r7   r9   r;   r=   r?   rA   r]   ra   rd   rf   rh   rk   rm   ro   rx   r{   r~   r€   r…   rŒ   r•   r˜   rš   rœ   rŸ   r¡   r£   r¥   r§   r¬   r
   r   r   ú<module>r¯      s  ðñõ ô	�Yô 	ô	˜Nô 	ô	�~ô 	ô	˜^ô 	ô	�~ô 	ô=Ð'ô =ô
8Ð$ô 8ô
1Ð&ô 1ô
	˜ô 	ô	�~ô 	ô
 ô 
ô	˜Nô 	ô	˜^ô 	ô	˜ô 	ô	˜ô 	ô	˜ô 	ô	�	ô 	ô2�iô 2ôj�ô ôÐ(ô ôÐ(ô ôÐ'ô ô	Ð(ô 	ô	Ð*ô 	ôÐ#ô ôS�ô SôS�ô SôS˜ô Sô˜ô ô2�iô 2ôE�ô Eô:Ð"ô :ô
:Ð$ô :ô
�9ô ô	�	ô 	ô˜)ô ô�iô ô ô ôˆô ô˜?ô ô!˜/ô !ô*�/õ r   