Hi, here are a few RFC patches that add support for limiting the number of messages in search results. The main goal was emacs; the lib/cli patches could probably be better thought out to be more general. The emacs interface was inspired by vc-print-log in Emacs vc.el. You'll get buttons [Show 2X messages] and [Show unlimited messages] at the end of search results to expand the results. You can use the 2X button repeatedly to increase the limit for the buffer. When the bulk of the work was done, I was told in IRC that patches exist towards a similar goal: id:"87vctrq4or.fsf@hackervisions.org" id:"8739gyw0zh.fsf@opensourcematters.org" My approach is slightly different. I think it's easier and better to do this in lib rather than just in cli. BR, Jani. Jani Nikula (3): lib: add support for limiting the number of search results cli: add support for limiting the number of search results emacs: support limiting the number of messages shown in search results emacs/notmuch-hello.el | 19 ++++++++++++++++--- emacs/notmuch.el | 43 ++++++++++++++++++++++++++++++++++++++----- lib/notmuch.h | 3 +++ lib/query.cc | 26 ++++++++++++++++++++++++-- notmuch-search.c | 10 ++++++++++ 5 files changed, 91 insertions(+), 10 deletions(-) -- 1.7.5.4