🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by David Canzi Sun, 27 Feb 2011 23:17
trn bug fix.
#244890
Author: David Canzi
Date: Sun, 27 Feb 2011 23:17
105 lines
4285 bytes
Well, *some* people are still using it.

Symptom of bug: new articles in newsgroup marked as unavailable.
Affected articles show up in article tree as "( )".  If you
exit trn and restart it, the affected articles are now visible
but marked as read.

The kill file line

/: 129\.97\.109\.26$/Hnntp-posting-host:j

Would cause trn to mark as unavailable the article *before* any
article without an nntp-posting-host header.  If article 1001
didn't have an nntp-posting-host header, then article 1000 was
marked unavailable.

The order of #include directives in a couple files needed to be
changed in order to compile.

diff -r -c old.trn-4.0-test76/datasrc.c trn-4.0-test76/datasrc.c
*** old.trn-4.0-test76/datasrc.c	Sun Feb 27 17:05:15 2011
--- trn-4.0-test76/datasrc.c	Thu Sep 16 01:08:03 2010
***************
*** 12,19 ****
  #include "nntpclient.h"
  #include "term.h"
  #include "env.h"
- #include "opt.h"
  #include "util.h"
  #include "util2.h"
  #include "intrp.h"
  #include "init.h"
--- 12,19 ----
  #include "nntpclient.h"
  #include "term.h"
  #include "env.h"
  #include "util.h"
+ #include "opt.h"
  #include "util2.h"
  #include "intrp.h"
  #include "init.h"
diff -r -c old.trn-4.0-test76/head.c trn-4.0-test76/head.c
*** old.trn-4.0-test76/head.c	Sun Feb 27 17:05:30 2011
--- trn-4.0-test76/head.c	Mon Sep 27 16:48:38 2010
***************
*** 525,534 ****
  		num = atol(line);
  		if (num < artnum || num > lastnum)
  		    continue;
- 		if (!(datasrc->flags & DF_XHDR_BROKEN)) {
- 		    while ((priornum = article_next(priornum)) < num)
- 			uncache_article(article_ptr(priornum),FALSE);
- 		}
  		ap = article_find(num);
  		if (which_line == SUBJ_LINE)
  		    set_subj_line(ap, t, strlen(t));
--- 525,530 ----
***************
*** 548,557 ****
  	    }
  	    s = fetchlines(artnum,which_line);
  	}
- 	if (hasxhdr && !(datasrc->flags & DF_XHDR_BROKEN)) {
- 	    for (priornum = article_first(priornum); priornum < lastnum; priornum = article_next(priornum))
- 		uncache_article(article_ptr(priornum),FALSE);
- 	}
  	if (copy)
  	    s = saferealloc(s, (MEM_SIZE)strlen(s)+1);
  	return s;
--- 544,549 ----
diff -r -c old.trn-4.0-test76/patchlevel.h trn-4.0-test76/patchlevel.h
*** old.trn-4.0-test76/patchlevel.h	Sun Feb 27 17:05:56 2011
--- trn-4.0-test76/patchlevel.h	Mon Sep 27 17:30:00 2010
***************
*** 1 ****
! #define PATCHLEVEL " 4.0-test76 (Apr 2, 2001)"
--- 1 ----
! #define PATCHLEVEL " 4.0-test76.0001 (Sep 27, 2010)"
diff -r -c old.trn-4.0-test76/rt-page.c trn-4.0-test76/rt-page.c
*** old.trn-4.0-test76/rt-page.c	Sun Feb 27 17:06:12 2011
--- trn-4.0-test76/rt-page.c	Thu Sep 16 01:09:39 2010
***************
*** 14,22 ****
  #include "datasrc.h"
  #include "nntp.h"
  #include "trn.h"
- #include "opt.h"
  #include "env.h"
  #include "util.h"
  #include "util2.h"
  #include "only.h"
  #include "addng.h"
--- 14,22 ----
  #include "datasrc.h"
  #include "nntp.h"
  #include "trn.h"
  #include "env.h"
  #include "util.h"
+ #include "opt.h"
  #include "util2.h"
  #include "only.h"
  #include "addng.h"

-- 
David Canzi		| Life is too short to point out every mistake. |
Re: trn bug fix.
#244901
Author: Eli the Bearded
Date: Tue, 01 Mar 2011 22:34
17 lines
1965 bytes
In news.software.readers, David Canzi <dmcanzi@remulak.uwaterloo.ca> wrote:
> Well, *some* people are still using it.

Indeed. Did you submit the changes to the developer list? I'm
pretty sure that's still around, although I only subscribe to
trn-users.

> Symptom of bug: new articles in newsgroup marked as unavailable.
> Affected articles show up in article tree as "( )".  If you
> exit trn and restart it, the affected articles are now visible
> but marked as read.

Ah, not a bug that concerns me. Oh well.

Elijah
------
has never killfiled based on posting host
Re: trn bug fix.
#244906
Author: David Canzi
Date: Wed, 02 Mar 2011 16:57
33 lines
2339 bytes
In article <eli$1103011732@qz.little-neck.ny.us>,
Eli the Bearded  <*@eli.users.panix.com> wrote:
>In news.software.readers, David Canzi <dmcanzi@remulak.uwaterloo.ca> wrote:
>> Well, *some* people are still using it.
>
>Indeed. Did you submit the changes to the developer list? I'm
>pretty sure that's still around, although I only subscribe to
>trn-users.
>
>> Symptom of bug: new articles in newsgroup marked as unavailable.
>> Affected articles show up in article tree as "( )".  If you
>> exit trn and restart it, the affected articles are now visible
>> but marked as read.
>
>Ah, not a bug that concerns me. Oh well.
>
>Elijah
>------
>has never killfiled based on posting host

The last time I had looked, the trn project at sourceforce had
been dead for around 8 years.  I look again and lo! there are
life signs.

If you use the H flag to specify any header that isn't always
present and your server supports XHDR, this bug will affect you.

Kill files aren't just for auto-ignoring pests.  I have lines in
my kill file that save copies of some articles I want to examine
later.  One of those used Hnntp-posting-host.

-- 
David Canzi		| Life is too short to point out every mistake. |
Re: trn bug fix.
#244907
Author: Eli the Bearded
Date: Wed, 02 Mar 2011 22:58
28 lines
2610 bytes
In news.software.readers, David Canzi <dmcanzi@remulak.uwaterloo.ca> wrote:
> The last time I had looked, the trn project at sourceforce had
> been dead for around 8 years.  I look again and lo! there are
> life signs.

Small signs, but yes.

> If you use the H flag to specify any header that isn't always
> present and your server supports XHDR, this bug will affect you.

I only use overview headers in killfiles. I can't be bothered to
wait that long for a killfile to run. And I don't have any kill
files that operate on anything besides From:, Subject:, and
Message-ID: right now.

> Kill files aren't just for auto-ignoring pests.  I have lines in
> my kill file that save copies of some articles I want to examine
> later.  One of those used Hnntp-posting-host.

I have never used killfiles to their full advantage, but I do know
that. Locally (ie, at my ISP), nntp-posting-host is an overview file
header, by popular request. (It's the sort of ISP that will modify
software and make non-standard configurations.) That probably changes
the code path through trn anyway.

Elijah
------
message-ID is often as good as nntp-posting-host
Re: trn bug fix.
#245048
Author: David Canzi
Date: Tue, 15 Mar 2011 19:20
43 lines
2915 bytes
In article <eli$1103021758@qz.little-neck.ny.us>,
Eli the Bearded  <*@eli.users.panix.com> wrote:
>In news.software.readers, David Canzi <dmcanzi@remulak.uwaterloo.ca> wrote:
>> The last time I had looked, the trn project at sourceforce had
>> been dead for around 8 years.  I look again and lo! there are
>> life signs.
>
>Small signs, but yes.
>
>> If you use the H flag to specify any header that isn't always
>> present and your server supports XHDR, this bug will affect you.
>
>I only use overview headers in killfiles. I can't be bothered to
>wait that long for a killfile to run. And I don't have any kill
>files that operate on anything besides From:, Subject:, and
>Message-ID: right now.
>
>> Kill files aren't just for auto-ignoring pests.  I have lines in
>> my kill file that save copies of some articles I want to examine
>> later.  One of those used Hnntp-posting-host.
>
>I have never used killfiles to their full advantage, but I do know
>that. Locally (ie, at my ISP), nntp-posting-host is an overview file
>header, by popular request. (It's the sort of ISP that will modify
>software and make non-standard configurations.) That probably changes
>the code path through trn anyway.

Very likely.

>Elijah
>------
>message-ID is often as good as nntp-posting-host

...and often not.

I would have had to register with sourceforge to report the bug
and its fix.  They *seemed* to allow me a way to avoid this, by
letting me log in using my Google ID and password, but once I had,
they still required me to fill out their nosy registration form.
I decided it wasn't worth it.

-- 
David Canzi		| Life is too short to point out every mistake. |
Re: trn bug fix.
#245097
Author: Adam H. Kerman
Date: Sat, 19 Mar 2011 06:56
10 lines
1940 bytes
David Canzi <dmcanzi@remulak.uwaterloo.ca> wrote:

>I would have had to register with sourceforge to report the bug
>and its fix.  They *seemed* to allow me a way to avoid this, by
>letting me log in using my Google ID and password, but once I had,
>they still required me to fill out their nosy registration form.
>I decided it wasn't worth it.

It's probably better to subscribe and report the solution through trn-workers
mailing list anyway. It could stand some on-topic discussion.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads