Module Expr Str Import alias alias Assign NameStore ListLoad Str Str ClassDef bases NameLoad body Pass decorator_list Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore BinOpAdd NameLoad NameLoad ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareGt AttributeLoad NameLoad attr Num body Print Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Print Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareGt AttributeLoad NameLoad attr Num body Print Str Call NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad If CompareEq SubscriptLoad NameLoad Slice Num NameLoad body Return TupleLoad SubscriptLoad NameLoad Slice Num NameLoad If CompareEq SubscriptLoad NameLoad Index Num NameLoad body Return TupleLoad SubscriptLoad NameLoad Slice Num Num NameLoad Return TupleLoad SubscriptLoad NameLoad Slice Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr Num body Print Str Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num If CompareNotEq NameLoad Str body Raise Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr While CompareNotEq NameLoad Str body If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore BinOpSub NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Print Str Call NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Delete AttributeDel NameLoad attr AttributeDel NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad Str Import alias Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Num NameLoad attr Assign NameStore Call AttributeLoad Str attr Call NameLoad Lambda arguments args NameParam defaults BinOpMod Str Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return Call AttributeLoad NameLoad attr Str decorator_list decorator_list TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass orelse ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Continue Break If UnaryOpNot AttributeLoad NameLoad attr body Raise AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr While UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Num If CompareGt AttributeLoad NameLoad attr Num body Print Str Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareEq SubscriptLoad NameLoad Slice Num NameLoad body Return TupleLoad SubscriptLoad NameLoad Slice Num NameLoad If CompareEq SubscriptLoad NameLoad Index Num NameLoad body Return TupleLoad SubscriptLoad NameLoad Slice Num Num NameLoad Return TupleLoad SubscriptLoad NameLoad Slice Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareGt AttributeLoad NameLoad attr Num body Print Str Call NameLoad NameLoad AugAssignAdd NameStore NameLoad Assign NameStore Call NameLoad NameLoad While CompareGt NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad NameLoad body Break Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore BinOpSub NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Delete AttributeDel NameLoad attr AttributeDel NameLoad attr Return NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr Str If CompareEq NameLoad Str body Import alias Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Print Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Print BinOpMod Str NameLoad For NameStore NameLoad body Print BinOpAdd Str NameLoad Print Str Expr Call AttributeLoad NameLoad attr
N/A N/A A POP3 client class.

Based on the J. Myers POP3 draft, Jan. 96
 N/A re socket N/A __all__ N/A POP3 error_proto error_proto N/A Exception N/A N/A N/A N/A POP3_PORT 110 N/A POP3_SSL_PORT 995 N/A CR N/A LF N/A CRLF N/A CR LF POP3 N/A N/A N/A 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.
     __init__ N/A N/A self host port timeout N/A POP3_PORT N/A socket _GLOBAL_DEFAULT_TIMEOUT N/A N/A N/A self host host N/A N/A self port port N/A N/A self sock N/A N/A socket create_connection N/A host port timeout N/A N/A self file N/A N/A N/A self sock makefile rb N/A N/A self _debugging 0 N/A N/A self welcome N/A N/A self _getresp N/A _putline N/A N/A self line N/A N/A N/A N/A N/A self _debugging 1 N/A N/A *put* N/A repr line N/A N/A N/A N/A self sock sendall N/A %s%s N/A line CRLF N/A _putcmd N/A N/A self line N/A N/A N/A N/A self _debugging N/A N/A *cmd* N/A repr line N/A N/A N/A self _putline line N/A _getline N/A N/A self N/A N/A N/A line N/A N/A N/A self file readline N/A N/A N/A self _debugging 1 N/A N/A *get* N/A repr line N/A N/A line N/A N/A N/A error_proto -ERR EOF N/A octets N/A len line N/A N/A N/A line N/A -2 CRLF N/A N/A N/A N/A line N/A -2 octets N/A N/A N/A line N/A 0 CR N/A N/A N/A N/A line N/A 1 -1 octets N/A N/A N/A line N/A -1 octets N/A _getresp N/A N/A self N/A N/A N/A N/A resp o N/A N/A self _getline N/A N/A N/A self _debugging 1 N/A N/A *resp* N/A repr resp N/A c N/A resp N/A 1 N/A N/A c + N/A N/A N/A error_proto resp N/A resp N/A _getlongresp N/A N/A self N/A N/A N/A resp N/A N/A self _getresp N/A list N/A N/A octets 0 N/A N/A line o N/A N/A self _getline N/A N/A line . N/A N/A N/A N/A line N/A 2 .. N/A N/A o N/A o 1 N/A line N/A line N/A 1 N/A octets N/A octets o N/A N/A N/A list append line N/A N/A line o N/A N/A self _getline N/A N/A resp list octets N/A _shortcmd N/A N/A self line N/A N/A N/A N/A N/A self _putcmd line N/A N/A N/A self _getresp N/A _longcmd N/A N/A self line N/A N/A N/A N/A N/A self _putcmd line N/A N/A N/A self _getlongresp N/A getwelcome N/A N/A self N/A N/A N/A N/A self welcome N/A set_debuglevel N/A N/A self level N/A N/A N/A N/A self _debugging level N/A user N/A N/A self user N/A N/A N/A Send user name, return response

        (should indicate password required).
         N/A N/A N/A self _shortcmd N/A USER %s user N/A pass_ N/A N/A self pswd N/A N/A N/A Send password, return response

        (response includes message count, mailbox size).

        NB: mailbox is locked by server from here to 'quit()'
         N/A N/A N/A self _shortcmd N/A PASS %s pswd N/A stat N/A N/A self N/A N/A N/A Get mailbox status.

        Result is tuple of 2 ints (message count, mailbox size)
         N/A retval N/A N/A self _shortcmd STAT N/A rets N/A N/A retval split N/A N/A self _debugging N/A N/A *stat* N/A repr rets N/A numMessages N/A int N/A rets N/A 1 N/A sizeMessages N/A int N/A rets N/A 2 N/A N/A numMessages sizeMessages N/A list N/A N/A self which N/A None N/A N/A Request 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.
         N/A N/A which None N/A N/A N/A N/A self _shortcmd N/A LIST %s which N/A N/A N/A self _longcmd LIST N/A retr N/A N/A self which N/A N/A N/A Retrieve whole message number 'which'.

        Result is in form ['response', ['line', ...], octets].
         N/A N/A N/A self _longcmd N/A RETR %s which N/A dele N/A N/A self which N/A N/A N/A Delete message number 'which'.

        Result is 'response'.
         N/A N/A N/A self _shortcmd N/A DELE %s which N/A noop N/A N/A self N/A N/A N/A Does nothing.

        One supposes the response indicates the server is alive.
         N/A N/A N/A self _shortcmd NOOP N/A rset N/A N/A self N/A N/A N/A Unmark all messages marked for deletion. N/A N/A N/A self _shortcmd RSET N/A quit N/A N/A self N/A N/A N/A Signoff: commit changes on server, unlock mailbox, close connection. N/A N/A N/A resp N/A N/A self _shortcmd QUIT N/A N/A N/A error_proto N/A val N/A N/A resp val N/A N/A N/A N/A self file close N/A N/A N/A N/A self sock close N/A N/A self file N/A self sock N/A resp N/A rpop N/A N/A self user N/A N/A N/A Not sure what this does. N/A N/A N/A self _shortcmd N/A RPOP %s user N/A N/A timestamp N/A N/A re compile \+OK.*(<[^>]+>) apop N/A N/A self user secret N/A N/A N/A Authorisation

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

        Args:
                user    - mailbox user;
                secret  - secret shared between client and server.

        NB: mailbox is locked by server from here to 'quit()'
         N/A m N/A N/A N/A self timestamp match N/A self welcome N/A N/A m N/A N/A N/A error_proto -ERR APOP not supported by server N/A hashlib N/A digest N/A N/A N/A N/A hashlib md5 N/A N/A N/A m group 1 secret digest N/A digest N/A N/A join N/A map N/A N/A N/A x N/A N/A %02x N/A ord x digest N/A N/A N/A self _shortcmd N/A APOP %s %s N/A user digest N/A top N/A N/A self which howmuch N/A N/A N/A Retrieve message header of message number 'which'
        and first 'howmuch' lines of message body.

        Result is in form ['response', ['line', ...], octets].
         N/A N/A N/A self _longcmd N/A TOP %s %s N/A which howmuch N/A uidl N/A N/A self which N/A None N/A N/A 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]
         N/A N/A which None N/A N/A N/A N/A self _shortcmd N/A UIDL %s which N/A N/A N/A self _longcmd UIDL N/A N/A N/A N/A N/A ssl N/A N/A N/A ImportError N/A N/A N/A POP3_SSL N/A POP3 N/A N/A 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.
         __init__ N/A N/A self host port keyfile certfile N/A POP3_SSL_PORT None None N/A N/A N/A self host host N/A N/A self port port N/A N/A self keyfile keyfile N/A N/A self certfile certfile N/A N/A self buffer N/A msg getaddrinfo returns an empty list N/A N/A self sock None N/A res N/A N/A socket getaddrinfo N/A self host N/A self port 0 N/A socket SOCK_STREAM N/A N/A N/A af socktype proto canonname sa res N/A N/A N/A N/A self sock N/A N/A socket socket af socktype proto N/A N/A N/A N/A self sock connect sa N/A N/A N/A N/A socket error N/A msg N/A N/A N/A self sock N/A N/A N/A N/A N/A self sock close N/A N/A self sock None N/A N/A N/A N/A N/A self sock N/A N/A N/A socket error msg N/A N/A self file N/A N/A N/A self sock makefile rb N/A N/A self sslobj N/A N/A ssl wrap_socket N/A self sock N/A self keyfile N/A self certfile N/A N/A self _debugging 0 N/A N/A self welcome N/A N/A self _getresp N/A _fillBuffer N/A N/A self N/A N/A N/A localbuf N/A N/A N/A self sslobj read N/A N/A N/A len localbuf 0 N/A N/A N/A error_proto -ERR EOF N/A N/A self buffer localbuf N/A _getline N/A N/A self N/A N/A N/A line N/A renewline N/A N/A re compile .*?\n N/A match N/A N/A renewline match N/A self buffer N/A N/A match N/A N/A N/A N/A self _fillBuffer N/A match N/A N/A renewline match N/A self buffer N/A line N/A N/A match group 0 N/A N/A self buffer N/A N/A renewline sub N/A self buffer 1 N/A N/A N/A self _debugging 1 N/A N/A *get* N/A repr line N/A octets N/A len line N/A N/A N/A line N/A -2 CRLF N/A N/A N/A N/A line N/A -2 octets N/A N/A N/A line N/A 0 CR N/A N/A N/A N/A line N/A 1 -1 octets N/A N/A N/A line N/A -1 octets N/A _putline N/A N/A self line N/A N/A N/A N/A N/A self _debugging 1 N/A N/A *put* N/A repr line N/A line CRLF N/A bytes N/A len line N/A N/A bytes 0 N/A N/A sent N/A N/A N/A self sslobj write line N/A N/A sent bytes N/A N/A N/A line N/A line N/A sent N/A bytes N/A bytes sent N/A quit N/A N/A self N/A N/A N/A Signoff: commit changes on server, unlock mailbox, close connection. N/A N/A N/A resp N/A N/A self _shortcmd QUIT N/A N/A N/A error_proto N/A val N/A N/A resp val N/A N/A N/A N/A self sock close N/A N/A self sslobj N/A self sock N/A resp N/A N/A N/A N/A N/A __all__ append POP3_SSL N/A N/A __name__ __main__ N/A N/A sys N/A a N/A POP3 N/A N/A sys argv N/A 1 N/A N/A N/A a getwelcome N/A N/A N/A a user N/A N/A sys argv N/A 2 N/A N/A N/A a pass_ N/A N/A sys argv N/A 3 N/A N/A N/A a list N/A N/A numMsgs totalSize N/A N/A a stat N/A i N/A range 1 N/A numMsgs 1 N/A N/A N/A header msg octets N/A N/A a retr i N/A N/A Message %d: i N/A line msg N/A N/A N/A line N/A ----------------------- N/A N/A N/A a quit