Article View: news.software.readers
Article #41825Re: [SLRN] mark following article as read?
From: Dawn Owens-Nicholson
Date: Tue, 30 Jun 1998 00:00
Date: Tue, 30 Jun 1998 00:00
23 lines
1366 bytes
1366 bytes
There are other errors, but here's one that stuck out the instant I
posted it (someday I'll test stuff first):
I wrote:
> if (string_match (regex, article_line, 0))
> {
> set_header_flags (get_header_flags () | HEADER_READ);
> articles_marked_read++;
> }
I should have written:
if (string_match (regex, article_line, 0))
{
set_header_flags (get_header_flags () | HEADER_READ);
articles_marked_read++;
break;
}
Without the break, the function will unnecessarily continue to scan
the same article for more matches.
Technical Details
Message-ID:
<slrn6pioas.25o.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:
<35992446.F7165815@binevolve.com> <slrn6pinrr.25o.bluemoon@ux6.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn6pioas.25o.bluemoon@ux6.cso.uiuc.edu> Subject: Re: [SLRN] mark following article as read? Date: Tue, 30 Jun 1998 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <35992446.F7165815@binevolve.com> <slrn6pinrr.25o.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 X-Deja-AN: 367554640 Organization: University of Illinois at Urbana-Champaign Newsgroups: news.software.readers