v7, s/--first/--offset/ and s/--maxitems/--limit/ and rebased against master since since id:"cover.1321217854.git.jani@nikula.org" BR, Jani. Jani Nikula (6): lib: add function to get the number of threads matching a search cli: add options --offset and --limit 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 --offset and --limit NEWS | 10 +++++++ lib/notmuch.h | 14 ++++++++++ lib/query.cc | 44 +++++++++++++++++++++++++++++++ notmuch-count.c | 44 +++++++++---------------------- notmuch-search.c | 68 +++++++++++++++++++++++++++++++++++++++-------- notmuch.1 | 48 +++++++++++++++++++++++++++++---- notmuch.c | 29 +++++++++++++++++--- test/count | 40 ++++++++++++++++++++++++++++ test/notmuch-test | 2 + test/search-limiting | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 317 insertions(+), 53 deletions(-) create mode 100755 test/count create mode 100755 test/search-limiting -- 1.7.5.4