🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #217439

Re: [slrn] colourise headers?

#217439
From: Rudy Taraschi
Date: Wed, 05 Mar 2008 05:02
55 lines
3663 bytes
[major snippage]

Troy Piggins wrote:

> * George Orwell wrote:
> >
> > If there are certain posters or topics I'm interested in. Is
> > there any way to make these headers show in a different colour
> > etc.
> 
> Not in vanilla slrn.  But you can with the score-color patch by
> Rudy Taraschi http://www.taraschi.net/slrn
> 
> I haven't gotten around to writing a howto yet, but basically
> you apply the patch to source, compile and install as usual.

I just beat you to it ... check out the URL 5 lines up

> And that score-color.sl file contains entries like this:
> 
>   score_color  7500  9999 "yellow"        "default"
>   score_color  5000  7499 "brightgreen"   "default"
>   score_color  2000  4999 "green"         "default"
>   score_color  1000  1999 "brown"         "default"
>   score_color   500   999 "brightcyan"    "default"
>   score_color   200   499 "white"         "default"
>   score_color   100   199 "cyan"          "default"
>   score_color     1    99 "lightgray"     "default"
>   score_color     0     0 "lightgray"     "default"
>   score_color   -10    -1 "brightred"     "default"
>   score_color   -50   -11 "red"           "default"
>   score_color  -100   -51 "gray"          "default"
>   score_color -1000  -101 "blue"          "default"
>   score_color -9999 -1001 "blue"          "default"

That's a fine plate of angry fruit salad you have there ;-)

In the 1984 author's OP, he wants to highlight certain posters,
but your recipe doesn't quite do it because you're not using
overlapping scores.  If, for instance, I thought that Troy was an
interesting poster, I would add a scorefile entry for Troy that
assignes a score of =7777 to his posts, then add the following
line to the recipe above without changing anything else:

  score_color  7777  7777 "white"    "blue"

All scores in the 7500-9999 range would still get yellow, except
for 7777, which will get a reverse video highlight.  Similarly, I
use the onekey-score macro to score watched threads =8888, and use
a striking colo(u)r combination to highlight it.

Cheers!

/rudy
Technical Details
Message-ID: <slrnfssa8m.mfc.rudy@news.motzarella.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!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news.motzarella.org!motzarella.org!not-for-mail
References: <9631471233a843486b334cc2f84954f0@mixmaster.it> <20080304063433.544@usenet.piggo.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnfssa8m.mfc.rudy@news.motzarella.org>
Subject: Re: [slrn] colourise headers?
Date: Wed, 05 Mar 2008 05:02:08 +0000
From: Rudy Taraschi <rudy@this.address.is.invalid>
References: <9631471233a843486b334cc2f84954f0@mixmaster.it> <20080304063433.544@usenet.piggo.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!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 54
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: feeder.motzarella.org U2FsdGVkX18Yt2vFrTtGyEuHJIhrn5kUR35OPMC7ta4iN4BqjzJSBFNUQgHCw5IQr+UcjB5efJ85dU+PZePejiNkHAD8V09/q2gLb2ukdLWsps53oeyfSTjQqtvL+1brF4natLGbJPE=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers
NNTP-Posting-Date: Wed, 5 Mar 2008 05:02:08 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX189bw6lEw5wi3UWObwPkxX2fprZNStrodw=
X-Face: (WrD*bX*:"j.$(|G/9Wky*T3hTx&09g_~|H3=5[WK$o8oQHIuw0@'Z.-{uz+O{/OQ<:yD
 quEpI!LJG_jn#a+=drl'V:8{a\WI*iSDIU9xV`bHsN+[y_P1QN-,=fTY4dP:5*z8G?;=v(*g0As)X
 c^t6p#OO6d05Tg/}i,).V-O;|[PH/T9*bcANx/A>m)cVi_Y
Cancel-Lock: sha1:/obL2zm1d7h8U6dxmnoG3FMKGlo=
User-Agent: slrn/pre0.9.9-97/rt (Linux)
X-Files: The truth is out there