🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #6541

Re: patch for > flag for the newsfeeds file

#6541
From: Tom Fitzgerald
Date: Sat, 13 Apr 1996 00:00
37 lines
1884 bytes
carlos@mci.net (Carlos Castro) writes:

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

> + 	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;

No big deal, but if the article size is exactly the threshhold size,
then you'll feed it twice.  You may want to change the > to >=, or
adjust the newsfeeds entry to:

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

(Both of the ">" and "<" flags are counterintuitive, since they both
mean "greater/less than or equal to".)

-- 
Tom Fitzgerald   Thinking Machines Corp, Bedford MA, USA   A3FC3545C031E735
fitz@think.com   (617)276-0400 x4848                       3DE72FB31F6028D1

Technical Details
Message-ID: <FITZ.96Apr12233423@rog.think.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
References: <4km5tj$84a@news.internetmci.com>

Show Full Headers
Complete Article Headers
Message-ID: <FITZ.96Apr12233423@rog.think.com>
Subject: Re: patch for > flag for the newsfeeds file
Date: Sat, 13 Apr 1996 00:00:00 +0000
From: fitz@think.com (Tom Fitzgerald)
References: <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
X-Deja-AN: 147239490
Organization: Thinking Machines Corporation
Newsgroups: news.software.nntp