πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81957

Re: Keeping the history file "small" vs. expire/expireover programs.

#81957
From: D. Stussy
Date: Mon, 05 Oct 2009 20:37
47 lines
2780 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:hadcms$ng6$1@news.trigofacile.com...
> Hi D. Stussy,
>
> > Also noted:  While investigating this, I noted something unusual with
the
> > "news.daily" script.  Is there unnecessary repeated code present?
> >
> > Pertaining to running expireover after expire:  Lines 467-484 and lines
> > 487-504 seem to be unnecessary.  Can't they all be removed and simply
flow
> > through to their duplicates at lines 507-523?  The only line not
duplicated
> > in the last block is the "DOEXPIREOVER=false" line which causes the
future
> > instances to be skipped (as there are no future instances for the last
> > block).  ...Or did I miss something?
>
> I see that if doexpire is true and doexpireover, dogroupbaseexpiry are
false,
> we will not run "ctlinnd lowmark" with what you suggest (whereas it was
> the case before).
> But as "ctlinnd lowmark" is useless without the run of expireover,
> I believe we don't care.

I take it that by your patch [deleted from this reply], you agreed that the
script code was in fact duplicated.

Perhaps there should be a warning message into the expire log when
"noexpireover lowmark" is used, as lowmark requires expireover.  Something
like:

if [ -n "${LOWMARKFILE}" -a ${DOEXPIREOVER}!= true ] ; then
    echo "lowmark requires expireover" >> ${EXPLOG}
fi

after parameter checking (or optionally combined into the conditional about
line 211):

  test -n "${LOWMARKFILE}"  && {
      EXPIREOVERFLAGS="${EXPIREOVERFLAGS} -Z${LOWMARKFILE}"
+     if [ ${DOEXPIREOVER}!= true ] ; then
+        echo "lowmark requires expireover" >> ${EXPLOG}
+     fi
  }

Technical Details
Message-ID: <hadldi$toe$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border2.nntp.dca.giganews.com!nntp.giganews.com!news.snarked.org!not-for-mail
References: <hab4b5$4pu$1@snarked.org> <hadcms$ng6$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <hadldi$toe$1@snarked.org>
Subject: Re: Keeping the history file "small" vs. expire/expireover programs.
Date: Mon, 5 Oct 2009 13:37:06 -0700
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <hab4b5$4pu$1@snarked.org> <hadcms$ng6$1@news.trigofacile.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.20141118.mbox.gz!border2.nntp.dca.giganews.com!nntp.giganews.com!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 47
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-160-18-32.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1254775026 30478 71.160.18.32 (5 Oct 2009 20:37:06 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Mon, 5 Oct 2009 20:37:06 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1478