Article View: news.software.readers
Article #30697Re: Writing Gravity Rules to Include Lists
From: Marwan Shaban
Date: Mon, 03 Feb 1997 00:00
Date: Mon, 03 Feb 1997 00:00
34 lines
1887 bytes
1887 bytes
In article <MPG.d5d36cf1937fa4989686@news.acc-net.com>, stushank@acc- net.com says... > I have a list of approximately 20 posters whose articles I wish to mark > as important. Is there a way to incorporate such a list into a single > rule? Or is it necessary to write 20 rules? Is it possible to modify the > Important Words Rule to apply only to the _from_ field? > > Help. My attempts have lead to nothing but *Bad condition expression* > warnings. I want to believe there is a way to do this with only one rule. Sure, you can do it with one rule. Just add a couple of important words (through the dialog) and then look at the rule it generates. You can use the same condition format for your rule, but have it only look at the From field. The condition would look something like this: From contains reg. expr. "(user2|user1)" Or, you can separate the users into separate lines, like: From contains "user1" or From contains "user2" The latter avoids regular expressions (regular expressions are generally slower). You can compare the performance of the above two alternatives using the rule-statistics screen (in version 1.1, "view -> rule statistics"). -- Marwan Shaban marwan@microplanet.com
Technical Details
Message-ID:
<MPG.d5fde95da80b65989697@cortez>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<MPG.d5d36cf1937fa4989686@news.acc-net.com>Show Full Headers
Complete Article Headers
Message-ID: <MPG.d5fde95da80b65989697@cortez> Subject: Re: Writing Gravity Rules to Include Lists Date: Mon, 03 Feb 1997 00:00:00 +0000 From: marwan@microplanet.com (Marwan Shaban) References: <MPG.d5d36cf1937fa4989686@news.acc-net.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 214159539 Organization: MicroPlanet, Inc. Newsgroups: alt.usenet.offline-reader,news.software.readers