Re: list.c/what are its operating parameters?/is it broken?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Thanks, Bill.  Some very useful info there.

So, it appears that trn was told that the group had a low-article of 701
(presumably by the result of the GROUP command), but the LISTGROUP
command returned an article 700.  I'd be interested in knowing if this
is a consistent off-by-one error in that news server software, or if the
error can vary from group to group (i.e. is it ever greater than 1?).

One solution is to tell trn to just ignore numbers that are too low.
(Patch appended.)  Whether this is the best solution depends on the
details of the underlying problem with your news server.  The other
alternative would be to use this spot in the code to lower the absfirst
value and tweak the article_list object.


---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: bits.c
--- bits.c	25 May 2000 05:11:41 -0000	1.1
+++ bits.c	27 Sep 2002 00:48:14 -0000
@@ -285,6 +285,8 @@
 		if (nntp_at_list_end(ser_line))
 		an = (ART_NUM)atol(ser_line);
+		if (an < absfirst)
+		    continue;	/* Ignore some wacked-out NNTP servers */
 		ap = article_ptr(an);
 		if (!(ap->flags2 & AF2_BOGUS))
 		    ap->flags |= AF_EXISTS;
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---

This email is sponsored by:ThinkGeek
Welcome to geek heaven.

[Index of Archives]     [Photo]     [Yosemite]     [Epson Inkjet]     [Mhonarc]     [Nntpcache]

  Powered by Linux