Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Import alias orelse Assign NameStore NameLoad Import alias identifier TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias Assign NameStore ListLoad Str Str Str ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Dict Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot NameLoad Call AttributeLoad NameLoad attr Str body Continue If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr If NameLoad body Return NameLoad Return Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad If Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr For NameStore TupleLoad Str Str Str Str body Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assign NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str If BoolOpAnd NameLoad CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Yield TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Yield NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr orelse With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Str Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad AugAssignAdd NameStore Num handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num body Return NameLoad TryExcept body With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad SubscriptLoad NameLoad Index Num If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpAdd NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If CompareEq NameLoad Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str orelse Assign TupleStore NameStore NameStore TupleLoad NameLoad Str orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call AttributeLoad Str attr NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad Str keyword AttributeLoad NameLoad attr Return orelse For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword UnaryOpNot NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call AttributeLoad Str attr NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad Str keyword AttributeLoad NameLoad attr Return decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call NameLoad NameLoad NameLoad NameLoad orelse For NameStore NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad Call NameLoad attr NameLoad body If Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num If NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Expr Call NameLoad Str Return Expr Call NameLoad Str Expr Call NameLoad Expr Call NameLoad NameLoad Str If UnaryOpNot NameLoad body Expr Call NameLoad Assign NameStore Call NameLoad Str If CompareNotEq Call AttributeLoad NameLoad attr Str body Return Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Expr Call NameLoad Call AttributeLoad Str attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore NameLoad TryFinally body If NameLoad body Assign NameStore Call NameLoad NameLoad keyword Str keyword Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad finalbody If BoolOpAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore NameLoad TryFinally body If NameLoad body Assign NameStore Call NameLoad NameLoad keyword Str keyword Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad finalbody If BoolOpAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotIn SubscriptLoad NameLoad Index Str NameLoad body Expr Call NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr Return Num TryExcept body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareEq Call AttributeLoad NameLoad attr Str Str Str body Assign NameStore Call NameLoad NameLoad orelse Expr Call NameLoad Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Str Str If SubscriptLoad NameLoad Index Str body Expr Call NameLoad NameLoad NameLoad orelse If SubscriptLoad NameLoad Index Str body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str orelse If SubscriptLoad NameLoad Index Str body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If SubscriptLoad NameLoad Index Str body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If SubscriptLoad NameLoad Index Str body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If SubscriptLoad NameLoad Index Str body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body If SubscriptLoad NameLoad Index Str body Import alias Expr Call AttributeLoad NameLoad attr orelse Expr Call NameLoad NameLoad Return Num Return Num decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad
N/A N/A 
Notmuch Addressbook utility

Usage:
  notmuch_abook.py -h
  notmuch_abook.py [-v] [-c CONFIG] create
  notmuch_abook.py [-v] [-c CONFIG] update
  notmuch_abook.py [-v] [-c CONFIG] lookup [ -f FORMAT ] <match>
  notmuch_abook.py [-v] [-c CONFIG] changename <address> <name>
  notmuch_abook.py [-v] [-c CONFIG] delete [-n] <pattern>
  notmuch_abook.py [-v] [-c CONFIG] export [ -f FORMAT ] [ -s SORT ] [<filename>]
  notmuch_abook.py [-v] [-c CONFIG] import [ -f FORMAT ] [ -r ] [<filename>]

Options:
  -h --help                   Show this help message and exit
  -v --verbose                Show full stacktraces on error
  -c CONFIG, --config CONFIG  Path to notmuch configuration file
  -f FORMAT, --format FORMAT  Format for name/address (see below) [default: email]
  -n, --noinput               Don't ask for confirmation
  -s SORT, --sort SORT        Whether to sort by name or address [default: name]
  -r, --replace               If present, then replace the current contents with
                              the imported contents.  If not then merge - add new
                              addresses, and update the name associated with
                              existing addresses.

Commands:

  create               Create a new database.
  update               Update the database with a new email (on stdin).
  lookup <match>       Lookup an address in the database.  The match can be
                       an email address or part of a name.
  changename <address> <name>
                       Change the name associated with an email address.
  delete <pattern>     Delete all entries that match the given pattern - matched
                       against both name and email address.  The matches will be
                       displayed and confirmation will be asked for, unless the
                       --noinput flag is used.
  export [<filename>]  Export database, to filename if given or to stdout if not.
  import [<filename>]  Import into database, from filename if given or from stdin
                       if not.

Valid values for the FORMAT are:

* abook - Give output in abook compatible format so it can be easily parsed
          by other programs.  The format is EMAIL<Tab>NAME
* csv   - Give output as CSV (comma separated values). NAME,EMAIL
* email - Give output in a format that can be used when composing an email.
          So NAME <EMAIL>

The database to use is set in the notmuch config file.
 __future__ print_function N/A os N/A re N/A sys N/A docopt N/A notmuch N/A sqlite3 N/A email.utils N/A email.parser io open N/A N/A N/A N/A sys version_info major 3 N/A N/A configparser N/A N/A input raw_input N/A ConfigParser configparser N/A N/A N/A unicodecsv csv N/A N/A N/A ImportError N/A N/A csv N/A VALID_FORMATS N/A abook csv email InvalidOptionError N/A Exception N/A N/A An option wasn't valid. N/A NotMuchConfig N/A object N/A __init__ N/A N/A self config_file N/A N/A N/A N/A config_file None N/A N/A config_file N/A N/A N/A os environ get NOTMUCH_CONFIG ~/.notmuch-config N/A N/A self config N/A N/A configparser ConfigParser N/A ignorefile None N/A N/A N/A N/A self config read N/A N/A N/A os path expanduser config_file N/A get N/A N/A self section key N/A N/A N/A N/A N/A N/A self config get section key N/A N/A Ignorer N/A object N/A __init__ N/A N/A self config N/A N/A N/A N/A self ignorefile N/A N/A config get addressbook ignorefile N/A N/A self ignore_regexes None N/A N/A self ignore_substrings None N/A create_regexes N/A N/A self N/A N/A N/A N/A N/A self ignorefile None N/A N/A N/A N/A self ignore_regexes N/A N/A N/A self ignore_substrings N/A N/A line N/A open N/A self ignorefile N/A N/A line N/A N/A line strip N/A N/A N/A line N/A N/A line startswith # N/A N/A N/A N/A N/A N/A line startswith / N/A N/A line endswith / N/A N/A N/A N/A N/A self ignore_regexes append N/A N/A re compile N/A N/A line strip / N/A re IGNORECASE N/A N/A N/A N/A N/A self ignore_substrings append line N/A ignore_address N/A N/A self address N/A N/A N/A Check if this email address should be ignored.

        Return True if it should be ignored, or False otherwise. N/A N/A N/A self ignorefile None N/A N/A False N/A N/A N/A self ignore_regexes None N/A N/A N/A N/A self create_regexes N/A substring_match N/A any N/A N/A substr address N/A substr N/A self ignore_substrings N/A substring_match N/A N/A True N/A N/A any N/A N/A N/A regex search address N/A regex N/A self ignore_regexes N/A N/A MailParser N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self addresses N/A dict N/A parse_mail N/A N/A self m N/A N/A N/A 
        function used to extract headers from a email.message or
        notmuch.message email object yields address tuples
         N/A addrs N/A N/A N/A isinstance m N/A N/A email message Message N/A N/A get_header N/A m get N/A N/A get_header N/A m get_header N/A h N/A to from cc bcc N/A N/A v N/A get_header h N/A v N/A N/A N/A N/A addrs append v N/A addr N/A N/A N/A email utils getaddresses addrs N/A N/A name N/A N/A N/A addr N/A 0 strip ;  N/A address N/A N/A N/A N/A N/A addr N/A 1 lower strip ;'"  N/A N/A address N/A address N/A self addresses N/A N/A N/A N/A self addresses N/A address name N/A N/A N/A name address N/A N/A NotmuchAddressGetter N/A object N/A N/A Get all addresses from notmuch, based on information information from
    the user's $HOME/.notmuch-config file.
     __init__ N/A N/A self config N/A N/A N/A N/A N/A self db_path N/A N/A config get database path N/A N/A N/A N/A self query N/A N/A config get addressbook query N/A N/A N/A N/A configparser NoOptionError N/A N/A N/A self query NOT tag:junk AND NOT folder:drafts AND NOT tag:deleted N/A N/A self _mp N/A MailParser N/A _get_all_messages N/A N/A self N/A N/A N/A notmuch_db N/A N/A notmuch Database N/A self db_path N/A query N/A N/A notmuch Query notmuch_db N/A self query N/A N/A N/A query search_messages N/A generate N/A N/A self N/A N/A N/A msgs N/A N/A self _get_all_messages N/A m msgs N/A N/A addr N/A N/A N/A self _mp parse_mail m N/A N/A N/A addr N/A N/A SQLiteStorage N/A N/A N/A SQL Storage backend __init__ N/A N/A self config N/A N/A N/A N/A self __path N/A N/A config get addressbook path N/A N/A self ignorer N/A Ignorer config N/A connect N/A N/A self N/A N/A N/A 
        creates a new connection to the database and returns a cursor
        throws an error if the database does not exists
         N/A N/A N/A N/A N/A os path exists N/A self __path N/A N/A N/A IOError N/A N/A Database '{}' does not exists format N/A self __path N/A N/A N/A sqlite3 connect N/A self __path isolation_level DEFERRED N/A create N/A N/A self N/A N/A N/A 
        create a new database
         N/A N/A N/A N/A os path exists N/A self __path N/A N/A N/A IOError N/A Can't create database at '%s'. File exists. N/A N/A self __path N/A N/A N/A N/A sqlite3 connect N/A self __path c N/A N/A cur N/A N/A c cursor N/A N/A N/A cur execute CREATE VIRTUAL TABLE AddressBook USING fts4(Name, Address) N/A N/A N/A cur execute CREATE VIEW AddressBookView AS SELECT * FROM addressbook N/A N/A N/A cur executescript N/A N/A N/A N/A N/A N/A N/A CREATE TRIGGER insert_into_ab  INSTEAD OF INSERT ON AddressBookView  BEGIN  SELECT RAISE(ABORT, 'column name is not unique')    FROM addressbook   WHERE address = new.address;  INSERT INTO addressbook VALUES(new.name, new.address); END; N/A init N/A N/A self gen N/A N/A N/A 
        populates the database with all addresses from address book
         N/A n 0 N/A N/A N/A self connect cur N/A N/A N/A N/A cur execute PRAGMA synchronous = OFF N/A elt N/A gen N/A N/A N/A N/A N/A N/A cur execute INSERT INTO AddressBookView VALUES(?,?) elt N/A n 1 N/A N/A N/A N/A sqlite3 IntegrityError N/A N/A N/A N/A N/A cur commit N/A n N/A update N/A N/A self addr replace N/A False N/A N/A 
        updates the database with a new mail address tuple

        replace: if the email address already exists then replace the name with the new name
         N/A N/A N/A N/A self ignorer ignore_address N/A addr N/A 1 N/A N/A False N/A N/A N/A N/A N/A self connect c N/A N/A cur N/A N/A c cursor N/A replace N/A N/A present N/A N/A cur execute SELECT 1 FROM AddressBook WHERE address = ? N/A N/A addr N/A 1 N/A present N/A N/A N/A N/A cur execute UPDATE AddressBook SET name = ? WHERE address = ? addr N/A N/A N/A N/A cur execute INSERT INTO AddressBookView VALUES(?,?) addr N/A N/A N/A N/A cur execute INSERT INTO AddressBookView VALUES(?,?) addr N/A True N/A N/A N/A N/A sqlite3 IntegrityError N/A N/A False N/A create_query N/A N/A self query_start pattern N/A N/A N/A N/A query_start N/A N/A  FROM AddressBook WHERE AddressBook MATCH '"{}*"' format pattern N/A lookup N/A N/A self pattern N/A N/A N/A 
        lookup an address from the given match in database
         N/A N/A N/A self connect c N/A N/A N/A c row_factory N/A sqlite3 Row N/A cur N/A N/A c cursor N/A res N/A N/A N/A N/A cur execute N/A N/A self create_query SELECT * pattern fetchall N/A N/A N/A res N/A delete_matches N/A N/A self pattern N/A N/A N/A 
        Delete all entries that match the pattern
         N/A N/A N/A self connect c N/A N/A cur N/A N/A c cursor N/A N/A N/A cur execute N/A N/A self create_query DELETE pattern N/A fetchall N/A N/A self order_by N/A N/A N/A 
        Fetch all entries from the database.
         N/A N/A N/A self connect c N/A N/A N/A c row_factory N/A sqlite3 Row N/A cur N/A N/A c cursor N/A res N/A N/A N/A N/A cur execute N/A N/A SELECT * FROM AddressBook ORDER BY {} format order_by fetchall N/A N/A N/A res N/A change_name N/A N/A self address name N/A N/A N/A 
        Change the name associated with an email address
         N/A N/A N/A self connect c N/A N/A cur N/A N/A c cursor N/A N/A N/A cur execute N/A N/A UPDATE AddressBook SET name = '{}' WHERE address = '{}' format name address N/A True N/A delete_db N/A N/A self N/A N/A N/A 
        Delete the database
         N/A N/A N/A N/A os path exists N/A self __path N/A N/A N/A N/A os remove N/A self __path N/A N/A format_address N/A N/A address output_format N/A N/A N/A N/A output_format abook N/A N/A N/A N/A {}	{} format N/A address N/A Address N/A address N/A Name N/A N/A N/A output_format email N/A N/A N/A N/A N/A email utils formataddr N/A N/A address N/A Name N/A address N/A Address N/A N/A N/A InvalidOptionError N/A N/A Unknown format: {} format output_format N/A decode_line N/A N/A line input_format N/A N/A N/A N/A input_format abook N/A N/A N/A line N/A N/A N/A address name N/A N/A line split N/A N/A N/A address name N/A line N/A N/A N/A input_format email N/A N/A N/A name address N/A N/A N/A email utils parseaddr line N/A N/A N/A InvalidOptionError N/A N/A Unknown format: {} format input_format N/A N/A name address N/A print_address_list N/A N/A address_list output_format out N/A None N/A N/A N/A out None N/A N/A out N/A sys stdout N/A N/A output_format csv N/A N/A N/A N/A writer N/A N/A csv writer out N/A address address_list N/A N/A N/A N/A writer writerow N/A N/A address N/A Name N/A address N/A Address N/A N/A N/A UnicodeEncodeError N/A e N/A N/A N/A print N/A N/A Caught UnicodeEncodeError: {} format e file N/A sys stderr N/A N/A print Installing unicodecsv will probably fix this file N/A sys stderr N/A N/A N/A address address_list N/A N/A output N/A format_address address output_format N/A N/A N/A out write N/A output N/A import_address_list_from_csv N/A N/A db replace_all infile N/A N/A N/A N/A N/A reader N/A N/A csv reader infile N/A row reader N/A N/A N/A N/A db update row replace N/A replace_all N/A N/A N/A UnicodeEncodeError N/A e N/A N/A N/A print N/A N/A Caught UnicodeEncodeError: {} format e file N/A sys stderr N/A N/A print Installing unicodecsv will probably fix this file N/A sys stderr N/A N/A import_address_list N/A N/A db replace_all input_format infile N/A None N/A N/A N/A infile None N/A N/A infile N/A sys stdin N/A replace_all N/A N/A N/A N/A db delete_db N/A N/A N/A db create N/A N/A input_format csv N/A N/A N/A import_address_list_from_csv db replace_all infile N/A N/A line infile N/A N/A name_addr N/A decode_line N/A N/A line strip input_format N/A N/A N/A db update name_addr replace N/A replace_all N/A create_action N/A N/A db nm_config N/A N/A N/A N/A N/A db create N/A nm_mailgetter N/A NotmuchAddressGetter nm_config N/A n N/A N/A db init N/A nm_mailgetter generate N/A N/A print N/A N/A added {} addresses format n N/A update_action N/A N/A db verbose N/A N/A N/A n 0 N/A m N/A N/A email message_from_file N/A sys stdin N/A addr N/A N/A N/A MailParser parse_mail m N/A N/A N/A N/A db update addr N/A N/A n 1 N/A verbose N/A N/A N/A print N/A N/A added {} addresses format n N/A lookup_action N/A N/A db match output_format N/A N/A N/A N/A print_address_list N/A N/A db lookup match output_format N/A delete_action N/A N/A db pattern noinput N/A N/A N/A matches N/A list N/A N/A db lookup pattern N/A N/A N/A len matches 0 N/A N/A N/A print Nothing to delete N/A N/A N/A print The following entries match: N/A N/A print N/A N/A print_address_list matches email N/A N/A noinput N/A N/A N/A print N/A response N/A input Are you sure you want to delete all these entries? (y/n)  N/A N/A N/A N/A response lower y N/A N/A N/A N/A N/A db delete_matches pattern N/A N/A print N/A N/A print N/A N/A {} entries deleted format N/A len matches N/A export_action N/A N/A db output_format sort filename N/A None N/A N/A out None N/A N/A N/A filename N/A N/A out N/A open filename mode w encoding utf-8 N/A N/A print_address_list N/A N/A db fetchall sort output_format out N/A N/A N/A filename out N/A N/A N/A N/A out close N/A import_action N/A N/A db input_format replace filename N/A None N/A N/A infile None N/A N/A N/A filename N/A N/A infile N/A open filename mode r encoding utf-8 N/A N/A import_address_list db replace input_format infile N/A N/A N/A filename infile N/A N/A N/A N/A infile close N/A run N/A N/A N/A N/A N/A options N/A N/A docopt docopt __doc__ N/A N/A N/A options N/A --format VALID_FORMATS N/A N/A N/A print N/A N/A {} is not a valid output option. format N/A options N/A --format file N/A sys stderr N/A 2 N/A N/A N/A nm_config N/A NotMuchConfig N/A options N/A --config N/A N/A N/A N/A nm_config get addressbook backend sqlite3 N/A N/A db N/A SQLiteStorage nm_config N/A N/A N/A print N/A N/A Database backend '{}' is not implemented. format N/A N/A nm_config get addressbook backend N/A N/A options N/A create N/A N/A N/A create_action db nm_config N/A N/A N/A options N/A update N/A N/A N/A update_action db N/A options N/A --verbose N/A N/A N/A options N/A lookup N/A N/A N/A lookup_action db N/A options N/A <match> N/A options N/A --format N/A N/A N/A options N/A changename N/A N/A N/A N/A db change_name N/A options N/A <address> N/A options N/A <name> N/A N/A N/A options N/A delete N/A N/A N/A delete_action db N/A options N/A <pattern> N/A options N/A --noinput N/A N/A N/A options N/A export N/A N/A N/A export_action db N/A options N/A --format N/A options N/A --sort N/A options N/A <filename> N/A N/A N/A options N/A import N/A N/A N/A import_action db N/A options N/A --format N/A options N/A --replace N/A options N/A <filename> N/A N/A N/A Exception N/A exc N/A N/A N/A options N/A --verbose N/A N/A traceback N/A N/A N/A traceback print_exc N/A N/A N/A print exc N/A 1 N/A 0 N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A run