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 4C927429E27 for ; Tue, 15 Nov 2011 12:09:02 -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 44myJzNSg4Ib for ; Tue, 15 Nov 2011 12:09:01 -0800 (PST) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 694CF431FB6 for ; Tue, 15 Nov 2011 12:09:01 -0800 (PST) Received: by faan15 with SMTP id n15so895260faa.26 for ; Tue, 15 Nov 2011 12:08:58 -0800 (PST) Received: by 10.205.118.142 with SMTP id fq14mr12336517bkc.85.1321387738483; Tue, 15 Nov 2011 12:08:58 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id o16sm18238094fag.21.2011.11.15.12.08.54 (version=SSLv3 cipher=OTHER); Tue, 15 Nov 2011 12:08:56 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v7 0/6] lib/cli: limit number of messages in search results Date: Tue, 15 Nov 2011 22:08:47 +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: Tue, 15 Nov 2011 20:09:02 -0000 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