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: Sun, 26 Jan 2025 16:01:31 +0100

To: David Bremner

Cc: Notmuch

From: Jorenar


I'm so sorry. It's false alarm.
I had a bug in the post-new hook, and it was copying empty files. 
I've fixed that and they started appearing normally.

I do still have an issue with some messages not appearing, but 
upon deeper look, seems it's due to mailing list shenanigans.

I hadn't realized those were separate problems.
Sorry again for the false alarm.

Regards!
-- 
Jorenar

On 2025-01-25 15:52 CET, David Bremner <david@tethera.net> wrote:
> "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: