[-- Attachment #1: Type: text/plain, Size: 591 bytes --]
Ico Doornekamp <notmuch@zevv.nl> writes:
>
> I tried to remove the "References" and "In-Reply-To" headers of the
> offending mail, and reindex the thread. This seems not enough to
> convince notmuch that these mails are no longer related, because the
> original and separated thread still end up with the same thread ID.
>
I would expect that to work in general.
One possibility is there are duplicate files for the message.
I'm reminded that I meant to distribute the attached script somewhere
(either in notmuch or in mailscripts). Perhaps you can run it before and
after your edits.
[-- Attachment #2: draw-thread --]
[-- Type: application/octet-stream, Size: 912 bytes --]
#!/bin/bash
# This script can be used like
# NOTMUCH_CONFIG=test/tmp.T580-thread-search/notmuch-config \
# devel/draw-thread thread:0000000000000002 | dot -Tpdf > thread2.pdf
# In addition to notmuch, you will need the following tools installed
# - graphviz
# - formail (part of procmail)
threadid=$1
declare -a edges
declare -a dest
echo "digraph \"$threadid\" {"
for messageid in $(notmuch search --output=messages $threadid); do
echo "subgraph \"cluster_$messageid\" {"
printf "\"%s\" [shape=folder];\n" ${messageid#id:}
for file in $(notmuch search --output=files $messageid); do
node=$(basename $file)
printf "\"%s\" [shape=note];\n" $node
mapfile -t dest < <(formail -x references < $file | tr '<>,' '"" ')
edge="\"$node\" -> { ${dest[*]} }"
edges+=($edge)
done
echo "}"
done
for edge in "${edges[*]}"; do
echo $edge
done
echo "}"
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]