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