Article View: news.software.readers
Article #42931Re: [slrn] Could extract_article_header() return # of lines?
From: Dawn Owens-Nicholson
Date: Sun, 30 Aug 1998 00:00
Date: Sun, 30 Aug 1998 00:00
42 lines
2585 bytes
2585 bytes
Lloyd Zusman <ljz@asfast.com> wrote:
> And I think that your function could be speeded up by eliminating the
> dual calls to `extract_article_header', as follows:
Yes, thanks!
> define bugfix_extract_article_header_2 (header) {
>
> if (is_group_mode ())
> error (_function_name () + "doesn\'t work in group mode");
>
> switch (header)
> { case ("Message-ID") :
> return (strtrim (extract_article_header (retval)));
Whoops -- I'm pretty sure you meant "header" instead of "retval" there.
> Also, I applied my patch to `slrn_extract_header' in art.c, and it
> works great. With this patch, there would be no need for the S-Lang
> `extract_article_header()' workaround, and everything runs faster.
Thanks again, I look forward to using it; ultimately, that's what is
needed--a fix for the slrn source.
> I'm doing more work within `slrn_extract_header' to handle trimming
> problems with "Message-Id" and elsewhere. I'll post the updated patch
> when I'm finished.
I'm not sure the problem is centered in that function, because following up
and replying after viewing the article also show a leading space in some
headers (Newsgroups: and References: as I write this--I'll leave the leading
space in so you can see what I'm talking about). I'm guessing there is some
common code that erroneously puts the whitespace in there and this might
affect more than message-ID: header retreives.
If you happen to stumble on an obscure bug where one can make multi-article
threads where a one-article thread existed before, I'd appreciate any info
you have on it. I'm hitting that in my macros but I have no solid idea what
I'm doing to cause it. All I know for sure right now is that I shouldn't be
able to do something that I'm making slrn do.
Technical Details
Message-ID:
<slrn6ujpaf.hrq.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-mailReferences:
<slrn6uha35.l0.ljz@sunspot.tiac.net> <slrn6uj1m0.ff1.bluemoon@ux6.cso.uiuc.edu> <lt1zpypadr.fsf@asfast.com> <slrn6ujg18.89l.bluemoon@ux6.cso.uiuc.edu> <ltlno6nk3g.fsf@asfast.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn6ujpaf.hrq.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> <slrn6uj1m0.ff1.bluemoon@ux6.cso.uiuc.edu> <lt1zpypadr.fsf@asfast.com> <slrn6ujg18.89l.bluemoon@ux6.cso.uiuc.edu> <ltlno6nk3g.fsf@asfast.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.mbox.zip!not-for-mail X-Deja-AN: 386270274 Organization: University of Illinois at Urbana-Champaign Newsgroups: news.software.readers