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 BD50C4196F2 for ; Fri, 9 Apr 2010 06:01:41 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.8 X-Spam-Level: X-Spam-Status: No, score=0.8 tagged_above=-999 required=5 tests=[BAYES_50=0.8] 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 1CwGt-XjmkG4 for ; Fri, 9 Apr 2010 06:01:41 -0700 (PDT) Received: from homiemail-a23.g.dreamhost.com (caiajhbdccac.dreamhost.com [208.97.132.202]) by olra.theworths.org (Postfix) with ESMTP id 1A65B431FC1 for ; Fri, 9 Apr 2010 06:01:41 -0700 (PDT) Received: from sspaeth.de (unknown [195.190.188.219]) by homiemail-a23.g.dreamhost.com (Postfix) with ESMTPA id C03F34B0060; Fri, 9 Apr 2010 06:01:38 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Fri, 09 Apr 2010 15:01:35 +0200 From: "Sebastian Spaeth" To: Mike Kelly , notmuch@notmuchmail.org Subject: Re: [PATCH] Have notmuch count default to showing the total. In-Reply-To: <1270755578-23725-1-git-send-email-pioto@pioto.org> References: <1270755578-23725-1-git-send-email-pioto@pioto.org> Date: Fri, 09 Apr 2010 15:01:35 +0200 Message-ID: <87bpdsu6ds.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 13:01:41 -0000 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). But let me express support (It's notmuch worth, I know (haha)) for this patch. I think it makes lots of sense: 1) I often want to know how many mails are in my db. "notmuch count" or "notmuch count *" is the intuitive syntax I would use for that. Right now there is no way as far as I can see. 2) Search terms filter out things. The empty search term stands therefore for all my mails. It is consistent to have the search term '' represent all my mail. 3) I don't expect a help text for "notmuch count" just as I don't expect a help text for "notmuch log", we are very explicit about "notmuch help" and "notmuch help count" in many parts of our documentation. I'm using this and find it very handy. Sebastian