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 E782E4196F0 for ; Fri, 9 Apr 2010 12:28:35 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, 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 z6uq54N4bsB7 for ; Fri, 9 Apr 2010 12:28:35 -0700 (PDT) Received: from mail-yw0-f187.google.com (mail-yw0-f187.google.com [209.85.211.187]) by olra.theworths.org (Postfix) with ESMTP id 124F1431FC1 for ; Fri, 9 Apr 2010 12:28:35 -0700 (PDT) Received: by ywh17 with SMTP id 17so551449ywh.22 for ; Fri, 09 Apr 2010 12:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:received:message-id:subject :from:to:content-type; bh=GSN/RtNgUtL96lV/pLLcSFE1pjrQXxl6qIUIdlA29HU=; b=Z8/mUpJpL+DEkYsmqrY9IQraT90ta9m7jHvQDcDtaDTv6tRY1mHyO6rw0lylVGdiN2 BbMzawgSx8WIVQqmt/AjS8S1Bxi8PDRx1065+RgfQg2xPhQ/VRo+U7okriqiX4gLlfj+ v+C8YB2y45iF6T1/1NJotlAM1u/JWxfEEM5a0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=V3gy2KIhHmYJERfsgorE57PfOMw2Jo5IXsV2sZIbGudA2oOBn7IfF+uhgU2AHFNJ1l MfS35hx3eD0Z+gYZaEXp+vvHRi+FSXliV1gXGTyt8BmbqjYUuQ+RjrhnfDVZUU+kdTUx VoSkhfTnYvMjqarm7QwYr0UnBDe6ayNVeAqAo= MIME-Version: 1.0 Sender: anthony.j.towns@gmail.com Received: by 10.90.114.1 with HTTP; Fri, 9 Apr 2010 12:28:32 -0700 (PDT) In-Reply-To: <87bpdsu6ds.fsf@SSpaeth.de> References: <1270755578-23725-1-git-send-email-pioto@pioto.org> <87bpdsu6ds.fsf@SSpaeth.de> Date: Sat, 10 Apr 2010 05:28:32 +1000 X-Google-Sender-Auth: 00c0efbb1ab8a2f9 Received: by 10.90.59.29 with SMTP id h29mr164442aga.14.1270841313095; Fri, 09 Apr 2010 12:28:33 -0700 (PDT) Message-ID: Subject: Re: [PATCH] Have notmuch count default to showing the total. From: Anthony Towns To: notmuch@notmuchmail.org Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 09 Apr 2010 19:28:36 -0000 On Fri, Apr 9, 2010 at 23:01, Sebastian Spaeth wrote: > On 2010-04-08, Mike Kelly wrote: >> If no parameters are given to notmuch-count, or just '' or '*' are >> given, return the total number of messages in the database. > I know that cworth was concerned about this syntax on IRC as that would > mean that "notmuch show" would have to spew out all your emails in order > to remain consistent with the search term (he rather wanted to output a > help text if no search term was given). What's wrong with having them inconsistent in this one respect? [0] $ notmuch count 96632 $ notmuch search Error: notmuch search requires at least one search term. ...seems pretty logical behaviour to me? Cheers, aj [0] Not much, afaics! [1] [1] Man, what are the chances that will ever get old? [0] -- Anthony Towns