Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body ImportFrom alias identifier Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assert CompareIs AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return Assign TupleStore NameStore AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert UnaryOpNot AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareEq Call AttributeLoad NameLoad attr Str body Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign NameStore Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad BinOpAdd NameLoad Num NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr Call NameLoad Str Return Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index BinOpSub Call NameLoad BoolOpOr NameLoad Str Num Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword Str keyword ListLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Index Num orelse Print Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad attr NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad ImportFrom alias If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr orelse If UnaryOpNot NameLoad body Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Simple IMAP4 client which displays the subjects of all messages in a
particular mailbox.
 N/A sys twisted.internet protocol twisted.internet ssl twisted.internet defer twisted.internet stdio twisted.mail imap4 twisted.protocols basic twisted.python util twisted.python log TrivialPrompter N/A N/A basic LineReceiver N/A os linesep delimiter N/A promptDeferred None prompt N/A N/A self msg N/A N/A N/A N/A N/A self promptDeferred None N/A N/A N/A self display msg N/A N/A self promptDeferred N/A N/A defer Deferred N/A N/A self promptDeferred N/A display N/A N/A self msg N/A N/A N/A N/A N/A N/A self transport write msg N/A lineReceived N/A N/A self line N/A N/A N/A N/A N/A self promptDeferred None N/A N/A N/A N/A d N/A self promptDeferred N/A N/A self promptDeferred None N/A N/A N/A d callback line N/A N/A SimpleIMAP4Client N/A N/A imap4 IMAP4Client N/A N/A 
    A client with callbacks for greeting messages from an IMAP server.
     N/A greetDeferred None serverGreeting N/A N/A self caps N/A N/A N/A N/A self serverCapabilities caps N/A N/A N/A self greetDeferred None N/A N/A N/A d N/A self greetDeferred N/A N/A self greetDeferred None N/A N/A N/A d callback self N/A N/A SimpleIMAP4ClientFactory N/A N/A protocol ClientFactory N/A N/A usedUp False N/A protocol SimpleIMAP4Client __init__ N/A N/A self username onConn N/A N/A N/A N/A self ctx N/A N/A ssl ClientContextFactory N/A N/A self username username N/A N/A self onConn onConn N/A buildProtocol N/A N/A self addr N/A N/A N/A 
        Initiate the protocol instance. Since we are building a simple IMAP
        client, we don't bother checking what capabilities the server has. We
        just add all the authenticators twisted.mail has.  Note: Gmail no
        longer uses any of the methods below, it's been using XOAUTH since
        2010.
         N/A N/A N/A self usedUp N/A N/A self usedUp True N/A p N/A N/A self protocol N/A self ctx N/A N/A p factory self N/A N/A p greetDeferred N/A self onConn N/A N/A N/A p registerAuthenticator N/A N/A imap4 PLAINAuthenticator N/A self username N/A N/A N/A p registerAuthenticator N/A N/A imap4 LOGINAuthenticator N/A self username N/A N/A N/A p registerAuthenticator N/A N/A imap4 CramMD5ClientAuthenticator N/A self username N/A p N/A clientConnectionFailed N/A N/A self connector reason N/A N/A N/A N/A d N/A self onConn N/A N/A self onConn None N/A N/A N/A d errback reason N/A N/A cbServerGreeting N/A N/A proto username password N/A N/A N/A 
    Initial callback - invoked after the server sends us its greet message.
     N/A tp N/A TrivialPrompter N/A N/A N/A stdio StandardIO tp N/A N/A proto prompt N/A tp prompt N/A N/A proto display N/A tp display N/A N/A N/A N/A N/A N/A N/A proto authenticate password addCallback cbAuthentication proto addErrback ebAuthentication proto username password N/A ebConnection N/A N/A reason N/A N/A N/A 
    Fallback error-handler. If anything goes wrong, log it and quit.
     N/A N/A N/A log startLogging N/A sys stdout N/A N/A N/A log err reason N/A reason N/A cbAuthentication N/A N/A result proto N/A N/A N/A 
    Callback after authentication has succeeded.

    Lists a bunch of mailboxes.
     N/A N/A N/A N/A N/A proto list * addCallback cbMailboxList proto N/A ebAuthentication N/A N/A failure proto username password N/A N/A N/A 
    Errback invoked when authentication fails.

    If it failed because no SASL mechanisms match, offer the user the choice
    of logging in insecurely.

    If you are trying to connect to your Gmail account, you will be here!
     N/A N/A N/A failure trap N/A imap4 NoSupportedAuthentication N/A N/A N/A N/A N/A proto prompt No secure authentication available. Login insecurely? (y/N)  addCallback cbInsecureLogin proto username password N/A cbInsecureLogin N/A N/A result proto username password N/A N/A N/A 
    Callback for "insecure-login" prompt.
     N/A N/A N/A N/A result lower y N/A N/A N/A N/A N/A N/A proto login username password addCallback cbAuthentication proto N/A N/A N/A defer fail N/A Exception Login failed for security reasons. N/A cbMailboxList N/A N/A result proto N/A N/A N/A 
    Callback invoked when a list of mailboxes has been retrieved.
     N/A result N/A N/A e N/A 2 N/A e result N/A s N/A N/A join N/A N/A %d. %s N/A N/A n 1 m N/A N/A n m N/A zip N/A range N/A len result result N/A N/A s N/A N/A N/A N/A defer fail N/A Exception No mailboxes exist on server! N/A N/A N/A N/A N/A proto prompt N/A s 
Which mailbox? [1]  addCallback cbPickMailbox proto result N/A cbPickMailbox N/A N/A result proto mboxes N/A N/A N/A 
    When the user selects a mailbox, "examine" it.
     N/A mbox N/A mboxes N/A N/A N/A int N/A result 1 1 N/A N/A N/A N/A N/A proto examine mbox addCallback cbExamineMbox proto N/A cbExamineMbox N/A N/A result proto N/A N/A N/A 
    Callback invoked when examine command completes.

    Retrieve the subject header of every message in the mailbox.
     N/A N/A N/A N/A N/A proto fetchSpecific 1:* headerType HEADER.FIELDS headerArgs N/A SUBJECT addCallback cbFetch proto N/A cbFetch N/A N/A result proto N/A N/A N/A 
    Finally, display headers.
     N/A result N/A N/A keys N/A N/A result keys N/A N/A N/A keys sort N/A k keys N/A N/A N/A N/A proto display N/A %s %s N/A k N/A N/A N/A result N/A k N/A 0 N/A 2 N/A N/A Hey, an empty mailbox! N/A N/A N/A proto logout N/A cbClose N/A N/A result N/A N/A N/A 
    Close the connection when we finish everything.
     twisted.internet reactor N/A N/A N/A reactor stop N/A main N/A N/A N/A N/A N/A hostname N/A raw_input IMAP4 Server Hostname:  N/A port N/A raw_input IMAP4 Server Port (the default is 143, 993 uses SSL):  N/A username N/A raw_input IMAP4 Username:  N/A password N/A N/A util getPassword IMAP4 Password:  N/A onConn N/A N/A N/A N/A N/A N/A N/A N/A defer Deferred addCallback cbServerGreeting username password addErrback ebConnection addBoth cbClose N/A factory N/A SimpleIMAP4ClientFactory username onConn twisted.internet reactor N/A N/A port 993 N/A N/A N/A N/A reactor connectSSL hostname N/A int port factory N/A N/A ssl ClientContextFactory N/A N/A N/A port N/A N/A port 143 N/A N/A N/A reactor connectTCP hostname N/A int port factory N/A N/A N/A reactor run N/A N/A N/A __name__ __main__ N/A N/A N/A main