Hi, here's the fourth version of the output limiting patches, with the following minor changes since v3 (id:"cover.1320349030.git.jani@nikula.org"): * add spaces before parentheses in function calls (when will I learn?) * update man page * update NEWS * drop the emacs ui patch for now; it needs some rework (see id:"20111104205415.GJ22935@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 | 50 +++++++++++++++++++++++++++++++---- test/count | 40 ++++++++++++++++++++++++++++ test/notmuch-test | 2 + test/search-limiting | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 296 insertions(+), 49 deletions(-) create mode 100755 test/count create mode 100755 test/search-limiting -- 1.7.5.4