[PATCH] emacs: Add the option of counting threads in notmuch-hello

Jani Nikula jani at nikula.org
Wed Feb 15 12:58:08 PST 2012


On Wed, 15 Feb 2012 19:14:19 +0200, Tomi Ollila <tomi.ollila at iki.fi> wrote:
> On Wed, 15 Feb 2012 09:23:31 -0700, Adam Wolfe Gordon <awg+notmuch at xvx.ca> wrote:
> > On Wed, Feb 15, 2012 at 08:52, Dmitry Kurochkin
> > <dmitry.kurochkin at gmail.com> wrote:
> > > Can we delay this patch until user-defined sections are pushed?  I know
> > > I promised to review it long ago.  But I still did not manage to finish
> > > it yet.  I hope I can do it in the beginning of the next week.
> > 
> > Absolutely. I was just building new notmuch packages for myself this
> > morning and realized I had this commit sitting in my tree collecting
> > dust.
> 
> notmuch count is fast
> notmuch count --output=threads  is slower

Yup, it's because you can't query Xapian about threads. Compare
notmuch_query_count_{messages,threads} in lib/query.cc for details.

> 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 
> to message count like
> 
> "You have nn,nnn messages in n,nnn threads"
> 
> Tomi
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch


More information about the notmuch mailing list