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 22132429E21 for ; Sun, 6 Nov 2011 13:47:21 -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 Es+dQP096-5J for ; Sun, 6 Nov 2011 13:47:20 -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 6771E431FB6 for ; Sun, 6 Nov 2011 13:47:20 -0800 (PST) Received: by faan15 with SMTP id n15so1762114faa.26 for ; Sun, 06 Nov 2011 13:47:19 -0800 (PST) Received: by 10.223.81.196 with SMTP id y4mr42138313fak.6.1320616039144; Sun, 06 Nov 2011 13:47:19 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id l18sm28507946fab.9.2011.11.06.13.47.17 (version=SSLv3 cipher=OTHER); Sun, 06 Nov 2011 13:47:18 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v4 0/6] lib/cli: limit number of messages in search results Date: Sun, 6 Nov 2011 23:47:09 +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, 06 Nov 2011 21:47:21 -0000 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