🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #43522

Re: [slrn] When does article_mode_hook() run? Before or after sorting? (Was [slrn] How to kill all "Re:" articles ...)

#43522
From: Dawn Owens-Nicholson
Date: Fri, 02 Oct 1998 00:00
37 lines
2195 bytes
Ken Keen <TroubleEveryDay@Dangerous.Kitchen> wrote:
> Anybody know the answer? 

The docs say it runs after downloading but before sorting.  Scoring, on the
other hand, happens after downloading but before article_mode_hook() runs, I
believe.

> Fwiw, I want to run article_mode_hook() *before sorting* and then (and this
> is a rough design):

You could use more scoring rules to get the sequence of scores you want
without a macro:

>       If a header [doesn't match "^Re:"], then set_header_score = 1
>       Otherwise, set_header_score = -1.

[group.wildmat(s)]
    Score: =1                                    % non-Re: articles
	 ~Subject: ^Re:

    Score: =-1                                   % everything else
	  Subject: .

> Then, scorefile would list all the threads I was interested in following.

Actually, I think scoring happens before article_mode_hook() runs, so the
scorefile would have scored the articles first.  Unless you mean to set an
article's score and have it somehow reflected in the scorefile, in which
case, that won't happen.

I don't get what you miss by using the scorefile alone, however.  Also, I
think using an array for this will get you some errors when you enter big
groups (forcing you to waste memory by making the array big enough to hold
the largest group).  If you can use the scorefile alone, it'll be faster,
not error-prone and far more intuitive when you want to change it.

Technical Details
Message-ID: <slrn718egi.cih.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: <slrn717vb5.9pd.TroubleEveryDay@user2.teleport.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn718egi.cih.bluemoon@ux6.cso.uiuc.edu>
Subject: Re: [slrn] When does article_mode_hook() run? Before or after sorting? (Was [slrn] How to kill all "Re:" articles ...)
Date: Fri, 02 Oct 1998 00:00:00 +0000
From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson)
References: <slrn717vb5.9pd.TroubleEveryDay@user2.teleport.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: 396904296
Organization: University of Illinois at Urbana-Champaign
User-Agent: slrn/0.9.5.3 (UNIX)
Newsgroups: news.software.readers