🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #79565

Re: Xnews scoring question

#79565
From: Robert Amesz
Date: Tue, 29 May 2001 23:58
35 lines
2725 bytes
Ch.Esperado wrote:

> James Himmelman �crivait ici m�me ce qui suit:
> 
>>> And everything is working except the "From: \Bbig5\B".
> 
>> From field of "bunch?=big5of?=garbage" is not being filtered out.
> 
> If you want to filter everything containing big5of, try this:
>  .*big5.*
> With means: any caracter present zero or more occurence, followed
> by big5, followed by any caracter present zero or more occurence. 

That is quite unnecessary. Just big5 will do _exactly_ the same, and 
will probably[1] be faster. Using multiple .* constructs can tax a 
regular expression package quite a bit, and in some pathological cases 
can cause running time to increase exponentially with string length.

What *might* be the problem with the "bunch?=big5of?=garbage" header is 
that 'big5of' is the name of a character set (Chinese, I believe), and 
the above construct is a way of temporarily setting the character set 
for part of that header. (Yes, it's ugly. But it's also in the RFC's.) 
So Xnews might just strip that part of the header and try to decode it 
[2] before feeding it to the regular expression engine.


Robert Amesz
-- 
[1] Well, the PCRE package might be clever enough to remove the 
unnecessary bits, I don't know.

[2] Failing miserably, I suppose. Unless Xnews uses Unicode internally, 
but I don't believe it does. Oh, the woes of i18n...

Technical Details
Message-ID: <Xns90B0F27E87836rcamesz@127.0.0.1>
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!skynet.be!dispose.news.demon.net!news.demon.nl!demon!amesz.demon.nl!not-for-mail
References: <Xns90AD9FA52FD27jhimmeli2000com@207.97.159.253> <Xns90AE5A2BD63EBluutrangeocities@206.13.28.182> <Xns90AECF2126235jhimmeli2000com@207.97.159.253> <9evsac.3vuefpd.2@ch.esperado>

Show Full Headers
Complete Article Headers
Message-ID: <Xns90B0F27E87836rcamesz@127.0.0.1>
Subject: Re: Xnews scoring question
Date: Tue, 29 May 2001 23:58:56 GMT
From: rcameszREMOVETHIS@dds.removethistoo.nl (Robert Amesz)
References: <Xns90AD9FA52FD27jhimmeli2000com@207.97.159.253> <Xns90AE5A2BD63EBluutrangeocities@206.13.28.182> <Xns90AECF2126235jhimmeli2000com@207.97.159.253> <9evsac.3vuefpd.2@ch.esperado>
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!skynet.be!dispose.news.demon.net!news.demon.nl!demon!amesz.demon.nl!not-for-mail
Newsgroups: news.software.readers
Reply-To: rcamesz@dds.nl
NNTP-Posting-Host: amesz.demon.nl
X-NNTP-Posting-Host: amesz.demon.nl:212.238.72.220
X-Trace: news.demon.nl 991180736 pluto:29916 NO-IDENT amesz.demon.nl:212.238.72.220
X-Complaints-To: abuse@nl.demon.net
X-Posting-Agent: Hamster/1.3.13.0
User-Agent: Xnews/4.04.30
X-Face: i/!"w>!GV8UL{^20`L2OEvvFz(T"{bFYn2<:u"5<4Blsl-isl(bTDMKVqWL?nk-VY7[[);j =yB|s]|c3nRG4c7^1#+/(D)v4ToNC;PoE=\7baN'i75%+2NhzndU~qJUTI*-v[R"l)Q$GOX3o(-#7C iY6a`%._v`G8cG`!/3,mt?pkyvjv3f}\-mZiNnXJ9EK~D>Qs(ckW8yam<<T!\Kf>`wtj3>eEAAV\
Lines: 34