[net.notes] Will this get rid of lots of Orphaned Responses?

guy@sun.uucp (Guy Harris) (08/25/85)

*** 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