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>
Cc: notmuch@notmuchmail.org, pabs@debian.org
Subject: Re: Proof of concept for counting messages in thread
Date: Mon, 13 Feb 2023 18:03:32 +0100	[thread overview]
Message-ID: <CAA19uiQH4MjoUaCt_jp3L-WWQrXb2k5TjFmJGBOY9Y6bqaJEpw@mail.gmail.com> (raw)
In-Reply-To: <87lel1pluu.fsf@tethera.net>

Am Mo., 13. Feb. 2023 um 17:32 Uhr schrieb David Bremner <david@tethera.net>:
>
> Michael J Gruber <michaeljgruber+grubix+git@gmail.com> writes:
>
> > 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 :)
>
> Hmm. I don't see any strange matches for that particular query, just a
> thread that actually has 115 messages. But there could also be bugs of
> course.  Does xapin-check complain about your database?

It has 5, as confirmed by the search output and that of `notmuch
count`. But it is matched by `count 115`.
`xapian-check` is happy. (There used to be some issue with additional
thread entries at some point.)

Michael

  reply	other threads:[~2023-02-13 17:14 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 ` Proof of concept for counting messages in thread Michael J Gruber
2023-02-13 16:32   ` David Bremner
2023-02-13 17:03     ` Michael J Gruber [this message]
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=CAA19uiQH4MjoUaCt_jp3L-WWQrXb2k5TjFmJGBOY9Y6bqaJEpw@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).