Article View: news.software.readers
Article #191616Re: Scoring Question: X-trace
From: Joe Makowiec
Date: Sat, 14 Oct 2006 10:40
Date: Sat, 14 Oct 2006 10:40
35 lines
2205 bytes
2205 bytes
On 13 Oct 2006 in news.software.readers, Mike Dee wrote: > Jonsey <jonsey(nospam)@here.com> wrote in > news:Xns985BE43B8400Cjonseynospamherecom@140.99.99.130: > >> % score file for Xnews >> % read scoring.txt for instruction >> [.] >> Score: -9999 >> X-Trace: weber.videotron.net* > > You must escape periods "." with a "\" in order to be able to use > them effectively in a literal string. > > That is, for the above score, you should write: > X-Trace: weber\.videotron\.net > > In PCRE score files a "." is a metacharacter that will match any > character regardless of what that character is. > > The "\" is another metacharacter which is employed to indicate to > the scoring engine that the following character must be taken > literally as a period and is not in itself a metacharacter. But in this case, there's enough static information that the odds of matching something other than the desired string is vanishingly small. > And you do not need that * which you had placed at the end, either. Yup. -- Joe Makowiec http://makowiec.org/ Email: http://makowiec.org/contact/?Joe
Technical Details
Message-ID:
<Xns985C43F1D68FFmakowiecatnycapdotrE@24.24.2.167>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!newshub.sdsu.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mailReferences:
<Xns985BE317AEB6Ejonseynospamherecom@140.99.99.130> <Xns985BE43B8400Cjonseynospamherecom@140.99.99.130> <Xns985C8B94099E1emteedee@85.214.50.93>Show Full Headers
Complete Article Headers
Message-ID: <Xns985C43F1D68FFmakowiecatnycapdotrE@24.24.2.167> Subject: Re: Scoring Question: X-trace Date: Sat, 14 Oct 2006 10:40:49 GMT From: Joe Makowiec <makowiec@invalid.invalid> References: <Xns985BE317AEB6Ejonseynospamherecom@140.99.99.130> <Xns985BE43B8400Cjonseynospamherecom@140.99.99.130> <Xns985C8B94099E1emteedee@85.214.50.93> 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!newshub.sdsu.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail Newsgroups: news.software.readers User-Agent: Xnews/2006.08.24 Lines: 35 NNTP-Posting-Host: 24.195.230.195 X-Complaints-To: abuse@rr.com X-Trace: twister.nyroc.rr.com 1160822449 24.195.230.195 (Sat, NNTP-Posting-Date: Sat, 14 Oct 2006 06:40:49 EDT