🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #155870

Re: Xnews: kill based on user-agent?

#155870
From: »Q«
Date: Sun, 19 Sep 2004 05:19
37 lines
2415 bytes
"jdub@nospamforme.com" <jdub@nospamforme.com> wrote in
<news:Xns9568E9E70A5591956671821@207.115.63.158>:

> it was suggested to filter on the User-Agent header, as he uses OE
> on a Mac to post and the particular group in question is for a
> Windows-only graphics product.
>
> Can this be done in Xnews?

Yes.  It will only work if your server supports the XHDR command;
otherwise Xnews can only score on the headers it gets initially with
XOVER, and they don't include User-Agent.

> I'm trying to use the score file but can't seem to get it to work.
> Now shows
>
> (group name)
> Score:: -9999
> XRef: User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022
>
> Thanks!

You don't want the "Xref" in there.

 [group name]
   Score:: -9999
   User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5\.02\.2022

The backslashes are escape characters.  Without them, the dots are
special characters;  the backslashes make them literal dots.

You might want to score them higher than -9999 until you are sure the
rule is working as you wish.

-- 
»Q«
     <http://www.cotse.net/users/putty/help.htm>
Technical Details
Message-ID: <MrQ95693500FB49itsmeitsQ@QsFQDN.dyndns.org>
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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!not-for-mail
References: <Xns9568E9E70A5591956671821@207.115.63.158>

Show Full Headers
Complete Article Headers
Message-ID: <MrQ95693500FB49itsmeitsQ@QsFQDN.dyndns.org>
Subject: Re: Xnews: kill based on user-agent?
Date: Sun, 19 Sep 2004 05:19:32 GMT
From: »Q« <boxcars@gmx.net>
References: <Xns9568E9E70A5591956671821@207.115.63.158>
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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: we don't need no stinkin' organization
Lines: 37
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 5h5BoESCYjGh9m1mbHWm3AsnB40iETg/hi/pnaDJH+zdPtc99T
X-Orig-X-Complaints-To: <http://www.cybergecko.com/complain.htm>
X-Face: *#`F(_&o, GRH~~$V&ByU1LZAWc]JgxuT`Pv2y0`&JE`(=*PcC>#m2]xv]p,
 i|9mDJ+8dGMJl`V[!z]\N}qrLTHjU]Sew>rQBShT_8.(0Q(iH,
 Gu7k|y/)^!@oVydVrix*#|-|u2~zgA'U3nQ_fa#jXvcGL[9f:>8?U=hXYK3D~*}Gq$TjPe1WXEFLGTiB3ot!oMH"'(Jop0(\0C