pan: when "Show Matching Articles' Threads", messages with dangling References not shown
Submitted by Dominique Dumont
Assigned to pan..@..e.bugs
Link to original bug (#749188)
Description
Hello
A Debian user reported the following problem:
When "Show Matching Articles' Threads" is set, sometimes some articles (and their whole threads) are missing from the headers pane. Selecting "Show Matching Articles" (or "Show Matching Articles' subthreads") and then "Show Matching Articles' Threads" again sometimes help.
I've been able to reproduce it on specific articles. What was "special" about these articles is that they were in newsgroup A, but had references (in the References header) to articles in another newsgroup B.
In pan/data-impl/my-tree.cc (see attached patch for exact place), the assumption is made that, for each article N:
thread of N == thread of parent of N
This is true only if the parent of N is known! If the parent of N is not in the current newsgroup (or not in the downloaded headers), then "thread of parent of N" is empty, because "parent of N" does not exist.
The attached patch fixes this.
The patch is
Original Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568332
I'm going to apply this patch to Debian's version of Pan 0.139
All the best
Version: pre-1.0 betas