Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.15.140.16
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : poplib.cpython-32.pyc
l
��bc
@s�dZddlZddlZddgZGd�de�ZdZdZdZd	Z	ee	Z
d
ZGd�d�Zyddl
Z
Wnek
r�Yn!XGd�d
e�Zejd
�edkr�ddlZeejd�Zeej��ejejd�ejejd�ej�ej�\ZZxjeded�D]UZeje�\Z Z!Z"ede�xe!D]Z#ede#�q�Wed�qMWej$�ndS(u@A POP3 client class.

Based on the J. Myers POP3 draft, Jan. 96
iNuPOP3uerror_protocBs|EeZdS(N(u__name__u
__module__(u
__locals__((u-/usr/local/python-3.2/lib/python3.2/poplib.pyuerror_protos
ini�s
s
icBs|EeZdZdZeejd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zdd�Zd�Zd�Zd�Zd�Zd�Zd�Zejd�Zd�Z d�Z!dd�Z"dS(u�This class supports both the minimal and optional command sets.
    Arguments can be strings or integers (where appropriate)
    (e.g.: retr(1) and retr('1') both work equally well.

    Minimal Command Set:
            USER name               user(name)
            PASS string             pass_(string)
            STAT                    stat()
            LIST [msg]              list(msg = None)
            RETR msg                retr(msg)
            DELE msg                dele(msg)
            NOOP                    noop()
            RSET                    rset()
            QUIT                    quit()

    Optional Commands (some servers support these):
            RPOP name               rpop(name)
            APOP name digest        apop(name, digest)
            TOP msg n               top(msg, n)
            UIDL [msg]              uidl(msg = None)

    Raises one exception: 'error_proto'.

    Instantiate with:
            POP3(hostname, port=110)

    NB:     the POP protocol locks the mailbox from user
            authorization until QUIT, so be sure to get in, suck
            the messages, and quit, each time you access the
            mailbox.

            POP is a line-based protocol, which means large mail
            messages consume lots of python cycles reading them
            line-by-line.

            If it's available on your mail server, use IMAP4
            instead, it doesn't suffer from the two problems
            above.
    uUTF-8cCsU||_||_|j|�|_|jjd�|_d|_|j�|_dS(Nurbi(	uhostuportu_create_socketusockumakefileufileu
_debuggingu_getrespuwelcome(uselfuhostuportutimeout((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu__init__Vs			cCstj|j|jf|�S(N(usocketucreate_connectionuhostuport(uselfutimeout((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu_create_socket_scCs=|jdkr%tdt|��n|jj|t�dS(Niu*put*(u
_debugginguprintureprusockusendalluCRLF(uselfuline((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu_putlinebscCsB|jrtdt|��nt||j�}|j|�dS(Nu*cmd*(u
_debugginguprintureprubytesuencodingu_putline(uselfuline((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu_putcmdis	cCs�|jjtd�}t|�tkr7td��n|jdkr\tdt|��n|sqtd��nt|�}|dd�tkr�|dd�|fS|dt	kr�|dd	�|fS|dd
�|fS(Niu
line too longu*get*u-ERR EOFiii����i����i����i����(
ufileureadlineu_MAXLINEulenuerror_protou
_debugginguprinturepruCRLFuCR(uselfulineuoctets((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu_getlinesscCsY|j�\}}|jdkr7tdt|��n|jd�sUt|��n|S(Niu*resp*s+(u_getlineu
_debugginguprinturepru
startswithuerror_proto(uselfurespuo((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu_getresp�scCs�|j�}g}d}|j�\}}xe|dkr�|jd�re|d}|dd�}n||}|j|�|j�\}}q-W|||fS(Nis.s..i(u_getrespu_getlineu
startswithuappend(uselfurespulistuoctetsulineuo((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu_getlongresp�s


cCs|j|�|j�S(N(u_putcmdu_getresp(uselfuline((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu	_shortcmd�s
cCs|j|�|j�S(N(u_putcmdu_getlongresp(uselfuline((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu_longcmd�s
cCs|jS(N(uwelcome(uself((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu
getwelcome�scCs
||_dS(N(u
_debugging(uselfulevel((u-/usr/local/python-3.2/lib/python3.2/poplib.pyuset_debuglevel�scCs|jd|�S(uVSend user name, return response

        (should indicate password required).
        uUSER %s(u	_shortcmd(uselfuuser((u-/usr/local/python-3.2/lib/python3.2/poplib.pyuuser�scCs|jd|�S(u�Send password, return response

        (response includes message count, mailbox size).

        NB: mailbox is locked by server from here to 'quit()'
        uPASS %s(u	_shortcmd(uselfupswd((u-/usr/local/python-3.2/lib/python3.2/poplib.pyupass_�scCsd|jd�}|j�}|jr:tdt|��nt|d�}t|d�}||fS(u]Get mailbox status.

        Result is tuple of 2 ints (message count, mailbox size)
        uSTATu*stat*ii(u	_shortcmdusplitu
_debugginguprinturepruint(uselfuretvaluretsunumMessagesusizeMessages((u-/usr/local/python-3.2/lib/python3.2/poplib.pyustat�s	cCs*|dk	r|jd|�S|jd�S(uRequest listing, return result.

        Result without a message number argument is in form
        ['response', ['mesg_num octets', ...], octets].

        Result when a message number argument is given is a
        single response: the "scan listing" for that message.
        uLIST %suLISTN(uNoneu	_shortcmdu_longcmd(uselfuwhich((u-/usr/local/python-3.2/lib/python3.2/poplib.pyulist�s	cCs|jd|�S(uoRetrieve whole message number 'which'.

        Result is in form ['response', ['line', ...], octets].
        uRETR %s(u_longcmd(uselfuwhich((u-/usr/local/python-3.2/lib/python3.2/poplib.pyuretr�scCs|jd|�S(uFDelete message number 'which'.

        Result is 'response'.
        uDELE %s(u	_shortcmd(uselfuwhich((u-/usr/local/python-3.2/lib/python3.2/poplib.pyudele�scCs
|jd�S(uXDoes nothing.

        One supposes the response indicates the server is alive.
        uNOOP(u	_shortcmd(uself((u-/usr/local/python-3.2/lib/python3.2/poplib.pyunoop�scCs
|jd�S(u(Unmark all messages marked for deletion.uRSET(u	_shortcmd(uself((u-/usr/local/python-3.2/lib/python3.2/poplib.pyurset�scCsky|jd�}Wn+tk
r@}z|}WYdd}~XnX|jj�|jj�|`|`|S(uDSignoff: commit changes on server, unlock mailbox, close connection.uQUITN(u	_shortcmduerror_protoufileucloseusock(uselfurespuval((u-/usr/local/python-3.2/lib/python3.2/poplib.pyuquits

cCs|jd|�S(uNot sure what this does.uRPOP %s(u	_shortcmd(uselfuuser((u-/usr/local/python-3.2/lib/python3.2/poplib.pyurpopss\+OK.*(<[^>]+>)cCs�t||j�}|jj|j�}|s<td��nddl}|jd�|}|j|�j	�}|j
d||f�S(uAuthorisation

        - only possible if server has supplied a timestamp in initial greeting.

        Args:
                user     - mailbox user;
                password - mailbox password.

        NB: mailbox is locked by server from here to 'quit()'
        u!-ERR APOP not supported by serveriNiu
APOP %s %s(ubytesuencodingu	timestampumatchuwelcomeuerror_protouhashlibugroupumd5u	hexdigestu	_shortcmd(uselfuuserupasswordusecretumuhashlibudigest((u-/usr/local/python-3.2/lib/python3.2/poplib.pyuapopscCs|jd||f�S(u�Retrieve message header of message number 'which'
        and first 'howmuch' lines of message body.

        Result is in form ['response', ['line', ...], octets].
        u	TOP %s %s(u_longcmd(uselfuwhichuhowmuch((u-/usr/local/python-3.2/lib/python3.2/poplib.pyutop0scCs*|dk	r|jd|�S|jd�S(u�Return message digest (unique id) list.

        If 'which', result contains unique id for that message
        in the form 'response mesgnum uid', otherwise result is
        the list ['response', ['mesgnum uid', ...], octets]
        uUIDL %suUIDLN(uNoneu	_shortcmdu_longcmd(uselfuwhich((u-/usr/local/python-3.2/lib/python3.2/poplib.pyuuidl9sN(#u__name__u
__module__u__doc__uencodingu	POP3_PORTusocketu_GLOBAL_DEFAULT_TIMEOUTu__init__u_create_socketu_putlineu_putcmdu_getlineu_getrespu_getlongrespu	_shortcmdu_longcmdu
getwelcomeuset_debugleveluuserupass_ustatuNoneulisturetrudeleunoopursetuquiturpopureucompileu	timestampuapoputopuuidl(u
__locals__((u-/usr/local/python-3.2/lib/python3.2/poplib.pyuPOP3*s8
(			
		
							
	
									cBs8|EeZdZeddejdd�Zd�ZdS(u�POP3 client class over SSL connection

        Instantiate with: POP3_SSL(hostname, port=995, keyfile=None, certfile=None)

               hostname - the hostname of the pop3 over ssl server
               port - port number
               keyfile - PEM formatted file that countains your private key
               certfile - PEM formatted certificate chain file

        See the methods of the parent class POP3 for more documentation.
        cCs�|dk	r'|dk	r'td��n|dk	rN|dk	rNtd��n||_||_||_tj||||�dS(Nu4context and keyfile arguments are mutually exclusiveu5context and certfile arguments are mutually exclusive(uNoneu
ValueErrorukeyfileucertfileucontextuPOP3u__init__(uselfuhostuportukeyfileucertfileutimeoutucontext((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu__init__Ws			cCsUtj||�}|jdk	r6|jj|�}ntj||j|j�}|S(N(uPOP3u_create_socketucontextuNoneuwrap_socketusslukeyfileucertfile(uselfutimeoutusock((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu_create_socketds
N(	u__name__u
__module__u__doc__u
POP3_SSL_PORTuNoneusocketu_GLOBAL_DEFAULT_TIMEOUTu__init__u_create_socket(u
__locals__((u-/usr/local/python-3.2/lib/python3.2/poplib.pyuPOP3_SSLJs
	uPOP3_SSLu__main__iiiuMessage %d:u   u-----------------------(%u__doc__ureusocketu__all__u	Exceptionuerror_protou	POP3_PORTu
POP3_SSL_PORTuCRuLFuCRLFu_MAXLINEuPOP3ussluImportErroruPOP3_SSLuappendu__name__usysuargvuauprintu
getwelcomeuuserupass_ulistustatunumMsgsu	totalSizeurangeuiuretruheaderumsguoctetsulineuquit(((u-/usr/local/python-3.2/lib/python3.2/poplib.pyu<module>s@
�
"



© 2025 GrazzMean