🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21125

Re: Variable sized queues idea for diablo 1.12

#21125
From: Curt Welch
Date: Sun, 31 Aug 1997 00:00
61 lines
2493 bytes
dillon@best.net (Matt Dillon) wrote:
>     minsize is on the TODO for 1.12.  I'll think about adding min's for
>     other parameters.

I'd second that need for the other min's.  I just had a use for
a minpath.  I wanted to split a feed into two feeds based on
path lenght.

When used to split a feed like this, it's very important to
know exactly how the operators work.  i.e, are they <, <=, etc.
You don't want to accidently drop a subset of you feed by
getting that wrong (more of a problem with path then size).

I'd suggest you make min the equivilent of not max.  i.e.
if max is "reject if >", then min should be "reject if <=".
That way, to split a feed you use the same value as the
argument to the min and max parameters.  If you have to
use N and N-1 it increases the chance that you will get
it wrong (should the max be +1 or -1 the min value?).

And, since there's no news log file, it's hard to check to see
if your feed specifications are working correctly, so it's
important to make them as simple as possible to increase the
chance that the feed is actually doing what was intended.

Here's another thought.  How about a notgroupref?

label site-small
    groupref SITE
    groupref SMALL
end

label site-big
    groupref SITE
    notgroupref SMALL
end

groupdef SITE
    delgroup  *
    addgroup  whatever.*
end

groupdef SMALL
    maxsize  40k
end

The concept seems simple but is actually quite complex.  For
example, if a group contained an "addgroup comp.*" what would
it mean to use this in the notgroupref context?  Should it
be an addgroup <anything that's not comp.*>, or should it
act like a delgroup comp.*, or a delgroupany comp.*?

I've just thought about this for an hour and still don't
known how it would work.  Maybe it's just just too complex
to be a good idea?

Curt Welch
http://CurtWelch.Com/

Technical Details
Message-ID: <Pz5V$dE@NewsReader.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: <5tufsd$a9j$1@news.nuernberg.ecrc.net> <5tunen$t1h$1@earth.execpc.com> <5tv5nm$3ku$1@flea.best.net>

Show Full Headers
Complete Article Headers
Message-ID: <Pz5V$dE@NewsReader.Com>
Subject: Re: Variable sized queues idea for diablo 1.12
Date: Sun, 31 Aug 1997 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <5tufsd$a9j$1@news.nuernberg.ecrc.net> <5tunen$t1h$1@earth.execpc.com> <5tv5nm$3ku$1@flea.best.net>
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: 269144791
Organization: KCW Consulting
Newsgroups: news.software.nntp