Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Return decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
A utility script that does the work of going through every MH mbox and
indexing it. This will add/update the uids on every message. It will
update the mbox's entry in the asimap db as well.

This is a script to run when setting up an asimap configuration for a
user to pre-index their entire MH folder.

It MUST NOT be run when asimapd is running because they will fight
over the same data structures and files.

The purpose is to pre-index those very large folders and/or test that
we are indexing things correctly when the system is otherwise
quiescent.

Assumptions this program makes:

o The user this program is being run as is the one that has the MH
  folder you want to index.
o The MH folder is stored in ~/Mail
 N/A os N/A os.path N/A pwd N/A sys N/A optparse N/A logging N/A logging.handlers N/A asyncore N/A time N/A asimap_module_dir N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ .. N/A N/A N/A N/A sys path insert 0 asimap_module_dir N/A asimap N/A asimap.user_server TempOptions N/A object N/A N/A 
    An options object that contains the attributes that the user
    server and folder objects expect to do their job.

    This basically just stubs out the attributes in the 'options'
    object with ones appropriate for running the user_server in
    standalone mode.
     __init__ N/A N/A self N/A N/A N/A 
        set up our attributes for standalone mode operation.
         N/A N/A self debug True N/A N/A self standalone_mode True N/A N/A self errorstack_key None N/A N/A self maildir /Volumes/extra/tmp/testmaildir N/A N/A N/A main N/A N/A N/A N/A N/A 
    Main entry points.
    Sets up our logging system.
    Sets up enough of the user server environment to index all folders
    find_all_folders, update all attributes necessary, and exit.

    Logging is directed to stderr.
     N/A options N/A TempOptions N/A level N/A logging DEBUG N/A log N/A N/A logging getLogger asimap N/A N/A N/A log setLevel level N/A h N/A N/A logging StreamHandler N/A N/A N/A h setLevel level N/A formatter N/A N/A logging Formatter %(asctime)s %(created)s %(process)d %(levelname)s %(name)s %(message)s N/A N/A N/A h setFormatter formatter N/A N/A N/A log addHandler h N/A N/A N/A log info N/A Changing to maildir directory '%s' N/A options maildir N/A N/A N/A os chdir N/A options maildir N/A N/A N/A log info Instantiating asimap.user_server.IMAPUserServer object N/A server N/A N/A N/A asimap user_server IMAPUserServer options N/A options maildir N/A N/A N/A server find_all_folders N/A N/A N/A server check_all_folders force True N/A N/A N/A log info Finishing all indexing. N/A N/A N/A asyncore close_all N/A N/A N/A N/A server db commit N/A N/A N/A N/A server db close N/A N/A N/A N/A server mailbox close N/A N/A N/A N/A __name__ __main__ N/A N/A N/A main