Article View: news.software.readers
Article #243683Re: bug in /usr/share/slrn/contrib/cleanscore
From: Ignatios Souvatzis
Date: Fri, 10 Dec 2010 11:06
Date: Fri, 10 Dec 2010 11:06
25 lines
1959 bytes
1959 bytes
On 2010-11-29, Adam Funk <a24061@ducksburg.com> wrote: > 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 While I agree that this should be anchored at line start... what about the if (/Scores:/i) and the if (/\#EOF... and friends in the same loop? -is
Technical Details
Message-ID:
<slrnig42e6.pd.ignatios@einstein.cs.uni-bonn.de>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!news2.euro.net!news.unit0.net!news.uni-stuttgart.de!news.stw-bonn.de!not-for-mailReferences:
<p32ds7xrs5.ln2@news.ducksburg.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnig42e6.pd.ignatios@einstein.cs.uni-bonn.de> Subject: Re: bug in /usr/share/slrn/contrib/cleanscore Date: Fri, 10 Dec 2010 11:06:46 +0000 From: Ignatios Souvatzis <ignatios@einstein.cs.uni-bonn.de> References: <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!news2.euro.net!news.unit0.net!news.uni-stuttgart.de!news.stw-bonn.de!not-for-mail Newsgroups: news.software.readers Organization: StudNet Bonn Lines: 25 NNTP-Posting-Host: einstein.cs.uni-bonn.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news-a.stw-bonn.de 1291979206 4267 131.220.40.213 (10 Dec 2010 X-Complaints-To: abuse@stw-bonn.de NNTP-Posting-Date: Fri, 10 Dec 2010 11:06:46 +0000 (UTC) User-Agent: slrn/0.9.9p1 (SunOS) X-Original-Bytes: 1709