notmuch/test/ghost-report.cc
David Bremner 126347b694 Import notmuch_0.38.2.orig.tar.xz
[dgit import orig notmuch_0.38.2.orig.tar.xz]
2023-12-01 07:51:09 -04:00

17 lines
291 B
C++

#include <iostream>
#include <cstdlib>
#include <xapian.h>
int
main (int argc, char **argv)
{
if (argc < 2) {
std::cerr << "usage: ghost-report xapian-dir" << std::endl;
exit (1);
}
Xapian::Database db (argv[1]);
std::cout << db.get_termfreq ("Tghost") << std::endl;
}