Thread View: news.software.nn
5 messages
5 total messages
Started by Bill Wohler
Fri, 09 Sep 1994 06:16
Suppressing kill entries for selected groups
Author: Bill Wohler
Date: Fri, 09 Sep 1994 06:16
Date: Fri, 09 Sep 1994 06:16
15 lines
1168 bytes
1168 bytes
Folks, I have the following kill file entry to select all articles that announce something or another: :+s:announce I want to turn this off in all .announce newsgroups (for obvious reasons). However, I still want other selections to take place so deselecting all in an "on entry" stanza is unacceptable. Ideas? Bill Wohler <wohler@newt.com> President, Newt Software
Re: Suppressing kill entries for selected groups
Author: Casper Maarbjerg
Date: Sat, 10 Sep 1994 14:54
Date: Sat, 10 Sep 1994 14:54
22 lines
1468 bytes
1468 bytes
wohler@newt.com (Bill Wohler) writes:
> I have the following kill file entry to select all articles that
> announce something or another:
>
> :+s:announce
>
> I want to turn this off in all .announce newsgroups (for obvious
> reasons). However, I still want other selections to take place so
> deselecting all in an "on entry" stanza is unacceptable.
How about putting a regular expression in the group name part:
/\.[^a][^n][^n][^o][^u][^n][^c][^e]:+s/:announce
^
I think you also want a / after the +s, or you'd get a strict match only.
It would have been convenient to say /\.!(announce) , BTW, but I don't
think it will work.
--
Casper Maarbjerg / Danmarks Radio TV / casper@dr.dk Voice:+45 35 20 27 79
Re: Suppressing kill entries for selected groups (SUMMARY)
Author: Bill Wohler
Date: Mon, 12 Sep 1994 19:46
Date: Mon, 12 Sep 1994 19:46
18 lines
1340 bytes
1340 bytes
Bill Wohler <wohler@newt.com> writes: > I have the following kill file entry to select all articles that > announce something or another: > > :+s:announce > > I want to turn this off in all .announce newsgroups (for obvious > reasons). However, I still want other selections to take place so > deselecting all in an "on entry" stanza is unacceptable. I received the following from casper@dr.dk (Casper Maarbjerg) which works: How about putting a regular expression in the group name part: /\.[^a][^n][^n][^o][^u][^n][^c][^e]:+s/:announce Bill Wohler <wohler@newt.com> President, Newt Software
Re: Suppressing kill entries for selected groups (SUMMARY)
Author: Casper Maarbjerg
Date: Wed, 14 Sep 1994 23:23
Date: Wed, 14 Sep 1994 23:23
43 lines
2487 bytes
2487 bytes
wohler@newt.com (Bill Wohler) writes:
[...]
> I received the following from casper@dr.dk (Casper Maarbjerg) which works:
>
> How about putting a regular expression in the group name part:
>
> /\.[^a][^n][^n][^o][^u][^n][^c][^e]:+s/:announce
<blush> I hurried off and cancelled the posting, as soon as I realized
that it doesn't work! - I'm glad if you can make use of it though.
As I read the pattern, it says "a literal period, followed by 8
characters, each position excluding a particular character", and as nn
is a little unpractical to use for testing, I used egrep:
1 $ sed -e 's/ .*$//' ~news/active >/tmp/act # list of pure names
2 $ wc -l /tmp/act # this many:
266 /tmp/act
3 $ egrep announce /tmp/act | wc -l # containing `announce'
8
4 $ egrep '\.[^a][^n][^n][^o][^u][^n][^c][^e]' /tmp/act | wc -l
128
5 $ egrep '\.[^a][^n][^n][^o][^u][^n][^c][^e]' /tmp/act | egrep announce
comp.security.announce
comp.sys.sgi.announce
news.announce.newgroups
news.announce.newusers
For instance, it correctly excludes alt.uu.announce, but only because
there isn't 8 characters preceeding the "negated" word.
And apparently, it would miss the pre-select in a lot of groups, given a
real feed. Or, perhaps my egrep is broken ? or nn understand the
sense of the expression ?
It really would have been nice, if you could negate the match, like
6 $ egrep -v announce /tmp/act | wc -l
258
Best Regards,
--
Casper Maarbjerg / Danmarks Radio TV / casper@dr.dk Voice:+45 35 20 27 79
Re: Suppressing kill entries for selected groups (SUMMARY)
Author: Bill Wohler
Date: Fri, 16 Sep 1994 19:00
Date: Fri, 16 Sep 1994 19:00
12 lines
1226 bytes
1226 bytes
Casper Maarbjerg <casper@dr.dk> writes: > <blush> I hurried off and cancelled the posting, as soon as I realized > that it doesn't work! - I'm glad if you can make use of it though. It seemed to work, until Richard Mathews and Casper pointed out that it didn't. So, I retract that statement that said that it worked for me. Unfortunately, I still haven't received any other answers. Bill Wohler <wohler@newt.com> President, Newt Software
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