Re: vsoup & score file

From: Robert P. Rush (bobr@mcs.com)
Date: Mon, 14 Jul 1997 14:44:31 -0500

Hi Karl and fellow Yarners,

On Sat, 12 Jul 1997 16:37:18 +0800,
In article <+I0xzM7ak09f092yn@eden.com>, ball8@eden.com (Karl R. Dalley) wrote:
> <sigh>
> I'm having problems with vsoup and my score file. Here's the
> situation -
> 1) the score file exists in the %HOME% directory
> 2) the yarnio.cmd file has a receive news line that says -
> soupRcvNews = soupProg '-maM -S2 -t8 -T100 -k0 -h ' rcvNewsDir ''
> 3) the score file reads -
> all {
> -1000 pattern newsgroups ,.*,.*,.*,.*,
commas ---------> ^ ^ ^ ^ ^

The pattern you're using will only match a newsgroups line containing
at least five commas separating _six_ newsgroups. Change the line to:
-1000 pattern newsgroups ,.*,.*,
if you want to match articles cross-posted to four or more news groups.

It may be easier to understand what's happening if you consider that
the three commas in the regular expression will match up with the
three commas in the newsgroups line that you're looking for. The ".*"
between the commas will match any text (newsgroup name) between the
commas.

> -1 pattern newgroups .*job
> -1 pattern subject make.*money
> -1 pattern subject \$\$\$
> -1 pattern subject *jobs*
^^^^^^

This is a questionable regular expression. I don't know what vsoup
will do with it, but it is illegal according to the POSIX rules. The
"*" suffix at the beginning of the expression has no character
preceding it making the expression illegal. The "*" suffix at the
end of the expression applies to the "s".

> }
>
> The problem I am experiencing is that messages posted to more than
> four newsgroups are still being added to my Yarn message base.
>
> Is this because I am not using the -K option on the receive news
> line?

Hardy already answered about the location of the file.

I would suggest trying the following score file. Changing the
patterns to search strings should speed up the matching.

all {
-1000 pattern newsgroups ,.*,.*,
-1 newgroups job
-1 pattern subject make.*money
-1 subject $$$
-1 subject jobs
}

Disclaimer: While I am familiar with the regular expressions and score
files used by vsoup, I do not personally use vsoup.

Let me know if you have any questions about regular expressions,

bob

-- 
Bob Rush                    | eschew obfuscation
bobr@mcs.com                |
<http://www.mcs.com/~bobr/> |

What if there were no hypothetical situations?