Article View: news.software.readers
Article #43492[slrn] When does article_mode_hook() run? Before or after sorting? (Was [slrn] How to kill all "Re:" articles ...)
From: Ken Keen
Date: Thu, 01 Oct 1998 00:00
Date: Thu, 01 Oct 1998 00:00
37 lines
1904 bytes
1904 bytes
On 27 Sep 1998 20:23:57 GMT, Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu>
wrote in thread called "[slrn] How to kill all "Re:" articles except the ones
I have scored 9999":
> [1] I know article_mode_hook() runs before sorting, but I didn't test to see
> if it runs after scoring, hopefully, for you, it does.
Anybody know the answer?
Fwiw, I want to run article_mode_hook() *before sorting* and then (and this is
a rough design):
1. Scan through *all* new headers for the current newsgroup and build
an array (say, variable Non-re-headers = String_Type [1000];) of all
subjects *without* the prepending string "Re:".
then,
2. Rescan again each header and:
If a header is on the array created in 1, then set_header_score = 1
Otherwise, set_header_score = -1.
Then, scorefile would list all the threads I was interested in following. The
scorefile would add 1 to these threads changing their score from -1 to 0.
Is this design even possible? E.g.,:
1. Is it possible in article_mode_hook() to actually scan all headers?
2. Is it possible to do it a second time (step 2)?
--
Man From Utopia
Technical Details
Message-ID:
<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-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn717vb5.9pd.TroubleEveryDay@user2.teleport.com> Subject: [slrn] When does article_mode_hook() run? Before or after sorting? (Was [slrn] How to kill all "Re:" articles ...) Date: Thu, 01 Oct 1998 00:00:00 +0000 From: TroubleEveryDay@Dangerous.Kitchen (Ken Keen) 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: 396837943 Organization: Society for the Preservation of Soft Little Things You Step On Reply-To: TroubleEveryDay@Dangerous.Kitchen Newsgroups: news.software.readers