🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #42937

Re: [slrn] Could extract_article_header() return # of lines?

#42937
From: Dawn Owens-Nicholson
Date: Sun, 30 Aug 1998 00:00
20 lines
1623 bytes
Lloyd Zusman <ljz@asfast.com> wrote:
> I'd be happy if this was simply the contents of the "Lines:" header, which
> is currently ignored by `extract_acticle_header()'.

I believe it's a bug in extract_article_header().  extract_article_header()
doesn't ignore Lines:, you have to make the target article the most recently
read article (selecting the article and, optionally, hiding it, for
instance) in order for extract_article_header("Lines") to do the right
thing.  Then (in slrn 0.9.5.2) you'll probably want to use strtrim() to
remove the whitespace before the returned value (to work around a minor bug).
If you do computations with it, don't forget to make it an integer.

> I'm happy to supply a patch to slrn which would provide this functionality,
> but before I do, I'm wondering if there is some compelling reason for not
> doing this.

I can't think of any, but there are two bugs here, one of which I think JED
already knows about (the leading whitespace bug).

Technical Details
Message-ID: <slrn6uj1m0.ff1.bluemoon@ux6.cso.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn6uha35.l0.ljz@sunspot.tiac.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6uj1m0.ff1.bluemoon@ux6.cso.uiuc.edu>
Subject: Re: [slrn] Could extract_article_header() return # of lines?
Date: Sun, 30 Aug 1998 00:00:00 +0000
From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson)
References: <slrn6uha35.l0.ljz@sunspot.tiac.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 386187347
Organization: University of Illinois at Urbana-Champaign
Newsgroups: news.software.readers