Thread View: news.software.readers
2 messages
2 total messages
Started by Stuart M. Shank
Sat, 01 Feb 1997 00:00
Writing Gravity Rules to Include Lists
Author: Stuart M. Shank
Date: Sat, 01 Feb 1997 00:00
Date: Sat, 01 Feb 1997 00:00
14 lines
1028 bytes
1028 bytes
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. Stu stushank@acc-net.com
Re: Writing Gravity Rules to Include Lists
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads