🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8723

recoverying dropped overview entry

#8723
From: Katsuhiro Kondou
Date: Sun, 23 Jun 1996 00:00
45 lines
1948 bytes
Overveiw entries are sometimes dropped when the channels are flushed
in some environment(especially with streaming). ``expireover -a -s''
can recover the dropped entries, but a header which has multiple lines
is not recovered with this. I wrote the patch to handle multiple
lines. Here is one(diff from unoff4). Any comments will be welcome.

*** expireover.c.org	Tue Aug  8 02:43:08 1995
--- expireover.c	Sun Jun 23 18:16:24 1996
***************
*** 407,412 ****
--- 407,413 ----
      static BUFFER		B;
      register ARTOVERFIELD	*fp;
      register ARTOVERFIELD	*hp;
+     register ARTOVERFIELD	*lasthp;
      register QIOSTATE		*qp;
      register char		*colon;
      register char		*line;
***************
*** 480,485 ****
--- 481,498 ----
  		if (*p == '\t' || *p == '\n' || *p == '\r')
  		    *p = ' ';
  	    hp->HasHeader = TRUE;
+ 	    lasthp = hp;
+ 	}
+ 	if (ISWHITE(*line)) {
+ 	    register int oldsize = lasthp->Length;
+ 	    size = strlen(line);
+ 	    lasthp->Length += size + 1;
+ 	    RENEW(lasthp->Header, char, lasthp->Length + 1);
+ 	    for (p = line; *p; p++)
+ 		if (*p == '\t' || *p == '\n' || *p == '\r')
+ 		    *p = ' ';
+ 	    strcat(lasthp->Header, " ");
+ 	    strcat(lasthp->Header, line);
  	}
      }
  
-- 
Katsuhiro Kondou
NEC Corporation, Tokyo JAPAN

Technical Details
Message-ID: <4qj3nq$o5p@news.uxd.fc.nec.co.jp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <4qj3nq$o5p@news.uxd.fc.nec.co.jp>
Subject: recoverying dropped overview entry
Date: Sun, 23 Jun 1996 00:00:00 +0000
From: kondou@uxd.fc.nec.co.jp (Katsuhiro Kondou)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 162012770
Organization: NEC Corporation Tokyo Japan
Content-type: text/plain; charset=US-ASCII
Mime-version: 1.0
Reply-to: kondou@uxd.fc.nec.co.jp
Newsgroups: news.software.nntp