Article View: news.software.readers
Article #82182Re: [slrn] feature request
From: Faux_Pseudo
Date: Mon, 30 Jul 2001 07:04
Date: Mon, 30 Jul 2001 07:04
91 lines
4400 bytes
4400 bytes
--(Once apon a time, in news.software.readers,)--
--(J.B. Nicholson-Owens said it like only they can.)--
> Pardoz wrote:
> > Try this macro combined with a scorefile entry to give your own
> > articles a score of 9999. It will automatically *tag your own articles.
>
> Instead of creating a 'magic' score, you'd be better off scanning for your
> own articles. Assigning values to actions that have nothing to do with
> scoring doesn't work well with additive scores (a feature of slrn's scoring)
> and isn't self-documenting.
>
> > define tag_high_scores ()
> > {
>
> You could insert this:
>
> variable starting_point = extract_article_header ("Message-ID");
>
> here which would pay off later.
>
> > forever
> > {
> > variable header = get_header_score();
> > if (header = 9999) set_header_flags (HEADER_TAGGED);
>
> This won't work as is and when the syntax errors are fixed it'll clobber
> whatever flags are on the header in favor of setting HEADER_TAGGED. You
> could rewrite the inside of the loop as:
>
> if (string_match (extract_article_header ("From"), "my name here", 1))
> set_header_flags (get_header_flags () | HEADER_TAGGED);
>
> to do something more in line with the request. Of course, one would want to
> change 'my name here' to their name or e-mail address (or perhaps get it
> from an argument to the function, environment variable, or setting
> somewhere).
>
> > !if (header_down (1))
> > break;
> > }
>
> Another approach is a do-while loop:
>
> uncollapse_all_threads ();
> do
> {
> if (string_match (extract_article_header ("From"), "my name here", 1))
> {
> set_header_flags (get_header_flags () | HEADER_TAGGED);
> }
> }
> while (header_down (1));
> collapse_all_threads ();
>
> If you prefer, you can make the whole loop without curly braces since it's
> two lines of code.
>
> > call ("header_bob");
>
> Another way to do it would be to reset the cursor's position. It's quick
> and easy and a nice thing to do.
>
> () = locate_header_by_msgid (starting_point, 0);
>
> I'd normally not want to disturb the thread display too but I'm not sure
> there's a point to doing that at the time this macro would run. Call it an
> excercise left for the reader.
>
> Finally, if you install StickyTags http://forestfield.org/slrn/#stickytags
> you can make the asterisk tags last across sessions.
I hope i can clean all that up and get it running. The original one
was bugging out on me.
I would rather use the macro option than the stickytags option simiply
because it dose not require any manual effor too mark my posts. But
is there a way to do it without, as you pointed out, sticking all 9999
posts?
I tend to stick with hard and fast scoring where its a -9999, 0, or
9999 and thats it. Is there a way to get it to just * my posts and
not all the 9999 posts?
--
--(tty1@faux.local|04:45|/home/faux)-- cat .sig
GUI's are for slackers. Get ibpconf.sh 6.1 on freshmeat.net
It's a damn poor mind that can only think of one way to spell a word.
- Andrew Jackson
Technical Details
Message-ID:
<slrn9ma1d8.g5c.Faux_Pseudo@faux.cx936102-a>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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sdca.home.com.POSTED!not-for-mailReferences:
<slrn9m4sg4.qpi.Faux_Pseudo@faux.cx936102-a> <slrn9m6pdg.3vuc76h.pardoz@pardbox.com> <slrn9m9h63.an.jbn@forestfield.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn9ma1d8.g5c.Faux_Pseudo@faux.cx936102-a> Subject: Re: [slrn] feature request Date: Mon, 30 Jul 2001 07:04:06 GMT From: Faux_Pseudo@24.177.56.253 (Faux_Pseudo) References: <slrn9m4sg4.qpi.Faux_Pseudo@faux.cx936102-a> <slrn9m6pdg.3vuc76h.pardoz@pardbox.com> <slrn9m9h63.an.jbn@forestfield.org> 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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sdca.home.com.POSTED!not-for-mail Newsgroups: news.software.readers Reply-To: Faux_Pseudo@yahoo.com User-Agent: slrn/0.9.7.0 (Linux) Lines: 90 NNTP-Posting-Host: 24.177.56.253 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sdca.home.com 996476646 24.177.56.253 (Mon, 30 Jul 2001 00:04:06 PDT) NNTP-Posting-Date: Mon, 30 Jul 2001 00:04:06 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster