From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B4BBE429E21 for ; Sun, 13 Nov 2011 13:15:41 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.075 X-Spam-Level: * X-Spam-Status: No, score=1.075 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLACK=1.775] 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 NA3LVDH2bv0e for ; Sun, 13 Nov 2011 13:15:41 -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 E080C431FB6 for ; Sun, 13 Nov 2011 13:15:40 -0800 (PST) Received: by bkaq10 with SMTP id q10so6289712bka.26 for ; Sun, 13 Nov 2011 13:15:39 -0800 (PST) Received: by 10.205.133.16 with SMTP id hw16mr8634825bkc.128.1321218939277; Sun, 13 Nov 2011 13:15:39 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id dq2sm27010560bkb.11.2011.11.13.13.15.36 (version=SSLv3 cipher=OTHER); Sun, 13 Nov 2011 13:15:38 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v6 0/6] lib/cli: limit number of messages in search results Date: Sun, 13 Nov 2011 23:15:29 +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 21:15:41 -0000 v6, now with the missing 'notmuch help' documentation spotted by jrollins. Previous version at id:"cover.1321212673.git.jani@nikula.org". 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 +++++++++++++++++++++++++++++---- notmuch.c | 29 +++++++++++++++++--- test/count | 40 ++++++++++++++++++++++++++++ test/notmuch-test | 2 + test/search-limiting | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 319 insertions(+), 53 deletions(-) create mode 100755 test/count create mode 100755 test/search-limiting -- 1.7.5.4