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 EDEF64196F2 for ; Thu, 18 Mar 2010 13:43:07 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham 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 2H-Xh9lX3PSS for ; Thu, 18 Mar 2010 13:43:06 -0700 (PDT) Received: from mail-ew0-f210.google.com (mail-ew0-f210.google.com [209.85.219.210]) by olra.theworths.org (Postfix) with ESMTP id 88F154196F0 for ; Thu, 18 Mar 2010 13:43:06 -0700 (PDT) Received: by ewy2 with SMTP id 2so156467ewy.0 for ; Thu, 18 Mar 2010 13:43:05 -0700 (PDT) Received: by 10.213.43.14 with SMTP id u14mr1025705ebe.19.1268944985201; Thu, 18 Mar 2010 13:43:05 -0700 (PDT) Received: from ellen.idiomdrottning.org.handgranat.org ([83.251.93.216]) by mx.google.com with ESMTPS id 15sm282027ewy.12.2010.03.18.13.43.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 18 Mar 2010 13:43:04 -0700 (PDT) Message-ID: <4ba29058.0f67f10a.2b59.1a73@mx.google.com> Date: Thu, 18 Mar 2010 21:43:57 +0100 From: Sandra Snan To: notmuch@notmuchmail.org User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [notmuch] [PATCH] Add count command to manual page 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: Thu, 18 Mar 2010 20:43:08 -0000 Just found out that I=E2=80=99ve been piping things through wc for no reaso= n. Heh. Here=E2=80=99s a quick patch, if you want to add this to the manual pa= ge. Signed-off-by: Sandra Snan --- notmuch.1 | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/notmuch.1 b/notmuch.1 index e573749..4d300c0 100644 --- a/notmuch.1 +++ b/notmuch.1 @@ -126,7 +126,7 @@ syntax. See the section below for more details on the supported syntax. =20 The -.BR search " and "show +.BR "search" ", " "show" " and " "count" commands are used to query the email database. .RS 4 .TP 4 @@ -239,6 +239,22 @@ See the .B "SEARCH SYNTAX" section below for details of the supported syntax for . .RE +.TP +.BR count " ..." + +Count messages matching the search terms. + +The number of matching messages is output to stdout. + +A common use of +.B notmuch count +is to display the count of messages matching both a specific tag and +either inbox or unread + +See the +.B "SEARCH SYNTAX" +section below for details of the supported syntax for . +.RE .RE =20 The --=20 1.7.0