Article View: news.software.readers
Article #177878Re: [slrn] Feature request - .slrnrc "color from_myself" behaviour
From: Troy Piggins
Date: Fri, 16 Dec 2005 04:11
Date: Fri, 16 Dec 2005 04:11
96 lines
4627 bytes
4627 bytes
* DC wrote:
> Can .slrnrc's "color from_myself" behaviour be changed to take into
> account my full identity? From what I can see, only the "realname"
> variable is used to match articles. In some groups I frequent, there
> are others that share the same initials as me and, while I remember what
> I post <g>, it can be distracting when I'm looking for my own posts in
> the articles view.
So use a more unique realname ;-)
I use scoring to make myself stand out in the crowd. That worked for a
while, until I discovered Rudy Tarashi's score colo[u]r patch. It is
truly awesome.
You can assign different colours for different scored articles. This is
much more powerful than the default min score, max score colour options.
So you can assign a score for your realname *and* email/msgid combo to
ensure it's just you, then assign a bright colour like yellow or
brightcyan for those posts.
With this in my ~/.slrnrc :
-----
color headers "red" "default"
% added for patch
% valid colors discovered:
% default, [light]gray, black, white, [bright]blue, [bright]red, brown,
% yellow,
% green, brightgreen, magenta, [bright]cyan
score_color 7501 9999 "yellow" "default"
score_color 5001 7500 "brown" "default"
score_color 1000 5000 "brightcyan" "default"
score_color 250 999 "brightgreen" "default"
score_color 100 249 "cyan" "default"
score_color 10 99 "white" "default"
score_color 1 9 "brightred" "default"
score_color 0 0 "lightgray" "default"
score_color -1 -1 "gray" "default"
score_color -9 -2 "red" "default"
score_color -99 -10 "blue" "default"
score_color -999 -100 "gray" "default"
score_color -9999 -1000 "gray" "default"
% end of special colors for score color patch
color neg_score "gray" "default"
color pos_score "cyan" "default"
color high_score "brightcyan" "default"
-----
I had trouble googleing it at the time, but Rudy emailed it direct to
me. Let me know if you want it and I can provide it.
Hope I explained it well enough.
To help here is extract from email from Rudy:
...
It applies cleanly to 0.9.8.1, and also works for the latest pl1
developer's release candidate. Just go into your slrn top level
source directory and do a "patch -p1 < /path/to/patch/file",
followed by a configure, make, make install.
Essentially, I've added a new .slrnrc configuration variable called
"score_color" which allows you to set a score color that applies to
an arbitrary range. In a nutshell, the syntax looks like:
score_color 5001 9998 "cyan" "default"
score_color 8888 8888 "green" "default"
This example sets the color for all scores between 5001 and 9998
inclusive to cyan, except for score 8888, which gets colored green
(in this case, =8888 is my "watched thread" score) Note that
overlapping color ranges are supported (and useful). You can use
this technique to score and highlight favourite authors and/or
subjects.
...
><.slrn.rc snippet>
>
> %
> %% 1. Tell slrn about your identity (name, email address and such)
> %
>
> % The "From:" header will be generated from the following three variables.
> % With the example settings, it would read "john@doe.com (John Doe)".
> set username "dcmoose"
> set hostname "myrealbox.com"
> set realname "DC"
>
></snippet>
--
Troy Piggins
Christmas thought: "Christmas is a time of eating,
so Boxing Day is a time for pooing."
Technical Details
Message-ID:
<20051216134818@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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mailReferences:
<slrndq3vbj.9qi.dcmoose@moosemeat.ca.INVALID>Show Full Headers
Complete Article Headers
Message-ID: <20051216134818@usenet.piggo.com> Subject: Re: [slrn] Feature request - .slrnrc "color from_myself" behaviour Date: Fri, 16 Dec 2005 04:11:03 +0000 From: Troy Piggins <usenet-0512@piggo.com> References: <slrndq3vbj.9qi.dcmoose@moosemeat.ca.INVALID> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail Newsgroups: news.software.readers Reply-To: usenet-0512@piggo.com User-Agent: slrn/0.9.8.1/rt (Linux) Lines: 96 NNTP-Posting-Host: 203.206.14.64 X-Trace: 1134706263 per-qv1-newsreader-01.iinet.net.au 1388 203.206.14.64