[PATCH v4 1/7] test: add test-binary to print the number of ghost messages

David Bremner david at tethera.net
Sat Apr 9 04:02:16 PDT 2016


Daniel Kahn Gillmor <dkg at fifthhorseman.net> writes:


> +    if (argc < 2) {
> +	std::cerr << "usage: ghost-report xapian-dir" << std::endl;
> +    }
> +
> +    Xapian::Database db(argv[1]);
> +    std::cout << db.get_termfreq("Tghost") << std::endl;
> +}

It's completely my fault, but this should have an exit(1) after printing
the error message.


More information about the notmuch mailing list