Thread View: news.software.nn
5 messages
5 total messages
Started by Michael Rawdon
Wed, 06 Mar 1991 18:19
Error in Nn Chopping Up Digests
Author: Michael Rawdon
Date: Wed, 06 Mar 1991 18:19
Date: Wed, 06 Mar 1991 18:19
27 lines
1886 bytes
1886 bytes
I've noticed this a couple of times: When nn chops up a digest into many smaller news articles, if an entry in the digest has a form feed (^L) in it, nn assumes that it signals the end of an entry. Sometimes, the form feed is there for a reason (e.g., on rec.humor.funny, it hides the punchline to a joke), but it does NOT necessarily indicate the end of the entry. There is a halfhearted way to correct this - SOME of the time. When you go to read the NEXT article in the digest, type 'h' (to display the full header), and sometimes it will show what was after the form feed in the previous article. But not always. However, it seems to me that this is a bug in nn (we're using 6.4.12 - maybe it was corrected in 6.4.13?) which needs fixing. Or is there already a slick way to get around this? Anyway, a digest just arrived at our site on rec.humor.funny this morning, so those who receive that group may want to go check it out for themselves... -- Michael Rawdon rawdon@rex.cs.tulane.edu (Internet) Tulane University, New Orleans, Louisiana CS6FECU@TCSVM (Bitnet) "Communication is hard to establish when things like a state of mind get in the way. People don't eat, they just think what you feed them now; The horse with the blinders eating the hay." - Men Without Hats, "The Great Ones Remember"
Re: Error in Nn Chopping Up Digests
Author: Kevin J Martin
Date: Thu, 07 Mar 1991 05:29
Date: Thu, 07 Mar 1991 05:29
43 lines
2336 bytes
2336 bytes
rawdon@rex.cs.tulane.edu (Michael Rawdon) writes: >I've noticed this a couple of times: When nn chops up a digest into many >smaller news articles, if an entry in the digest has a form feed (^L) in >it, nn assumes that it signals the end of an entry. Sometimes, the form >feed is there for a reason (e.g., on rec.humor.funny, it hides the punchline >to a joke), but it does NOT necessarily indicate the end of the entry. >Anyway, a digest just arrived at our site on rec.humor.funny this morning, >so those who receive that group may want to go check it out for themselves... Thank God! I thought my sense of humour was dysfunctional or something; I couldn't find punchlines in half the jokes. That happened in a previous r.h.f digest as well... It seems like this could affect more serious items as well - perhaps a posted shar or text file which contained ^L for page breaks could not be accessible if it were in a digest. I hope it's not difficult to fix. And while I'm here, let me add my vote for the compressable Subject option - that is, listing something like: Newsgrouup: comp.sys.ibm.pc.hardware Articles: 441 of 45360/190 a Robert Collins 48 >Mixing 1M and 256K simms- Why not? b Salik Rafiq 20 [3] >TOSHIBA IDE HARDDRIVE INFO c Nur I Taib 33 [4] Mailorder Disks instead of: Newsgroup: comp.sys.ibm.pc.hardware Articles: 441 of 45360/190 a Robert Collins 48 >Mixing 1M and 256K simms- Why not? b Salik Rafiq 20 2>TOSHIBA IDE HARDDRIVE INFO c Stephen M. Smith 31 3> d Gabriel Wachob 4 > e Nur I Taib 33 2>Mailorder Disks f Ronald S Woan 20 3> g Kamal Z Zamli 32 3> h David Albert 16 4> for example. -- Kevin Martin sigma@rpi.edu
Re: Error in Nn Chopping Up Digests
Author: Paul Tomblin
Date: Fri, 08 Mar 1991 13:05
Date: Fri, 08 Mar 1991 13:05
12 lines
1352 bytes
1352 bytes
rawdon@rex.cs.tulane.edu (Michael Rawdon) writes:
>However, it seems to me that this is a bug in nn (we're using 6.4.12 - maybe
>it was corrected in 6.4.13?) which needs fixing. Or is there already a
>slick way to get around this?
It isn't fixed in 6.4.13, I'm afraid. (It also existed in 6.4.1)
--
Paul Tomblin, Department of Redundancy Department. ! My employer does
The Romanian Orphans Support Group needs your help, ! not stand by my
Ask me for details. ! opinions....
pt@geovision.gvc.com or {cognos,uunet}!geovision!pt ! Me neither.
Re: Error in Nn Chopping Up Digests
Author: Michael Rawdon
Date: Sat, 09 Mar 1991 22:52
Date: Sat, 09 Mar 1991 22:52
22 lines
1711 bytes
1711 bytes
In <1445@geovision.gvc.com> pt@geovision.gvc.com (Paul Tomblin) writes: >rawdon@rex.cs.tulane.edu (Michael Rawdon) writes: >>However, it seems to me that this is a bug in nn (we're using 6.4.12 - maybe >>it was corrected in 6.4.13?) which needs fixing. Or is there already a >>slick way to get around this? >It isn't fixed in 6.4.13, I'm afraid. (It also existed in 6.4.1) I talked with Kim Storm about it, and after he looked at one of the digests on rec.humor.funny that it messed up, he said it's because the moderator is creating the digests "wrong", i.e., in a format nn isn't designed to handle. I need to send him (the moderator) e-mail to let him know this... -- Michael Rawdon rawdon@rex.cs.tulane.edu (Internet) Tulane University, New Orleans, Louisiana CS6FECU@TCSVM (Bitnet) "Communication is hard to establish when things like a state of mind get in the way. People don't eat, they just think what you feed them now; The horse with the blinders eating the hay." - Men Without Hats, "The Great Ones Remember"
Re: Error in Nn Chopping Up Digests
Author: Kim F. Storm
Date: Fri, 22 Mar 1991 16:10
Date: Fri, 22 Mar 1991 16:10
91 lines
3299 bytes
3299 bytes
rawdon@rex.cs.tulane.edu (Michael Rawdon) writes:
>I talked with Kim Storm about it, and after he looked at one of the digests
>on rec.humor.funny that it messed up, he said it's because the moderator
>is creating the digests "wrong", i.e., in a format nn isn't designed to
>handle. I need to send him (the moderator) e-mail to let him know this...
I have produced a patch which is supposed to let nn handle the "broken"
r.h.f digests, and I would like some feedback on this patch to know if
it breaks on other digests or folders (I haven't seen any problems with
it, but you never can tell).
The patch also allows nn to split folders which does not have a
blank line to separate the body of one article from the header of the
next.
If somebody want to test this out, please do so. But be aware that it
is a preliminary patch which must be removed before you install the
next official patch. Line numbers may be a little off due to the
removal of other unrelated patches to digest.c:
*** LAST/digest.c Fri Oct 5 19:07:04 1990
--- digest.c Fri Mar 15 15:26:46 1991
***************
*** 258,263 ****
--- 261,267 ----
int line_type[BACKUP_LINES];
register int backup_index, backup_count;
int more_header_lines, end_or_asterisks, blanks;
+ int colon_lines;
char line[1024];
register char *cp;
char **dg_hdr_field();
***************
*** 274,279 ****
--- 278,284 ----
next_line:
more_header_lines = 0;
+ colon_lines = 0;
next_possible_header_line:
digest.dg_lines++;
***************
*** 390,399 ****
--- 395,420 ----
}
if (blanks)
+ goto next_possible_header_line;
+ /* must be able to handle continued lines in sub-digest headers...
goto next_line;
+ */
if (!dg_hdr_field(line, 0))
+ {
+ char *colon;
+ if (colon = strchr(line, ':')) {
+ for (cp = line; cp < colon; cp++)
+ if (!isascii(*cp) || isspace(*cp)) break;
+ if (cp == colon) {
+ TEST("COLON", 0, 0);
+ colon_lines++;
+ line_type[backup_index] = LN_HEADER;
+ }
+ }
+
goto next_possible_header_line;
+ }
TEST("HEADER", 0, 0);
***************
*** 405,412 ****
--- 426,436 ----
TEST("\nSearch for start of header\n", 0, 0);
+ colon_lines += more_header_lines;
for (;;) {
fseek(f, backup_p[backup_index], 0);
+ if (line_type[backup_index] == LN_HEADER)
+ if (--colon_lines <= 0) break;
--digest.dg_lines;
if (--backup_count == 0) break;
decrease_index();
--
Kim F. Storm <storm@texas.dk> No news is good news,
Texas Instruments A/S, Denmark but nn is better!
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