Article View: news.software.readers
Article #255404Re: [SLRN] scoring question
From: Mike Yetto
Date: Sat, 10 Aug 2013 19:11
Date: Sat, 10 Aug 2013 19:11
55 lines
3319 bytes
3319 bytes
In a world where Whiskers <catwheezel@operamail.com> posts to Usenet. > 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- This would also score +100 if the Organization: header is empty. If there must be a value then use the following where at least one character is needed for the Organization: value. #v+ Score: +100 %Any org but Acme Organization: . ~Organization: Acme, Inc #v- Mike "dot plus would also work" Yetto -- "The solemn scepticism of science has replaced the sneering doubts of witty philosophers. The more positive knowledge we gain, the more we incline to question all that has been received without absolute proof." - Oliver Wendell Holmes
Technical Details
Message-ID:
<slrn20130810150622.214.twooffive@may.eternal-september.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!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!may.eternal-september.org!.POSTED!not-for-mailReferences:
<slrnl0bblu.e2d.g.kreme@mbp55.local> <slrnl0bvnj.pdk.steve@snorky.mixmin.net> <slrnl0c5b2.fa2.g.kreme@mgb.local> <slrnl0ceon.1mn.catwheezel@ID-107770.user.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn20130810150622.214.twooffive@may.eternal-september.org> Subject: Re: [SLRN] scoring question Date: Sat, 10 Aug 2013 15:11:16 -0400 From: Mike Yetto <myetto1@nycap.invalid> References: <slrnl0bblu.e2d.g.kreme@mbp55.local> <slrnl0bvnj.pdk.steve@snorky.mixmin.net> <slrnl0c5b2.fa2.g.kreme@mgb.local> <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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!may.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: slrn Mafia / Xnews Tong (emeritus) Lines: 55 Injection-Info: may.eternal-september.org; posting-host="8f28f292bb3c17954cd3e2591a175da1"; logging-data="20389"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tyi4O8+rE093gCburrd8YbBuhmxfHUZ0=" User-Agent: slrn/pre1.0.2-9 (Linux) X-The-Usenet-Improvement-Project: http://twovoyagers.com/improve-usenet.org/ X-No-Bananas: Yes (except Ray) Cancel-Lock: sha1:0xXRC+Lv4dC/FiVHc1zbHnI+rsY= sha1:UREXjNmwU5+hZqAixOnfoO/fWGU= X-Original-Bytes: 3113