Hi, output limiting patches v5, with only documentation changes since the previous version id:"cover.1320615322.git.jani@nikula.org". The changes are as suggested by Austin Clements: id:"87ehxcufr0.fsf@awakening.csail.mit.edu" id:"87bosgufcf.fsf@awakening.csail.mit.edu" BR, Jani. Jani Nikula (6): lib: add function to get the number of threads matching a search cli: add options --first and --maxitems to notmuch search cli: drop unused code from notmuch count cli: add support for --output parameter in notmuch count test: add tests for notmuch count test: add tests for notmuch search --first and --maxitems NEWS | 10 +++++++ lib/notmuch.h | 14 ++++++++++ lib/query.cc | 44 +++++++++++++++++++++++++++++++ notmuch-count.c | 44 +++++++++---------------------- notmuch-search.c | 70 ++++++++++++++++++++++++++++++++++++++++-------- notmuch.1 | 48 +++++++++++++++++++++++++++++---- test/count | 40 ++++++++++++++++++++++++++++ test/notmuch-test | 2 + test/search-limiting | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 294 insertions(+), 49 deletions(-) create mode 100755 test/count create mode 100755 test/search-limiting -- 1.7.5.4