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 C5FF24196F0 for ; Fri, 9 Apr 2010 10:19:49 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.301 X-Spam-Level: X-Spam-Status: No, score=-2.301 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_MED=-2.3] 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 BuxFJLwN8WaI for ; Fri, 9 Apr 2010 10:19:49 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by olra.theworths.org (Postfix) with ESMTP id 0FCBF431FC1 for ; Fri, 9 Apr 2010 10:19:49 -0700 (PDT) Received: from localhost ([::1] helo=localhost.localdomain) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O0Hrw-0003MK-8A; Fri, 09 Apr 2010 17:19:48 +0000 Received: by localhost.localdomain (Postfix, from userid 500) id 4C2AEC0052; Fri, 9 Apr 2010 10:19:47 -0700 (PDT) From: Dirk Hohndel To: Sebastian Spaeth , Mike Kelly , notmuch@notmuchmail.org Subject: Re: [PATCH] Have notmuch count default to showing the total. In-Reply-To: <87bpdsu6ds.fsf@SSpaeth.de> References: <1270755578-23725-1-git-send-email-pioto@pioto.org> <87bpdsu6ds.fsf@SSpaeth.de> Date: Fri, 09 Apr 2010 10:19:47 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html 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 17:19:49 -0000 On Fri, 09 Apr 2010 15:01:35 +0200, "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). > > 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. I use "notmuch count To" - not very intuitive, though. > 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. Actually, I'd like to disagree. A search argument of '' should get you a help text. A search argument of '*' should give you all email. > 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. My main concern here is that once you have a gazzillion emails, typing notmuch search with no argument over a slow link (or using it from within a gui by mistake) could really cause a lot of unnecessary compute / data transfer. So I'd rather have a special character be the one that triggers that behavior. /D -- Dirk Hohndel Intel Open Source Technology Center