On 25/04/2023, David Bremner wrote:
> I would be interested if it finds your problematic ghost message (and
> how long it takes).
Thanks! This is much quicker than a script that I wrote using quest and
xapian-delve (which took
minutes!)
Your code took 0.03 seconds to find 74 unreferenced
David Bremner writes:
> Al Haji-Ali writes:
>
>> So it does seem to be a lingering ghost message, but I am sure that there
>> are no messages in the database referring to this ID (except messages in
>> this current thread which have the ID in the message body).
>> I don't know why this
On 22/04/2023, David Bremner wrote:
> You need to give the appropriate term prefix. Q for message id,
> or XREPLYTO or XREFERENCE as in my last message.
My apologies. I misunderstood the syntax.
>> The first one is the draft. The second hit is the reason I thought the
>> only place left for
>
> As long as some message refers to that ID, notmuch will create a "ghost
> message", used for threading.
You can look for a specific ghost message with something like
$ quest -btype:T -b id:Q -d .local/share/notmuch/default/xapian \
"type:ghost and
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"
Thanks David for the script and the instruction. I am still not sure where
notmuch is getting the association between my 5 messages in the thread.
The attached pdf is the output of the script. As you can see the draft
"draft-m25y9oqhep@gmail.com" which contains the header
,
| From: Al
Al Haji-Ali writes:
> I changed the message, removed "B" from "References" and deleted the
> files of all old (and intermediate) drafts that have "B" in
> "References". But no matter what I do, I have "B" grouped with "D"
> and any other messages which I create with "In-Reply-To" being "A".
I am running into an issue where I created a draft (let call it "D") as a reply
to a message (let's call it "A") that I don't have in my database by setting
"In-Reply-To" in the draft to "A".
I accidentally left over a "References" field which contains the ID of another
message ("B"). This