Article View: news.software.readers
Article #111329Re: [Xnews] Filtering on certain headers
From: Murray Peterson
Date: Fri, 11 Oct 2002 18:37
Date: Fri, 11 Oct 2002 18:37
72 lines
3283 bytes
3283 bytes
Mosby Jay <mj@spambounce.com> wrote in
news:Xns92A4ADF42FECE71E5@64.12.185.225:
> Murray Peterson <mwp@home.com.invalid> wrote:
>
>> Mosby Jay <mj@spambounce.com> wrote in :
>>
>>> I would like to filter by his posting IP number. The IP number
>>> appears in the "NNTP-Posting-Host" and "X-Trace" headers but not
>>> in the message ID. Can I score on either of these two headers in
>>> the score file?
>>>
>>
>> Yes, but only if your news server supports the XHDR command and
>> the XHDR command will return one of those headers. You can use
>> telnet to determine if this is the case or not.
>
>
> Can you tell me a bit more please.
>
> (1) How do I telnet the server to find out?
I will use my news server as an example (replace with yours).
From the Start menu, select Run
Type in:
telnet shawnews.cg.shawcable.net 119
A telnet window will open up, and connect to your news server
Enter this commands:
group news.software.readers
You will see a response much like this:
211 985 30110023 30111018 news.software.readers
Enter this command:
xhdr X-Trace 1-
or this command:
xhdr NNTP-Posting-Host 1-
If you see output that looks like this:
30111008 (none)
30111009 (none)
30111010 (none)
...and many more lines of the same
then your server does not support the command. If XHDR returns that
header, then you will see many lines of numbers followed by the header
data. e.g.
30111008 nntp-m01.news.aol.com 1034352341 27981 80.1.12.18 (11 Oct 2002
16:05:41 GMT)
> (2) What do I enter into the score file? I have tried this but it
> doesn't work.
>
> score:-9999
> x-trace:444.333.222.111
>
> The IP number has been changed for this example. I should add that the
> poster I am trying to score uses a fixed IP number.
This will only work if your server supports xhdr retrieval of X-Trace
header data.
> I don't know if Xnews supports scoring on field "x-trace".
That's what the telnet experiment will tell you.
--
Murray Peterson
Email: murray_peterson@shaw.ca (remove underscore)
URL: http://members.shaw.ca/murraypeterson/
Technical Details
Message-ID:
<Xns92A4808784799farkle@24.71.223.159>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!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!ihug.co.nz!west.cox.net!cox.net!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news3.calgary.shaw.ca.POSTED!not-for-mailReferences:
<Xns92A41E9D539F5farkle@24.71.223.159> <Xns92A4ADF42FECE71E5@64.12.185.225>Show Full Headers
Complete Article Headers
Message-ID: <Xns92A4808784799farkle@24.71.223.159> Subject: Re: [Xnews] Filtering on certain headers Date: Fri, 11 Oct 2002 18:37:22 GMT From: Murray Peterson <mwp@home.com.invalid> References: <Xns92A41E9D539F5farkle@24.71.223.159> <Xns92A4ADF42FECE71E5@64.12.185.225> 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!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!ihug.co.nz!west.cox.net!cox.net!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news3.calgary.shaw.ca.POSTED!not-for-mail X-Trace-PostClient-IP: 68.145.202.240 Newsgroups: news.software.readers Organization: None User-Agent: Xnews/5.04.25 Lines: 71 NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse@shaw.ca X-Trace: news3.calgary.shaw.ca 1034361442 24.71.223.147 (Fri, 11 Oct 2002 12:37:22 MDT) NNTP-Posting-Date: Fri, 11 Oct 2002 12:37:22 MDT