Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages

Gregor Zattler telegraph at gmx.net
Mon Jan 30 14:34:16 PST 2012


Hi Mark,
* Mark Walters <markwalters1009 at gmail.com> [30. Jan. 2012]:
> On Mon, 30 Jan 2012 20:04:25 +0100, Gregor Zattler <telegraph at gmx.net> wrote:
>> * Pieter Praet <pieter at praet.org> [30. Jan. 2012]:
>>> On Mon, 30 Jan 2012 00:42:14 +0100, Gregor Zattler <telegraph at gmx.net> wrote:
>>>> * Pieter Praet <pieter at praet.org> [26. Jan. 2012]:
>>>>> Here's another couple of threads squashed into a single one:
>>>>> - [O] [Use Question] Capture and long lines
>>>>>   - id:"BANLkTikoF4tXuNLLufRzNSD6k2ZYs7sUcg at mail.gmail.com"
>>>>> - [O] Worg update
>>>>>   - id:"m1wrfiz3ch.fsf at tsdye.com"
>>>>> - [O] Table formula to convert hex to dec
>>>>>   - id:"20110724080054.GB16388 at x201"
>>>>> - [O] ICS import?
>>>>>   - id:"20120125173421.GQ3747 at x201"
>>>>> 
>>>>> 
>>>>> AFAICT, none of them share Message-Id's...
>>>> 
>>>> Do you consider this a bug?
>>>> 
>>> 
>>> I do.  No idea what causes it or how to fix it though... :)
>> 
>> First I thougt it' not a severe bug since one see's more not less
>> messages in notmuch show buffer.  But later I realised one also
>> sees less not more threads in notmuch search buffer and might not
>> read certain notmuch threads because of "wrong" $Subject: in
>> notmuch search buffer.

> I think notmuch links two messages into the same thread if they have an
> in-reply-to or reference header in common: i.e the messages reference a
> common parent message.  (See comment in lib/database.cc "Even before a
> message is added, it's pre-allocated thread ID is useful so that all
> descendant messages that reference this common parent can be recognized
> as belonging to the same thread.")

So in case message a from thread A and message b from B would
name the same Message c in their In-Reoply-To:/References:
headers, while c is not (for some reason) in A or B, notmuch
would assume both threads linked?  Makes sense.
 
> As far as I can see your grep tests haven't checked for that. 

True.

> Also, could you email me the mbox you had (I think you said that it was
> a mailing list so all public) and I will take a look?

Sure, I do so off-list because of the size of the attachment.


Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-


More information about the notmuch mailing list