🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
15 messages
15 total messages Started by Kristi Wachter Wed, 30 May 2001 04:16
2 probs: .newsrc too long and killfile ignored
#9774
Author: Kristi Wachter
Date: Wed, 30 May 2001 04:16
25 lines
1723 bytes
I'm using nn 6.5.6, and I have two recurring problems.

First, when I quit nn, I often get a message that says ".newsrc too
long". Although I've tried cleaning up my .newsrc, I mostly use nn to
read a very busy newsgroup (alt.religion.scientology), and the problem
reappears almost immediately after trying to shorten the .newsrc file.

Second, my kill file is often ignored. It sounds a lot like the problem
reported way back with - what was it, 6.5.0beta 3? I'll add someone by
name to my kill file, only to see messages from that person NOT
killfiled during a subsequent nn session.

Any suggestions on either problem?

Thank you!!!

Kristi

-- 
Kristi Wachter
the activist formerly known as "Jour" (until $cientology outed me)

I think $cientology is hurting people and breaking the law, and I want 
them to stop it. See http://www.scientology-lies.com for more.
Re: 2 probs: .newsrc too long and killfile ignored
#9777
Author: Michael T Pins
Date: Wed, 30 May 2001 06:28
38 lines
2494 bytes
Kristi Wachter <racer@racerrecords.com> writes:

>I'm using nn 6.5.6, and I have two recurring problems.

>First, when I quit nn, I often get a message that says ".newsrc too
>long". Although I've tried cleaning up my .newsrc, I mostly use nn to
>read a very busy newsgroup (alt.religion.scientology), and the problem
>reappears almost immediately after trying to shorten the .newsrc file.

The format of the .newsrc file looks like this:
news.software.b!
news.software.misc: 1-3312
news.software.nn: 1-11850,11853-11858,11860
news.software.nntp: 1-96788
news.software.readers: 1-97428

The numbers are the articles you have marked read.  nn will only write
lines up to 8k in length.  I suppose I could increase this.

>Second, my kill file is often ignored. It sounds a lot like the problem
>reported way back with - what was it, 6.5.0beta 3? I'll add someone by
>name to my kill file, only to see messages from that person NOT
>killfiled during a subsequent nn session.

Hmm, I haven't seen this problem in a few years.  I wonder if you're maxing
out a buffer somewhere.  I'll add it to the buglist.

>Any suggestions on either problem?

The former is now (as in moments ago) fixed in nn-6.6beta.
The latter will take more digging.

-- 
**************************************************************************
*     Michael T Pins                 |          mtpins@nndev.org         *
*     keeper of the nn sources       |          mtpins@visi.com          *
*     ftp://ftp.nndev.org/pub        |      #include <std.disclaimer>    *
Re: 2 probs: .newsrc too long and killfile ignored
#9778
Author: J. Porter Clark
Date: Wed, 30 May 2001 13:34
71 lines
4012 bytes
Michael T Pins <mtpins@nndev.org> writes:

>Kristi Wachter <racer@racerrecords.com> writes:

>>I'm using nn 6.5.6, and I have two recurring problems.

>>First, when I quit nn, I often get a message that says ".newsrc too
>>long". Although I've tried cleaning up my .newsrc, I mostly use nn to
>>read a very busy newsgroup (alt.religion.scientology), and the problem
>>reappears almost immediately after trying to shorten the .newsrc file.

>The format of the .newsrc file looks like this:
>news.software.b!
>news.software.misc: 1-3312
>news.software.nn: 1-11850,11853-11858,11860
>news.software.nntp: 1-96788
>news.software.readers: 1-97428

>The numbers are the articles you have marked read.  nn will only write
>lines up to 8k in length.  I suppose I could increase this.

The problem usually occurs--for me--when I try to subscribe to a
newsgroup I've never read before.  nn tries to write a long entry with
lots of "holes" in it, like 1-2,5-8,9-27,30-50, until it gets over the
line limit.  This could be a really long line!  It is often too long to
be edited with vi, too.

>>Second, my kill file is often ignored. It sounds a lot like the problem
>>reported way back with - what was it, 6.5.0beta 3? I'll add someone by
>>name to my kill file, only to see messages from that person NOT
>>killfiled during a subsequent nn session.

>Hmm, I haven't seen this problem in a few years.  I wonder if you're maxing
>out a buffer somewhere.  I'll add it to the buglist.

I've seen this.  Sometimes it seems to take an explicit ":compile" for
nn to make the killfile work.  Usually only happens after the killfile
has been added to.  But not every time!

While you're at it:

I have a patch to provide a save-headers-only function.  Comes in handy
for some things--like spam canceling, or saving articles under the
assumption that one might retrieve them later from an archive like
Google.  Might take a little effort to isolate said patch from a few
other local hacks.

I can't make nn-6.5.6 compile under RedHat Linux 7.1.  It seems to fail
mysteriously in the varargs stuff in term.c, which is weird, because
global.c, which has similar constructions, succeeds.  Complete error
messages upon request.

When uudecoding, nn shouldn't trust the file mode of the decoded
file--much.  It also needs to understand uudecoded filenames with
spaces in them, although if it converted the spaces to something else
(like "_"), I'd be just as happy.

In save.c, I can't understand why, in the array open_mode[], the third
entry is 0.  I think it ought to be FILL_NEWS_HEADER.

nn seems to want to ignore newsgroups with names that begin with a
number.  YMMV.

And, in the slrn/nn wars, anyone know of a newsreader, outside of nn,
that can do the equivalent of this?

  nn -mxXk -s/soldi it.

-- 
J. Porter Clark <jpc@suespammers.org>
Re: 2 probs: .newsrc too long and killfile ignored
#9779
Author: M. Buchenrieder
Date: Wed, 30 May 2001 15:07
32 lines
1948 bytes
jpc@suespammers.org (J. Porter Clark) writes:

[...]

>I have a patch to provide a save-headers-only function.  Comes in handy
>for some things--like spam canceling, or saving articles under the
>assumption that one might retrieve them later from an archive like
>Google.  Might take a little effort to isolate said patch from a few
>other local hacks.

I'd love to see that. At the moment, I have to manually delete
all the parts from the attached article.

>I can't make nn-6.5.6 compile under RedHat Linux 7.1.  

Works for me on SuSE 6.4, kernel 2.2.14 . 

>It seems to fail
>mysteriously in the varargs stuff in term.c, which is weird, because
>global.c, which has similar constructions, succeeds.  Complete error
>messages upon request.

[...]

Possibly a library problem, as SuSE 6.x does not use the glibc stuff.

Michael
-- 
Michael Buchenrieder * mibu@scrum.greenie.muc.de * http://www.muc.de/~mibu
          Lumber Cartel Unit #456 (TINLC) & Official Netscum
    Note: If you want me to send you email, don't munge your address.
Re: 2 probs: .newsrc too long and killfile ignored
#9780
Author: Michael T Pins
Date: Wed, 30 May 2001 18:59
82 lines
4588 bytes
jpc@suespammers.org (J. Porter Clark) writes:

>Michael T Pins <mtpins@nndev.org> writes:

>>Kristi Wachter <racer@racerrecords.com> writes:

>>>I'm using nn 6.5.6, and I have two recurring problems.

>>>First, when I quit nn, I often get a message that says ".newsrc too
>>>long". Although I've tried cleaning up my .newsrc, I mostly use nn to
>>>read a very busy newsgroup (alt.religion.scientology), and the problem
>>>reappears almost immediately after trying to shorten the .newsrc file.

>>The format of the .newsrc file looks like this:
>>news.software.b!
>>news.software.misc: 1-3312
>>news.software.nn: 1-11850,11853-11858,11860
>>news.software.nntp: 1-96788
>>news.software.readers: 1-97428

>>The numbers are the articles you have marked read.  nn will only write
>>lines up to 8k in length.  I suppose I could increase this.

>The problem usually occurs--for me--when I try to subscribe to a
>newsgroup I've never read before.  nn tries to write a long entry with
>lots of "holes" in it, like 1-2,5-8,9-27,30-50, until it gets over the
>line limit.  This could be a really long line!  It is often too long to
>be edited with vi, too.

Note that the format of the .newsrc file isn't an nn thing.  The .newsrc
file has a standard format that nearly all newsreaders use.  The only thing
that's a bug is nn's refusal to write a line longer than 8k in length to
it, which has now been fixed.

As for vi, that's a known limitation in vi, it won't deal with lines
longer than 1k in length.  Install nvi and use it instead.

>>>Second, my kill file is often ignored. It sounds a lot like the problem
>>>reported way back with - what was it, 6.5.0beta 3? I'll add someone by
>>>name to my kill file, only to see messages from that person NOT
>>>killfiled during a subsequent nn session.

>>Hmm, I haven't seen this problem in a few years.  I wonder if you're maxing
>>out a buffer somewhere.  I'll add it to the buglist.

>I've seen this.  Sometimes it seems to take an explicit ":compile" for
>nn to make the killfile work.  Usually only happens after the killfile
>has been added to.  But not every time!

Bizzare.  Thanks for the info.

>While you're at it:

>I have a patch to provide a save-headers-only function.  Comes in handy
>for some things--like spam canceling, or saving articles under the
>assumption that one might retrieve them later from an archive like
>Google.  Might take a little effort to isolate said patch from a few
>other local hacks.

Feel free to email it to me.

>I can't make nn-6.5.6 compile under RedHat Linux 7.1.  It seems to fail
>mysteriously in the varargs stuff in term.c, which is weird, because
>global.c, which has similar constructions, succeeds.  Complete error
>messages upon request.

Ditto, although supporting the ever-changing linux (and Redhat in
particular) tends to be low on the priority list.

>In save.c, I can't understand why, in the array open_mode[], the third
>entry is 0.  I think it ought to be FILL_NEWS_HEADER.

It appears to have been this way since at least nn-6.4.19 (which is the
oldest version of the source sitting on this machine).  I can't say why
without digging through the code.

-- 
**************************************************************************
*     Michael T Pins                 |          mtpins@nndev.org         *
*     keeper of the nn sources       |          mtpins@visi.com          *
*     ftp://ftp.nndev.org/pub        |      #include <std.disclaimer>    *
slrn/nn wars?
#9788
Author: J.B. Nicholson-Owens
Date: Wed, 30 May 2001 20:09
12 lines
1231 bytes
J. Porter Clark wrote:
> And, in the slrn/nn wars [...]

I wasn't aware there was such a thing.

> [...] anyone know of a newsreader, outside of nn, that can do the
> equivalent of this?
> 
>   nn -mxXk -s/soldi it.

slrn doesn't have virtual groups right now but I'll bet Gnus can do it.
Re: slrn/nn wars?
#9787
Author: those who know me have no need o...
Date: Thu, 31 May 2001 20:00
15 lines
1192 bytes
<slrn9hakpu.1to.jbn@forestfield.org> divulged:
>J. Porter Clark wrote:

>> [...] anyone know of a newsreader, outside of nn, that can do the
>> equivalent of this?
>> 
>>   nn -mxXk -s/soldi it.
>
>slrn doesn't have virtual groups right now but I'll bet Gnus can do it.

yes, using the nnkiboze backend.

-- 
okay, have a sig then
Re: 2 probs: .newsrc too long and killfile ignored
#9781
Author: Dave Olson
Date: Thu, 31 May 2001 20:25
19 lines
1857 bytes
Kristi Wachter <racer@racerrecords.com> writes:

| I'm using nn 6.5.6, and I have two recurring problems.
| 
| First, when I quit nn, I often get a message that says ".newsrc too
| long". Although I've tried cleaning up my .newsrc, I mostly use nn to
| read a very busy newsgroup (alt.religion.scientology), and the problem
| reappears almost immediately after trying to shorten the .newsrc file.

Other than bumping up the line length limit, which I see Michael has done
(yet again!), another workaround is to do a catchup on the group
as soon as you subscribe.  It's an unusual news server that
will keep such a detailed list of what is and isn't present that the
line gets that long in the first place...

Dave Olson
olson@bengaltech.com
http://www.bengaltech.com/public/dave
Re: 2 probs: .newsrc too long and killfile ignored
#9783
Author: Dave Olson
Date: Thu, 31 May 2001 20:27
18 lines
1846 bytes
jpc@suespammers.org (J. Porter Clark) writes:
| I can't make nn-6.5.6 compile under RedHat Linux 7.1.  It seems to fail
| mysteriously in the varargs stuff in term.c, which is weird, because
| global.c, which has similar constructions, succeeds.  Complete error
| messages upon request.

Using stdarg instead is a better idea anyway.  I made all the changes
to support that a while back, and Michael may have pulled them into
6.6 beta; I'm not sure.  The version of 6.5.6 on my website certainly
has it, if you want to try that (see signature).

	13:28 redtail13 e STDARG conf/*
	conf/s-linux.h:#define HAVE_STDARG  1

Dave Olson
olson@bengaltech.com
http://www.bengaltech.com/public/dave
Re: 2 probs: .newsrc too long and killfile ignored
#9785
Author: Natural Born Cereal Killer
Date: Sun, 03 Jun 2001 06:57
28 lines
2278 bytes
Dave Olson <olson@redtail.bengaltech.com> writes:

>Other than bumping up the line length limit, which I see Michael has done
>(yet again!), another workaround is to do a catchup on the group
>as soon as you subscribe.

	That works initially, but on heavy-traffic groups that solution
won't last much more than a few days.

>  It's an unusual news server that
>will keep such a detailed list of what is and isn't present that the
>line gets that long in the first place...

	Use talk.politics.guns as your test group and you'll quickly
see the problem.

	Given the incredible line lengths that these groups are going
to get and, of course, the limitations of various editing tools for
cleaning it up, I wonder if it would be worth keeping the line length
at x characters and using a semi-colon to denote the continuation
on a new line?  That might introduce new problems, however.

--
* Dan Sorenson  DoD #1066  ASSHOLE #35  BOTY 1997  viking@svtv.com  *
* Vikings?  There ain't no vikings here.  Just us honest farmers.   *
* The town was burning, the villagers were dead.  They didn't need  *
* those sheep anyway.  That's our story and we're sticking to it.   *
Re: 2 probs: .newsrc too long and killfile ignored
#9786
Author: those who know me have no need o...
Date: Mon, 04 Jun 2001 01:16
14 lines
1344 bytes
<olson.991340711@redtail.bengaltech.com> divulged:

>It's an unusual news server that will keep such a detailed list of
>what is and isn't present that the line gets that long in the first
>place...

huh?  all news servers keep a detailed list of what articles it has, and
in any group that has a lot of articles the client stands a good chance
of having not read a great many of them thereby requiring a very long
newsrc line to track what hasn't yet been seen.

-- 
okay, have a sig then
Re: 2 probs: .newsrc too long and killfile ignored
#9789
Author: those who know me have no need o...
Date: Mon, 04 Jun 2001 01:26
24 lines
1652 bytes
<9fcn4v$571$1@news1.btigate.com> divulged:

>That works initially, but on heavy-traffic groups that solution
>won't last much more than a few days.

the alternative is to use dynamic allocation.

>Given the incredible line lengths that these groups are going
>to get and, of course, the limitations of various editing tools for
>cleaning it up, 

nntidy would still be able to work with it, since it would share the
code with nn, as can newer vi clones (e.g., nvi, vim and vile) and other
common editors (e.g., emacs).

>I wonder if it would be worth keeping the line length
>at x characters and using a semi-colon to denote the continuation
>on a new line?  That might introduce new problems, however.

it certainly would, since then the newsrc wouldn't be standard.

-- 
okay, have a sig then
Re: 2 probs: .newsrc too long and killfile ignored
#9790
Author: Natural Born Cereal Killer
Date: Mon, 04 Jun 2001 05:19
26 lines
2364 bytes
not-a-real-address@usa.net (those who know me have no need of my name) writes:

>>I wonder if it would be worth keeping the line length
>>at x characters and using a semi-colon to denote the continuation
>>on a new line?  That might introduce new problems, however.

>it certainly would, since then the newsrc wouldn't be standard.

	I don't see that as any major setback in an environment
where each user has their own newsrc.  Add a line to your nn.init
along the lines of AllowNewsrcLineContinuation=T and use the
nonstandard format.  The default would be to use the standard
format.  It's still a cludge and there must be a better solution,
particularly because no matter the newsrc format you're still
going to have to allocate memory for the entire article list,
and all we're doing here is adding more complexity to the list.

	I think I'd rather have the error than the problems
associated with the fix, given a worst-case scenario.

--
* Dan Sorenson  DoD #1066  ASSHOLE #35  BOTY 1997  viking@svtv.com  *
* Vikings?  There ain't no vikings here.  Just us honest farmers.   *
* The town was burning, the villagers were dead.  They didn't need  *
* those sheep anyway.  That's our story and we're sticking to it.   *
Re: 2 probs: .newsrc too long and killfile ignored
#9791
Author: those who know me have no need o...
Date: Mon, 04 Jun 2001 12:12
21 lines
1559 bytes
<9ff5or$dfd$1@news1.btigate.com> divulged:
>not-a-real-address@usa.net (those who know me have no need of my name) writes:
>
>>>I wonder if it would be worth keeping the line length
>>>at x characters and using a semi-colon to denote the continuation
>>>on a new line?  That might introduce new problems, however.
>
>>it certainly would, since then the newsrc wouldn't be standard.
>
>	I don't see that as any major setback in an environment
>where each user has their own newsrc.  

i do, since i use tools besides nn.

>there must be a better solution,

there is (at least one): dynamic storage allocation.

-- 
okay, have a sig then
Re: 2 probs: .newsrc too long and killfile ignored
#9792
Author: Dave Olson
Date: Mon, 04 Jun 2001 16:09
38 lines
2994 bytes
not-a-real-address@usa.net (those who know me have no need of my name) writes:

| <olson.991340711@redtail.bengaltech.com> divulged:
| 
| >It's an unusual news server that will keep such a detailed list of
| >what is and isn't present that the line gets that long in the first
| >place...
| 
| huh?  all news servers keep a detailed list of what articles it has, and
| in any group that has a lot of articles the client stands a good chance
| of having not read a great many of them thereby requiring a very long
| newsrc line to track what hasn't yet been seen.

You miss my point.  It's the number of *gaps* in the article list
that's the problem.  To have a line > 8KB, with an average article
ID of 7 chars, means about 500 gaps.  That's a lot, even in groups
with lots of articles.  It happens, sure, but far more common is a
few tens of gaps.  Of course, the other thing that causes gaps is
selective reading, but the same thing is true there.

Just increasing the line length in the .newsrc will also break
some other newsreaders, so there is no simple fix for this problem.
Moving to a secondary file for very long lines still breaks other
newsreaders, but probably only to the extent of the other newsreaders
(now all of them...) thinking the group is up to date, or completely
unread, depending on the implementation.

That said, I don't use other newsreaders, and have RC_LINE_MAX
at 32K.  Probably the right answer is to make it default to
something like 4K, set it as a user variable, and issue a message
when it's exceeded.  Might as well have another option that says
whether to auto-consolidate (start or end of line) to shorten the line
to "reasonable" lengths (the current length setting - 100 chars, say).

Dave Olson
olson@bengaltech.com
http://www.bengaltech.com/public/dave
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