🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #6504

patch for > flag for the newsfeeds file

#6504
From: Carlos Castro
Date: Fri, 12 Apr 1996 00:00
92 lines
3342 bytes
Good day,

  I have been getting complaints from many of my customers saying that
they are not getting all their articles.  After tracing the nntplinks
and innxmits to their sites, I noticed that most articles move quite 
nicely, but the large ones can take upto a minute to transmit.  

  I then decided to open up 2 channels to each down-stream site one
for articles greater than 5KB, and one for articles of size less than
5KB.  Looking at the man page for newsfeeds, I was only able to find
the less than part of what I want to try, so I added a few lines to
the source, and did some minor testing and everything is going well.

  I plan on using one of my customers to test this out.  Basically
I will change his newsfeeds file entry from

site/exclude\
	:*,!imci.*,clari.*\
	:Tc,Wnm,S5000:/opt/news/bin/nntplink -q fqdn

To 

site/exclude\
        :*,!imci.*,clari.*\     
        :Tc,Wnm,S5000,<5000:/opt/news/bin/nntplink -q fqdn

SITE/exclude\
        :*,!imci.*,clari.*\     
        :Tc,Wnm,S5000,>5000:/opt/news/bin/nntplink -q fqdN

  I made this patch using INN1.4unoff2 and then patched INN1.4unoff3.
It seems to work fine on unoff2 and unoff3.  I suspect it will work
fine against unoff4 aswell.  

  Here is the patch:


diff -c innd.old/art.c innd/art.c
*** innd.old/art.c	Mon Aug  7 13:42:24 1995
--- innd/art.c	Fri Apr 12 11:41:59 1996
***************
*** 1536,1541 ****
--- 1536,1545 ----
  	if (sp->Master != NOSITE && Sites[sp->Master].Seenit)
  	    continue;
  
+ 	if (sp->MinSize && sp->MinSize > Data->SizeValue)
+ 	    /* Too small for the site. */
+ 	    continue;
+ 
  	if (sp->MaxSize && sp->MaxSize < Data->SizeValue)
  	    /* Too big for the site. */
  	    continue;
diff -c innd.old/innd.h innd/innd.h
*** innd.old/innd.h	Fri Apr 12 11:35:41 1996
--- innd/innd.h	Fri Apr 12 11:40:59 1996
***************
*** 216,221 ****
--- 216,222 ----
      char		*Param;
      char		FileFlags[FEED_MAXFLAGS + 1];
      long		MaxSize;
+     long		MinSize;
      CHANNEL		*Channel;
      BOOL		IsMaster;
      int			Master;
diff -c innd.old/newsfeeds.c innd/newsfeeds.c
*** innd.old/newsfeeds.c	Fri Jul  7 18:01:25 1995
--- innd/newsfeeds.c	Fri Apr 12 11:42:27 1996
***************
*** 221,226 ****
--- 221,230 ----
  	    return "unknown field 3 flag";
  	case '\0':
  	    break;
+ 	case '>':
+ 	    if (*++p && CTYPE(isdigit, *p))
+ 		sp->MinSize = atol(p);
+ 	    break;
  	case '<':
  	    if (*++p && CTYPE(isdigit, *p))
  		sp->MaxSize = atol(p);
-- 
-----
Quigley's Law:
	Whoever has any authority over you, no matter how small, will
	atttempt to use it.
----------------------| News Administrator internetMCI
J. Carlos Castro      | carlos@mci.net


Technical Details
Message-ID: <4km5tj$84a@news.internetmci.com>
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: <4km5tj$84a@news.internetmci.com>
Subject: patch for > flag for the newsfeeds file
Date: Fri, 12 Apr 1996 00:00:00 +0000
From: carlos@mci.net (Carlos Castro)
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: 147158573
Organization: InternetMCI Server Operations
Cc: barr@math.psu.edu,jcastro@erols.com,brads@access.digex.net
Newsgroups: news.software.nntp