🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #174875

Re: Dialog: colorizing header list

#174875
From: wyzwyz
Date: Mon, 10 Oct 2005 18:44
24 lines
2667 bytes
On Thu, 6 Oct 2005 19:39:48 +0200, Korbinian Abenthum wrote:

> wyzwyz wrote:

> 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
> 

> __
> ?) 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 " ".

what are your thoughts on using (\s+<[^<@>]+@[^<@>]+>) ?
Technical Details
Message-ID: <434ab67f$0$16879$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!border2.nntp.ams.giganews.com!nntp.giganews.com!news.addix.net!news.glorb.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
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> <061005.193948.nsr.58@news.abenthum.de>

Show Full Headers
Complete Article Headers
Message-ID: <434ab67f$0$16879$5a62ac22@per-qv1-newsreader-01.iinet.net.au>
Subject: Re: Dialog: colorizing header list
Date: Tue, 11 Oct 2005 04:44:26 +1000
From: wyzwyz <wyzwyz@wyz.wyz>
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> <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!border2.nntp.ams.giganews.com!nntp.giganews.com!news.addix.net!news.glorb.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
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 24
NNTP-Posting-Host: 203.166.254.203
X-Trace: 1128969857 per-qv1-newsreader-01.iinet.net.au 16879 203.166.254.203