7 main (int argc, char **argv)
9 notmuch_database_t *notmuch;
15 if (notmuch_database_open_with_config (argv[1], NOTMUCH_DATABASE_MODE_READ_ONLY,
18 ¬much, &message)) {
20 fputs (message, stderr);
26 (void) new Xapian::WritableDatabase (argv[2], Xapian::DB_OPEN);
27 } catch (const Xapian::Error &error) {
28 printf ("caught %s\n", error.get_msg ().c_str ());