6 int main (int argc, char** argv)
8 notmuch_database_t *notmuch;
14 if (notmuch_database_open_verbose (argv[1], NOTMUCH_DATABASE_MODE_READ_ONLY,
15 ¬much, &message)) {
17 fputs (message, stderr);
23 (void) new Xapian::WritableDatabase (argv[2], Xapian::DB_OPEN);
24 } catch (const Xapian::Error &error) {
25 printf("caught %s\n", error.get_msg().c_str());