Re: Correcting message references

Subject: Re: Correcting message references

Date: Sat, 22 Apr 2023 13:37:41 -0300

To: Al Haji-Ali,


From: David Bremner

Al Haji-Ali <> writes:

> is completely unconnected the other 4 messages in the thread. Note
> that if I change the "In-Reply-To" field in this message to anything
> else, notmuch no longer groups these 5 messages into a single thread.

Yes, that's puzzling. I did not think about "ghost messages" (see below)
when writing that script, so maybe that's the issue. 

> I tried searching for "" using `xapian-delve` but got
> ,----
> | term '' not in database
> `----

You need to give the appropriate term prefix. Q for message id,
or XREPLYTO or XREFERENCE as in my last message.

> The first one is the draft. The second hit is the reason I thought the
> only place left for notmuch to associate these messages is in the
> xapian database. Note that if I delete the draft and reindex, only the
> hit stubbornly remains and there seems to be no way to
> make notmuch forget about this ID.

As long as some message refers to that ID, notmuch will create a "ghost
message", used for threading.
notmuch mailing list --
To unsubscribe send an email to