🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #243550

bug in /usr/share/slrn/contrib/cleanscore

#243550
From: Adam Funk
Date: Mon, 29 Nov 2010 16:48
25 lines
1681 bytes
I've found a bug in the cleanscore Perl program that comes with slrn;
basically, if a rule includes the string "Expires:" after the header
[1], the %this_entry values around line 250 are uninstantiated, so the
script wants to delete the stanza regardless of the date on the line
that begins with "Expires:".  AFAICT, the fix is as follows:


#v+
$ diff /usr/share/slrn/contrib/cleanscore bin/cleanscore
234c234
<       if (/Expires:/i)
---
>       if (/^Expires:/i)
#v-



[1] for example:
    Subject: How to insert Expires: header


-- 
And remember, while you're out there risking your life and limb
through shot and shell, we'll be in be in here thinking what a
sucker you are.                              [Rufus T. Firefly]
Technical Details
Message-ID: <p32ds7xrs5.ln2@news.ducksburg.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <p32ds7xrs5.ln2@news.ducksburg.com>
Subject: bug in /usr/share/slrn/contrib/cleanscore
Date: Mon, 29 Nov 2010 16:48:25 +0000
From: Adam Funk <a24061@ducksburg.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: $CABAL
Lines: 25
X-Trace: individual.net TArTRfOHvwEgJjniOt4UwA+3nL0nd4m6u0BgXmJ/D9Yaymmmfm
X-Orig-Path: news.ducksburg.com!not-for-mail
Cancel-Lock: sha1:y6vG0OH1aW4dXPqGLMcv8ug0qNI=
User-Agent: slrn/pre1.0.0-16/mm/ao (Ubuntu Intrepid)
X-Original-Bytes: 1494