From: Mark Walters Date: Wed, 15 Feb 2012 20:24:27 +0000 (+0000) Subject: Re: [PATCH] emacs: Add the option of counting threads in notmuch-hello X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=f8b6879e9f2853e3dde3777b2836c703063fab33;p=notmuch-archives.git Re: [PATCH] emacs: Add the option of counting threads in notmuch-hello --- diff --git a/9f/9a8fa93e2acac72dc25cbfd35193a8833466c4 b/9f/9a8fa93e2acac72dc25cbfd35193a8833466c4 new file mode 100644 index 000000000..47b9890ef --- /dev/null +++ b/9f/9a8fa93e2acac72dc25cbfd35193a8833466c4 @@ -0,0 +1,117 @@ +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 457B4429E43 + for ; Wed, 15 Feb 2012 12:23:18 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -1.098 +X-Spam-Level: +X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5 + tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, + NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled +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 G4nCxr3pe-Mm for ; + Wed, 15 Feb 2012 12:23:14 -0800 (PST) +Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id CECF3429E42 + for ; Wed, 15 Feb 2012 12:23:12 -0800 (PST) +Received: from smtp.qmul.ac.uk ([138.37.6.40]) + by mail2.qmul.ac.uk with esmtp (Exim 4.71) + (envelope-from ) + id 1RxlNY-00059y-FA; Wed, 15 Feb 2012 20:23:08 +0000 +Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223] + helo=localhost) + by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) + (envelope-from ) + id 1RxlNY-0007cZ-0o; Wed, 15 Feb 2012 20:23:04 +0000 +From: Mark Walters +To: Tomi Ollila , Adam Wolfe Gordon , + Dmitry Kurochkin +Subject: Re: [PATCH] emacs: Add the option of counting threads in + notmuch-hello +In-Reply-To: +References: <1329319688-16056-1-git-send-email-awg+notmuch@xvx.ca> + <87bop0gklt.fsf@gmail.com> + + +User-Agent: Notmuch/0.11.1+206~g3b67774 (http://notmuchmail.org) Emacs/23.2.1 + (i486-pc-linux-gnu) +Date: Wed, 15 Feb 2012 20:24:27 +0000 +Message-ID: <8762f7etfo.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: quoted-printable +X-Sender-Host-Address: 94.192.233.223 +X-QM-SPAM-Info: Sender has good ham record. :) +X-QM-Body-MD5: 2ab3a7d21402b6fafb6f8e16a591476b (of first 20000 bytes) +X-SpamAssassin-Score: -1.8 +X-SpamAssassin-SpamBar: - +X-SpamAssassin-Report: The QM spam filters have analysed this message to + determine if it is + spam. We require at least 5.0 points to mark a message as spam. + This message scored -1.8 points. + Summary of the scoring: + * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, + * medium trust + * [138.37.6.40 listed in list.dnswl.org] + * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail + provider * (markwalters1009[at]gmail.com) + * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay + * domain + * 0.5 AWL AWL: From: address is in the auto white-list +X-QM-Scan-Virus: ClamAV says the message is clean +Cc: notmuch@notmuchmail.org +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: Wed, 15 Feb 2012 20:23:18 -0000 + + +On Wed, 15 Feb 2012 19:14:19 +0200, Tomi Ollila wrote: +> On Wed, 15 Feb 2012 09:23:31 -0700, Adam Wolfe Gordon wrote: +> > On Wed, Feb 15, 2012 at 08:52, Dmitry Kurochkin +> > wrote: +> > > Can we delay this patch until user-defined sections are pushed? =C2= +=A0I know +> > > I promised to review it long ago. =C2=A0But I still did not manage to= + finish +> > > it yet. =C2=A0I hope I can do it in the beginning of the next week. +> >=20 +> > Absolutely. I was just building new notmuch packages for myself this +> > morning and realized I had this commit sitting in my tree collecting +> > dust. +>=20 +> notmuch count is fast +> notmuch count --output=3Dthreads is slower +>=20 +> I was thinking why not show both? but as threads +> count is slow there could be customization variable +> for showing *optionally* thread count in addition=20 +> to message count like +>=20 +> "You have nn,nnn messages in n,nnn threads" + + +At the risk of reducing this to bikeshedding I would prefer an option to +disable the counts totally: even counting messages is annoyingly +slow. Maybe this will all be fixed by the user-defined sections patch +though. + +Best wishes + +Mark