Re: [Bug] Querying by folder does not return message if has duplicates

Subject: Re: [Bug] Querying by folder does not return message if has duplicates

Date: Sat, 25 Jan 2025 10:52:31 -0400

To: Jorenar, Notmuch

Cc:

From: David Bremner


"Jorenar" <dev@jorenar.com> writes:

> Hello!
> I make copies of certain messages to separate Maildir, 
> but Notmuch ignores them until I completely wipe them 
> out from other locations too. In other words, queries:

Perhaps a silly question, but did you run "notmuch new" after copying
the messages?

> 	notmuch search --output=messages folder:archive/a
> 	notmuch search --output=messages path:archive/**
>
> do not return all messages from 'archive' dir.
>

Is the /a on folder:archive a typo? In any case the second should work,
modulo shell escaping.

> Tested with 0.38.3 and commit 969b2670 as well, 
> but seems older release also had this bug.

There are some related tests in test/T100-search-by-folder.sh,
but they don't use output=messages.

I tried to add tests to duplicate your problem but I did not succeed so
far. I will send the tests as a followup message.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: