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