Article View: news.software.readers
Article #243682Re: bug in /usr/share/slrn/contrib/cleanscore
From: Ignatios Souvatzis
Date: Fri, 10 Dec 2010 11:35
Date: Fri, 10 Dec 2010 11:35
35 lines
2406 bytes
2406 bytes
Ignatios Souvatzis wrote: > 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? Actually, /^Expires is wrong. According to scores.txt, whitespace is allowed before the keywords. I'd suggest something like if (/^[ ]*Expires:/i) (that is: [ space tab ] ), but have to check whether slang regular expressions use that syntax. -is -- seal your e-mail: http://www.gnupg.org/
Technical Details
Message-ID:
<slrnig443f.bhi.u502sou@marie.beverly.kleinbus.org>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!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder4.news.weretis.net!news.wtal.de!news.tal.de!beverly.kleinbus.org!not-for-mailReferences:
<p32ds7xrs5.ln2@news.ducksburg.com> <slrnig42e6.pd.ignatios@einstein.cs.uni-bonn.de>Show Full Headers
Complete Article Headers
Message-ID: <slrnig443f.bhi.u502sou@marie.beverly.kleinbus.org> Subject: Re: bug in /usr/share/slrn/contrib/cleanscore Date: Fri, 10 Dec 2010 12:35:11 +0100 From: Ignatios Souvatzis <u502sou@beverly.kleinbus.org> References: <p32ds7xrs5.ln2@news.ducksburg.com> <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!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder4.news.weretis.net!news.wtal.de!news.tal.de!beverly.kleinbus.org!not-for-mail Newsgroups: news.software.readers Organization: TAL.DE and customers Lines: 35 NNTP-Posting-Host: beverly.kleinbus.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.wtal.de 1291982407 5051 213.240.180.139 (10 Dec 2010 12:00:07 GMT) X-Complaints-To: abuse@tal.de NNTP-Posting-Date: 10 Dec 2010 12:00:07 GMT User-Agent: slrn/0.9.9p1 (NetBSD) X-Original-Bytes: 2220