Thread View: news.software.readers
5 messages
5 total messages
Started by Mike Mckinney
Mon, 01 Jul 1996 00:00
slrn & regexp's ?
Author: Mike Mckinney
Date: Mon, 01 Jul 1996 00:00
Date: Mon, 01 Jul 1996 00:00
23 lines
1097 bytes
1097 bytes
Does the slrn score file understand regular expressions for killing posts at all? I tried the following, with no success at all: Score: -9999 Subject:^.*2940.* And several variations on that, with no success at all.. My intent was to kill any posts at all with 2940 in the subject, whether it was an original post, or a followup. I have read both score.txt & KILL_FAQ, but am still unclear on what is allowed/accepted in the slrn Score file. Any help or pointers would be greatly appreciated. mike@bga.com
Re: slrn & regexp's ?
Author: J.B. Nicholson-Owens
Date: Mon, 01 Jul 1996 00:00
Date: Mon, 01 Jul 1996 00:00
60 lines
2587 bytes
2587 bytes
On 1 Jul 1996 07:15:15 GMT, Mike Mckinney <mike@bga.com> wrote: > Does the slrn score file understand regular expressions for > killing posts at all? Yes. > I tried the following, with no success at all: > > Score: -9999 > Subject:^.*2940.* Try: [<newsgroup(s) go here>] Score: -9999 Subject: 2940 > And several variations on that, with no success at all.. Probably because you didn't specify where to apply the score (you need to specify one or more newsgroups). For instance, to kill all articles in all newsgroups where the string ``2940'' appears anywhere in the subject: [*] Score: -9999 Subject: 2940 The [...] uses a modified regexp to handle wildmat expressions (and comma separated lists as of slrn v0.8.8.3). The ``.*'' surrounding the Subject: regexp are implied if unstated (and if there aren't more exacting expressions like ``^2940$''). However, there is no need to specify ``^'' because you aren't referencing anything particular about the beginning of the line. > I have read both score.txt & KILL_FAQ, but am still unclear > on what is allowed/accepted in the slrn Score file. See the score.txt file where it describes and gives an example of the scorefile format, specifically: The file is divided into sections delimited by a newsgroup enclosed in square brackets. Or see subject 2 in the slrn KILL_FAQ file (``What is the format of an slrn score file?'') for an overview of the format of the score file and more examples, specifically the part that says Each section must start with a line that contains the name of the newsgroup, enclosed in square brackets, for which the scores defined by that section apply. and subject 3 (``How do I assign a score to a specific subject, e.g., `test' messages?'') for a reference to handling a single subject such as you want to do with ``2940''. -- Due to local news server and feed problems, I might not see all followups.
Re: slrn & regexp's ?
Author: John E. Davis
Date: Mon, 01 Jul 1996 00:00
Date: Mon, 01 Jul 1996 00:00
23 lines
1155 bytes
1155 bytes
On 1 Jul 1996 07:15:15 GMT, Mike Mckinney <mike@bga.com> wrote: : I tried the following, with no success at all: : : Score: -9999 : Subject:^.*2940.* You need a space between Subject: and the RE, i.e., Subject: ^.*2940.* Since all you are doing is trying to kill subjects containing the string `2940', it is simpler to specify: Subject: 2940 -- John E. Davis Center for Space Research/AXAF Science Center 617-258-8119 MIT 37-662c, Cambridge, MA 02139 http://space.mit.edu/~davis
Re: slrn & regexp's ?
Author: Mike Mckinney
Date: Tue, 02 Jul 1996 00:00
Date: Tue, 02 Jul 1996 00:00
23 lines
1035 bytes
1035 bytes
Okay, that problem is solved...Here's just one more Q. I want to Score all messages with mike@apm<generic #>.realtime.net in the References, and have tried the following: [*] Score: +9999 References: mike@*\.realtime\.net And: References: mike@apm????\.realtime\.net But neither will work. Have I missed something obvious here? mike@bga.com
Re: slrn & regexp's ?
Author: Mike Mckinney
Date: Tue, 02 Jul 1996 00:00
Date: Tue, 02 Jul 1996 00:00
47 lines
1798 bytes
1798 bytes
On 1 Jul 1996 18:29:14 GMT, J.B. Nicholson-Owens <jbn@mystery-train.cu-online.com> wrote: >On 1 Jul 1996 07:15:15 GMT, Mike Mckinney <mike@bga.com> wrote: >> Does the slrn score file understand regular expressions for >> killing posts at all? > >Yes. > >> I tried the following, with no success at all: >> >> Score: -9999 >> Subject:^.*2940.* > >Try: > >[<newsgroup(s) go here>] >Score: -9999 > Subject: 2940 > Yes, I had that, but left it out since it would have just wasted bandwith. >Probably because you didn't specify where to apply the score (you need to >specify one or more newsgroups). For instance, to kill all articles in all >newsgroups where the string ``2940'' appears anywhere in the subject: > >[*] >Score: -9999 > Subject: 2940 But anyway, it turns out that the problem was that I had several "Subject:" lines for the same newsgroup, but only one : instead of two. Thanks for the followup, with advice, and sorry for confusing the issue by not including the part of the kill that was spec- ifying the newsgroup I wanted it applied to. mike@bga.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