Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8DE6B429E21 for ; Sun, 13 Nov 2011 11:48:47 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9ZUS9EGgmZOa for ; Sun, 13 Nov 2011 11:48:47 -0800 (PST) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A7E92431FB6 for ; Sun, 13 Nov 2011 11:48:46 -0800 (PST) Received: by bkaq10 with SMTP id q10so6225076bka.26 for ; Sun, 13 Nov 2011 11:48:45 -0800 (PST) Received: by 10.205.127.139 with SMTP id ha11mr8685446bkc.111.1321213724886; Sun, 13 Nov 2011 11:48:44 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id m12sm17205307bkg.14.2011.11.13.11.48.41 (version=SSLv3 cipher=OTHER); Sun, 13 Nov 2011 11:48:43 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v5 0/6] lib/cli: limit number of messages in search results Date: Sun, 13 Nov 2011 21:48:34 +0200 Message-Id: X-Mailer: git-send-email 1.7.5.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2011 19:48:47 -0000 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