🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #255402

Re: [SLRN] scoring question

#255402
From: Whiskers
Date: Sat, 10 Aug 2013 13:07
40 lines
2396 bytes
On 2013-08-10, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
> In message <slrnl0bvnj.pdk.steve@snorky.mixmin.net> 
>   Steve Crook <steve@mixmin.net> wrote:
>> On Sat, 10 Aug 2013 03:08:45 +0000 (UTC), Lewis wrote in
>> Message-Id: <slrnl0bblu.e2d.g.kreme@mbp55.local>:
>
>>> Let's say i want to score on a header like "Organization" which may or
>>> may not be present. I want to achieve the following:
>>>
>>> If the header is present, and contains anything except "Acme, Inc" I
>>> want to give it a score of +100. If the header is not present, I don't
>>> want to do anything.
>
>> I would probably break it into 2 parts:
>> Score +100 for having an Organization header
>> Score -100 if Organization is "Acme, Inc"
>
> Right, that's what I do now. Does that mean there is no way to say "If
> contents are not <stuff>" without two rules?
>
>> Score: 100
>>     Organization: .*
>
>> Score:: -100
>>     Organization: Acme, Inc
>
> At least I'm not missing anything.

Does this work?:

#v+
Score: +100	%Any org but Acme
	Organization: .*
	~Organization: Acme, Inc
#v-

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Technical Details
Message-ID: <slrnl0ceon.1mn.catwheezel@ID-107770.user.individual.net>
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!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrnl0bblu.e2d.g.kreme@mbp55.local> <slrnl0bvnj.pdk.steve@snorky.mixmin.net> <slrnl0c5b2.fa2.g.kreme@mgb.local>

Show Full Headers
Complete Article Headers
Message-ID: <slrnl0ceon.1mn.catwheezel@ID-107770.user.individual.net>
Subject: Re: [SLRN] scoring question
Date: Sat, 10 Aug 2013 14:07:35 +0100
From: Whiskers <catwheezel@operamail.com>
References: <slrnl0bblu.e2d.g.kreme@mbp55.local> <slrnl0bvnj.pdk.steve@snorky.mixmin.net> <slrnl0c5b2.fa2.g.kreme@mgb.local>
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!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: is an alien concept
Lines: 40
X-Trace: individual.net A4VG4u9p5GeOirZ1jTeKwAcQLjebw0Y3GxbCw+CX3v6RUNXInb
X-Orig-Path: tavy.mobile.private!not-for-mail
Cancel-Lock: sha1:bCBEBTkrC3/otk2cybLPYZdB+Jk=
X-Face: (8UIp\C%, 7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_
 "Pmt)1xC~QW%bU/xrlDuux";
 aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00
 xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@
 p&  g^8<z5>HA
User-Agent: slrn/1.0.1 (Linux)