unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Michael J Gruber <michaeljgruber+grubix+git@gmail.com>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Cc: pabs@debian.org
Subject: Re: Proof of concept for counting messages in thread
Date: Mon, 13 Feb 2023 16:39:42 +0100	[thread overview]
Message-ID: <CAA19uiQH_900T5xPXXw00hA1+JzFg06u1PjQAMo4nXbbNQC1SA@mail.gmail.com> (raw)
In-Reply-To: <20230213122631.2088558-1-david@tethera.net>

Am Mo., 13. Feb. 2023 um 13:26 Uhr schrieb David Bremner <david@tethera.net>:
>
> So for this only supports counting messages in threads, and the sexp
> based query parser. It seems useful to expand it to other fields
> (from, e.g.). I'm not sure how motivated I am to shim this into the
> infix query parser, but we will see how it goes.

This certainly looks interesting, and not easy to get by scripting
around the existing commands. It is kinda special, so having it in
sexp only seems okay.

I am getting a few surprising matches, e.g.
```
notmuch search  --query=sexp '(thread (count 115)))'
thread:0000000000021229   2021-05-17 [5/5] Michael J Gruber ... redacted
notmuch count --exclude=false thread:0000000000021229
5
```
It could be some database issues, of course. Or me misunderstanding something :)

Patch 1/2 is crlf garbled, by the way. Applies cleanly after removing
the extra ^Ms.

Michael

  parent reply	other threads:[~2023-02-13 15:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-13 12:26 Proof of concept for counting messages in thread David Bremner
2023-02-13 12:26 ` [PATCH 1/2] WIP/lib: add count query backend David Bremner
2023-02-13 12:26 ` [PATCH 2/2] WIP: support thread count queries David Bremner
2023-02-13 15:39 ` Michael J Gruber [this message]
2023-02-13 16:32   ` Proof of concept for counting messages in thread David Bremner
2023-02-13 17:03     ` Michael J Gruber
2023-02-13 20:23       ` David Bremner
2023-02-13 22:36         ` Michael J Gruber
2023-02-14  1:47           ` David Bremner
2023-02-18 17:47             ` Michael J Gruber
2023-02-19 13:04               ` David Bremner
2023-02-19 13:56                 ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAA19uiQH_900T5xPXXw00hA1+JzFg06u1PjQAMo4nXbbNQC1SA@mail.gmail.com \
    --to=michaeljgruber+grubix+git@gmail.com \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    --cc=pabs@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).