🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.notes
Article #235

Will this get rid of lots of Orphaned Responses?

#235
From: Guy Harris
Date: Sun, 25 Aug 1985 05:30
64 lines
2931 bytes
*** bnewsinput.c.orig	Sat Aug 24 21:57:10 1985
--- bnewsinput.c	Sat Aug 24 22:03:34 1985
***************
*** 398,404
  		    copydate(&entered, &note.n_date);
  		    gettime(&whentime);		/* get current time */
  		    status = ORPHND + FRMNEWS;	/* combo there */
! 		    for (i = 0, p = "Orphaned Response"; (i < TITLEN) && *p; p++, i++)
  			note.ntitle[i] = *p;
  		    for (; i < TITLEN; i++) {
  			note.ntitle[i] = ' ';	 /* pad */

--- 398,418 -----
  		    copydate(&entered, &note.n_date);
  		    gettime(&whentime);		/* get current time */
  		    status = ORPHND + FRMNEWS;	/* combo there */
! 		    /*
! 		     * We already have a very good guess what the
! 		     * title of the base note was - the subject
! 		     * of the news article, with all leading "Re:"s
! 		     * stripped off.  Use that.
! 		     */
! 		    p = title;
! 		    if (!strncmp (p, "Re:", 3)) {  /* see if a "followup" */
! 			do {
! 			    p += 3;
! 			    while (*p == ' ')
! 				p++;			/* Skip Spaces */
! 			} while (!strncmp (p, "Re:", 3));   /* get all re's */
! 		    }
! 		    for (i = 0; (i < TITLEN) && *p; p++, i++)
  			note.ntitle[i] = *p;
  		    for (; i < TITLEN; i++) {
  			note.ntitle[i] = ' ';	 /* pad */
***************
*** 403,409
  		    for (; i < TITLEN; i++) {
  			note.ntitle[i] = ' ';	 /* pad */
  		    }
- 
  		    where.addr = 0;			/* no text */
  		    notenum = putnote(&io, &where, note.ntitle, status,
  			    &note, &note.n_auth, NOPOLICY, NOLOCKIT,

--- 417,422 -----
  		    for (; i < TITLEN; i++) {
  			note.ntitle[i] = ' ';	 /* pad */
  		    }
  		    where.addr = 0;			/* no text */
  		    notenum = putnote(&io, &where, note.ntitle, status,
  			    &note, &note.n_auth, NOPOLICY, NOLOCKIT,

C'mon, guys, you already had a good guess as to what the subject line of the
missing base note was; why not use it?  If you really want to let the reader
know that the base note is a placeholder, just look at the ORPHND flag and
put some funny flag out on the screen or something.

This still doesn't solve the problem of one "notes" site directly passing an
orphaned response to another "notes" site, but since "notes" still keeps one
subject per discussion rather than transmitting it with each note, and has
been using UUCP for a long time now, I presume that never happens or it
would have been changed...

	Guy Harris
Technical Details
Message-ID: <2704@sun.uucp>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!ucbvax!decvax!decwrl!sun!guy

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!ucbvax!decvax!decwrl!sun!guy
From: guy@sun.uucp (Guy Harris)
Newsgroups: net.notes
Subject: Will this get rid of lots of Orphaned Responses?
Message-ID: <2704@sun.uucp>
Date: Sun, 25-Aug-85 01:30:53 EDT
Article-I.D.: sun.2704
Posted: Sun Aug 25 01:30:53 1985
Date-Received: Tue, 27-Aug-85 01:19:54 EDT
Organization: Sun Microsystems, Inc.
Lines: 64