🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #174786

Re: Dialog: colorizing header list

#174786
From: Korbinian Abenthum
Date: Thu, 06 Oct 2005 17:39
62 lines
4476 bytes
wyzwyz wrote:
> On Wed, 5 Oct 2005 09:53:38 -0400, Kristi wrote:

>>> !setcolor(default;$00FFFF) references {dlg@krististuf\.com>( <\S*@\S*>){4,4}$}   #brt yellow
>>> !setcolor(default;$FFCCFF) references {dlg@krististuf\.com>( <\S*@\S*>){3,3}$}  #lt lavender
>>> !setcolor(default;$99CCFF) references {dlg@krististuf\.com>( <\S*@\S*>){2,2}$}  #orange
>>> !setcolor(default;$33CCFF) references {dlg@krististuf\.com>( <\S*@\S*>){1,1}$}  #yellow
>>> !setcolor(default;$FFDDDD) references {dlg@krististuf\.com>$}   #lt purple
>>> !setcolor(default;$FF99FF) Message-ID dlg@krististuf.com>   #lavender

>> yeah!  pretty colors!  (I changed them somewhat.)  Thanks wyzwyz!!!  Seems
>> to work great!

I'd recommend changing that a bit. Although it apparently works, the regular
expression is somewhat ambiguous¹.
Use

| !setcolor(default;$00FFFF) references {@krististuf\.com>(\s+<[^>]*>){4}\s*$} #brt yellow
| !setcolor(default;$FFCCFF) references {@krististuf\.com>(\s+<[^>]*>){3}\s*$} #lt lavender
| !setcolor(default;$99CCFF) references {@krististuf\.com>(\s+<[^>]*>){2}\s*$} #orange
| !setcolor(default;$33CCFF) references {@krististuf\.com>(\s+<[^>]*>){1}\s*$} #yellow
| !setcolor(default;$FFDDDD) references {@krististuf\.com>\s*$}                #lt purple
| !setcolor(default;$FF99FF) Message-ID "@krististuf.com>"                     #lavender


>> Is there any way to get it to highlight the first item in a collapsed
>> thread if one of the items of the thread is highlighted?

> i think that needs a script

Not even with a script I fear.
I'm doing it like wyzwyz suggested:

> =+9999 Message-ID "dlg@krististuf.com>"

Score on your own messages. If a thread is collapsed, the first item will
show the highest score of the thread. That'll show you all the threads you
participated in on one glance.

> which will make all the threads you participate jump to the top.

... if you sort your headers by score.

> oh, and when i added a  !setcolor(default;default) header {.}
> my log file started crashing ... 

Your log file crashed?
Hmm, I'm doing something like that frequently, whenever I finish
experimenting with colors.
How about

| !setcolor(default;default) message-id *

__
¹) a "\S" matches a ">" character. Apparently the "*" in DIALOG's RegEx
engine is lazy at the moment, since it works, but still. Furthermore, I'm
not quite sure if the regex as it was will match on a folded References
header. It probably will, since DIALOG unfolds it in the header-view, too,
but it should be safer with a "\s+" instead of a " ".

-- 
"The wolves are howling, but such a small pack." - Jaime Lannister
Technical Details
Message-ID: <061005.193948.nsr.58@news.abenthum.de>
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!cyclone1.gnilink.net!gnilink.net!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-quince!easynet.net!magenta.plig.net!news.banetele.no!dotsrc.org!news.dotsrc.org!not-for-mail
References: <p10h3lx7i5eq$.dlg@krististuf.com> <4342dfe8$0$19785$5a62ac22@per-qv1-newsreader-01.iinet.net.au> <14l0vx2gnfvjr.dlg@krististuf.com> <43432e86$0$19786$5a62ac22@per-qv1-newsreader-01.iinet.net.au> <43433e4f$0$19795$5a62ac22@per-qv1-newsreader-01.iinet.net.au> <8p3ias3f1nof$.dlg@krististuf.com> <eesuq97ruqky$.dlg@krististuf.com> <434419e8$0$19774$5a62ac22@per-qv1-newsreader-01.iinet.net.au>

Show Full Headers
Complete Article Headers
Message-ID: <061005.193948.nsr.58@news.abenthum.de>
Subject: Re: Dialog: colorizing header list
Date: Thu, 6 Oct 2005 19:39:48 +0200
From: Korbinian Abenthum <korbinian@gmx.de>
References: <p10h3lx7i5eq$.dlg@krististuf.com> <4342dfe8$0$19785$5a62ac22@per-qv1-newsreader-01.iinet.net.au> <14l0vx2gnfvjr.dlg@krististuf.com> <43432e86$0$19786$5a62ac22@per-qv1-newsreader-01.iinet.net.au> <43433e4f$0$19795$5a62ac22@per-qv1-newsreader-01.iinet.net.au> <8p3ias3f1nof$.dlg@krististuf.com> <eesuq97ruqky$.dlg@krististuf.com> <434419e8$0$19774$5a62ac22@per-qv1-newsreader-01.iinet.net.au>
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!cyclone1.gnilink.net!gnilink.net!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-quince!easynet.net!magenta.plig.net!news.banetele.no!dotsrc.org!news.dotsrc.org!not-for-mail
X-Now-Playing: Titel 13
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.35 Hamster/2.0.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Face: &[gF$*:|'M7pwKut]{LOz!&65BT96:Wn\M"V6Qa#q%~9^z8XhJfmh?.)VB{,
 p]Z`6q@e()!g1ghrG7.atG.DXfzulkKE%u~|D7?e6^-yN4GvZJuvz%$LZBA6`dJTo,
 MYUO%I*0us[.v/AT,
Lines: 62
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 217.250.3.112
X-Trace: news.sunsite.dk DXC=3?gUej6oG^mO3d^23S\Y2mYSB=nbEKnkkBb_6`2OJ`kd=8;
 LP`]<H5f1iAjoL\i^9ok[QR184; _bh3h7Uh4J\M[dL>0FmQcXEjh2]`45hPDiAd
X-Complaints-To: staff@sunsite.dk