🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83896

Re: Cleanfeed Update

#83896
From: Steve Crook
Date: Fri, 25 Feb 2011 09:59
29 lines
2077 bytes
On Thu, 24 Feb 2011 19:34:12 -0800, D. Stussy wrote in
Message-Id: <ik77uq$53n$1@snarked.org>:

> Is there a rule to count how many times a URL (especially, http://www....)
> appears in an article, either as a pure count or as a ratio to the number
> of lines of text?

Yes, there's $urlcount which returns a count of the number of lines
containing URLs.  There's also $urlratio which returns the percentage of
lines in the post containing URLs.

Both of these are defined during the Scoring section so they're only
accessible from:
local_filter_scoring
local_filter_last


> I'm thinking of something like:  More than 5 URLs and more than 50% of the
> text (rejects or scores spammy).  This should permit URL references that
> are cited as sources for text (appropriate for some replies, especially
> political groups), and permit single or two URL references in response to a
> question, but discourage URL lists.
Currently the urlratio is used to weight scorings where:-
 >80% Scores 4
 >50% Scores 3
 >30% Scores 2
 >10% Scores 1
 No URL's in a posting scores -2
Technical Details
Message-ID: <slrnimevch.3b8.steve@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
References: <slrnimcu38.3b8.steve@news.mixmin.net> <ik77uq$53n$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnimevch.3b8.steve@news.mixmin.net>
Subject: Re: Cleanfeed Update
Date: Fri, 25 Feb 2011 09:59:45 +0000
From: Steve Crook <steve@mixmin.net>
References: <slrnimcu38.3b8.steve@news.mixmin.net> <ik77uq$53n$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Injection-Date: Fri, 25 Feb 2011 09:59:45 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="23799"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-26 (Linux)
Lines: 28
X-Original-Bytes: 1867