From: Daniel Kahn Gillmor
This test (T590-thread-breakage.sh) currently fails!
If you have a two-message thread where message "B" is in-reply-to "A",
notmuch rightly sees this as a single thread.
But if you:
* remove "A" from the message store
* run "notmuch new"
* add "A" back into the mes
This one-liner seems preferable to the complications of depending on
delve, getting the binary name right and parsing the output.
---
I wasn't sure where exactly you wanted to count ghosts, so here is
some example code to do the counting. Feel free to modify to suit your
purposes.
test/Makefile.
To fully complete the ghost-on-removal-when-shared-thread-exists
proposal, we need to clear all ghost messages when the last active
message is removed from a thread.
---
lib/message.cc | 20
1 file changed, 20 insertions(+)
diff --git a/lib/message.cc b/lib/message.cc
index f
There is no need to add a ghost message upon deletion if there are no
other active messages in the thread.
Also, if the message being deleted was a ghost already, we can just go
ahead and delete it.
---
lib/message.cc | 58 ++
1 file changed
ghost-on-removal the solution to T590-thread-breakage.sh that just
adds a ghost message after removing each message.
It leaks information about whether we've ever seen a given message id,
but it's a fairly simple implementation.
Note that _resolve_message_id_to_thread_id also introduces new
messa
This test (T590-thread-breakage.sh) currently fails!
If you have a two-message thread where message "B" is in-reply-to "A",
notmuch rightly sees this as a single thread.
But if you:
* remove "A" from the message store
* run "notmuch new"
* add "A" back into the message store
* re-run "notmuc
It can be useful to easily tell if a given message has a given term
associated with it.
---
lib/message.cc| 49 +
lib/notmuch-private.h | 13 +
2 files changed, 62 insertions(+)
diff --git a/lib/message.cc b/lib/message.cc
index
Publicly we are only exposing the non-ghost documents (of "type"
"mail"). But internally we might want to inspect the ghost messages
as well.
This changeset adds two new private interfaces to queries to recover
information about alternate document types.
---
lib/notmuch-private.h | 10 ++
One risk of fixes to the thread-breakage problem is that we could fail
to remove the search term indexes entirely. These additional subtests
should guard against that.
---
test/T590-thread-breakage.sh | 17 +
1 file changed, 17 insertions(+)
diff --git a/test/T590-thread-breakage
David Bremner writes:
> David Mazieres writes:
>
>> Is there any way to break an existing thread (so as to start over with a
>> smaller thread), or otherwise to tweak the threading rules so that a
>> particular References header gets ignored.
>
> Currently there is no way to do this, as threads
David Mazieres writes:
> Is there any way to break an existing thread (so as to start over with a
> smaller thread), or otherwise to tweak the threading rules so that a
> particular References header gets ignored.
Currently there is no way to do this, as threads are "stateless"
i.e. created on
11 matches
Mail list logo