1 Return-Path: <BATV+95f6b7a4aaa7c13215e8+2420+infradead.org+hohndel@bombadil.srs.infradead.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id C5FF24196F0
\r
6 for <notmuch@notmuchmail.org>; Fri, 9 Apr 2010 10:19:49 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.301 tagged_above=-999 required=5
\r
12 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id BuxFJLwN8WaI for <notmuch@notmuchmail.org>;
\r
16 Fri, 9 Apr 2010 10:19:49 -0700 (PDT)
\r
17 Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 0FCBF431FC1
\r
19 for <notmuch@notmuchmail.org>; Fri, 9 Apr 2010 10:19:49 -0700 (PDT)
\r
20 Received: from localhost ([::1] helo=localhost.localdomain)
\r
21 by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux))
\r
22 id 1O0Hrw-0003MK-8A; Fri, 09 Apr 2010 17:19:48 +0000
\r
23 Received: by localhost.localdomain (Postfix, from userid 500)
\r
24 id 4C2AEC0052; Fri, 9 Apr 2010 10:19:47 -0700 (PDT)
\r
25 From: Dirk Hohndel <hohndel@infradead.org>
\r
26 To: Sebastian Spaeth <Sebastian@SSpaeth.de>, Mike Kelly <pioto@pioto.org>,
\r
27 notmuch@notmuchmail.org
\r
28 Subject: Re: [PATCH] Have notmuch count default to showing the total.
\r
29 In-Reply-To: <87bpdsu6ds.fsf@SSpaeth.de>
\r
30 References: <1270755578-23725-1-git-send-email-pioto@pioto.org>
\r
31 <87bpdsu6ds.fsf@SSpaeth.de>
\r
32 Date: Fri, 09 Apr 2010 10:19:47 -0700
\r
33 Message-ID: <m31veoh7bg.fsf@x200.gr8dns.org>
\r
35 Content-Type: text/plain; charset=us-ascii
\r
36 X-SRS-Rewrite: SMTP reverse-path rewritten from <hohndel@infradead.org> by
\r
37 bombadil.infradead.org See http://www.infradead.org/rpr.html
\r
38 X-BeenThere: notmuch@notmuchmail.org
\r
39 X-Mailman-Version: 2.1.13
\r
41 List-Id: "Use and development of the notmuch mail system."
\r
42 <notmuch.notmuchmail.org>
\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
46 List-Post: <mailto:notmuch@notmuchmail.org>
\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
50 X-List-Received-Date: Fri, 09 Apr 2010 17:19:49 -0000
\r
52 On Fri, 09 Apr 2010 15:01:35 +0200, "Sebastian Spaeth" <Sebastian@SSpaeth.de> wrote:
\r
53 > On 2010-04-08, Mike Kelly wrote:
\r
54 > > If no parameters are given to notmuch-count, or just '' or '*' are
\r
55 > > given, return the total number of messages in the database.
\r
57 > I know that cworth was concerned about this syntax on IRC as that would
\r
58 > mean that "notmuch show" would have to spew out all your emails in order
\r
59 > to remain consistent with the search term (he rather wanted to output a
\r
60 > help text if no search term was given).
\r
62 > But let me express support (It's notmuch worth, I know (haha)) for this
\r
63 > patch. I think it makes lots of sense:
\r
65 > 1) I often want to know how many mails are in my db. "notmuch count" or
\r
66 > "notmuch count *" is the intuitive syntax I would use for that. Right
\r
67 > now there is no way as far as I can see.
\r
69 I use "notmuch count To" - not very intuitive, though.
\r
71 > 2) Search terms filter out things. The empty search term stands
\r
72 > therefore for all my mails. It is consistent to have the search term ''
\r
73 > represent all my mail.
\r
75 Actually, I'd like to disagree. A search argument of '' should get you a
\r
76 help text. A search argument of '*' should give you all email.
\r
78 > 3) I don't expect a help text for "notmuch count" just as I don't expect
\r
79 > a help text for "notmuch log", we are very explicit about "notmuch help"
\r
80 > and "notmuch help count" in many parts of our documentation.
\r
82 My main concern here is that once you have a gazzillion emails, typing
\r
83 notmuch search with no argument over a slow link (or using it from
\r
84 within a gui by mistake) could really cause a lot of unnecessary compute
\r
85 / data transfer. So I'd rather have a special character be the one that
\r
86 triggers that behavior.
\r
92 Intel Open Source Technology Center
\r