Thread View: news.software.nn
8 messages
8 total messages
Started by Adam Lasnik
Sat, 24 Dec 1994 21:52
Semi-newbie needs kill help
Author: Adam Lasnik
Date: Sat, 24 Dec 1994 21:52
Date: Sat, 24 Dec 1994 21:52
27 lines
1576 bytes
1576 bytes
Hello :) I've RTFM entry under "killfiles" several times, but STILL can't figure out how to do a simple kill. All I want to do is kill articles with a specific phrase from every group. I've tried :!s:mac vs pc with the understanding that leaving off the newsgroup name would make nn eliminate articles with "mac vs. pc" in them, case insensitive, from every group, regardless of whether the article was an original or "re:". But it doesn't work :( It doesn't eliminate ANY occurrence of articles containing the string. What am I missing? And a slightly more challenging question. What if I want to eliminate articles with subjects containing the words "help" from every ".picture" newsgroup? Help sent to me via e-mail would be particularly appreciated, and I'd be happy to compile a brief summary if such is desired or warranted. Thanks much and Happy Holidays! :) --ADAM
Re: Semi-newbie needs kill help
Author: Sven Guckes
Date: Sun, 25 Dec 1994 01:07
Date: Sun, 25 Dec 1994 01:07
25 lines
1718 bytes
1718 bytes
alasnik@nickel.ucs.indiana.edu (Adam Lasnik) writes:
>:!s:mac vs pc
>But it doesn't work :( It doesn't eliminate ANY occurrence of articles
>containing the string. What am I missing?
Hm, it *should* work.
Try this:
Quit NN and start it again. NN will notice that you`ve made a change to the
kill file and will therefore recompile it for use. Maybe it will work then.
>What if I want to eliminate articles with subjects containing the words
>"help" from every ".picture" newsgroup?
From the manual about newsgroups in a killfile entry:
/regular expression
If it starts with a slash `/' followed by a regular
expression (e.g. /^news\..*), the entry applies to all
groups whose name are matched by the regular expression.
Let`s see: "/\.picture:!s:help" should work then. Haven`t tried it yet.
Could anyone confirm whether it works?
Sven
Re: Semi-newbie needs kill help
Author: Adam Lasnik
Date: Sun, 25 Dec 1994 06:09
Date: Sun, 25 Dec 1994 06:09
40 lines
2436 bytes
2436 bytes
In <W7NVBZ8M@math.fu-berlin.de> Sven Guckes <guckes@inf.fu-berlin.de> writes: >alasnik@nickel.ucs.indiana.edu (Adam Lasnik) writes: >>:!s:mac vs pc >>But it doesn't work :( It doesn't eliminate ANY occurrence of articles >>containing the string. What am I missing? >Hm, it *should* work. I know it SHOULD, but it doesn't :( Restarting doesn't help, either. I even tried a REAL simple one... :!s:mac just to kill articles with the word "mac" in them (sorry Macintosh users... no offense intended! :) But that didn't work either. :( >>What if I want to eliminate articles with subjects containing the words >>"help" from every ".picture" newsgroup? >From the manual about newsgroups in a killfile entry: > /regular expression > If it starts with a slash `/' followed by a regular > expression (e.g. /^news\..*), the entry applies to all > groups whose name are matched by the regular expression. >Let`s see: "/\.picture:!s:help" should work then. Haven`t tried it yet. >Could anyone confirm whether it works? Okay, call me dumb or something, but even after reading that section in the manual three times, I STILL didn't understand it. I'm used to the clunky but simple DOS rules. *=wildcard ending... ?=wildcard character. This UNIX stuff has me baffled. I suppose, of course, I just oughtta bite the bullet and learn a bit more UNIX expression stuff, but since it seems like everything's moving to GUI (see Netscape), I've been hesitant to do that. Anyways, thanks, Sven for both the post and the e-mail, and I'm sorry to be such a pain on Christmas Eve! :) --ADAM
Re: Semi-newbie needs kill help
Author: Claus L{gel Rasmussen
Date: Mon, 26 Dec 1994 15:38
Date: Mon, 26 Dec 1994 15:38
140 lines
4406 bytes
4406 bytes
alasnik@nickel.ucs.indiana.edu (Adam Lasnik) complains that kill file entry
:!s:mac vs pc
does not work as expected.
He writes in particular:
>I've tried
>:!s:mac vs pc
>
>with the understanding that leaving off the newsgroup name would make nn
>eliminate articles with "mac vs. pc" in them, case insensitive, from
>every group, regardless of whether the article was an original or "re:".
Not quite:
"mac vs pc" != "mac vs. pc"
^
but if this isn't the explanation; you should start debugging...
- Are you sure nn is performing kill and/or selects at all ? This
is controlled by the "kill" variable. Check it to see if it is set
to true.
To check the setting of a variable; type:
:set kill [and then press the SPACE key immediately.
To return without altering the value of
the variable: Press Ctrl-C]
or...
:set /kill (shows all variables those names matches "kill")
:set all (shows the setting of all variables)
- Do you use case insignificant pattern matching ? Inspect the
"case-fold-search" variable. It should be set to true.
- Are you absolutly sure nn reads your kill file ? Put something
illegal in your kill file and see if nn complains.
- Are you using NOV and is it up and running ? Ask your system
administrator. (But finish this file first).
Then try this:
- Issue the
:show kill
command. It will create an output like this:
< GROUP dk.test kill list entries
< AUTO SELECT ON SUBJECT 'mac vs pc'
<
< GLOBAL kill list entries:
That is: In group dk.test select all entries those subject matches
"mac vs pc" (see below).
Studying this could tell what's wrong.
If you still don't have reached a solution, I'll suggest, you do what I
did to check the semantics of those kill file entries:
- First; post some articles to your local (or as local as possible)
test group (eg. dk.test) and use the most local distribution as
possible (eg. daimi). Subjects should be something like:
mac
mac vs pc
mac vs. pc
mac vs power pc
- Edit your kill file:
dk.test:+s:mac vs pc
Note: Limiting the select to only this particular group is the same
as limiting the number of things that can go wrnog.
Note: Doing a select instead of a kill is an aid in the debugging
process. You can actually see the "killed" subject's.
- Restart nn.
- Set the "kill-debug" variable to true:
:set kill-debug
- And jump to the test group...
G dk.test
When prompted; select all articles (prevents you from _not_ seeing
"read" articles).
Note: You are entering a new level here (a <level 2> shows up in
the prompt line). Use the
P
command to return.
"mac vs pc" files should now show up as selected files. Experiment.
Forget all about regular expressions for now. Later; I'll suggest the
following kill entry:
/^comp\.:!s&!s:mac:pc
as this one will kill all subjects matching "mac" and "pc", regardless of the
concrete occurrence of the words in the title. And it will only spend your
time doing it in the comp hierachy.
Yet another idea is to press...
K
and give the letter of one of the "mac vs pc" files when prompted. Nn will
now create a kill entry in your kill file. Comparing this entry to your own,
could possibly give a clue to what's wrong.
If it doesn't...
scream.
--
Claus L. Rasmussen email: shakti@daimi.aau.dk
Knudrisgade 14 B II voice: +45 86 18 42 65
8000 Aarhus C
Denmark
Re: Semi-newbie needs kill help
Author: Adam Lasnik
Date: Mon, 26 Dec 1994 16:29
Date: Mon, 26 Dec 1994 16:29
9 lines
1076 bytes
1076 bytes
Claus (and other kind souls who have helped), I will print out your advice and work with it for a bit, and then post back here to let you know how it goes. Thanks much for your detailed and helpful assistance :) --ADAM
Re: Semi-newbie needs kill help
Author: Claus L{gel Rasmussen
Date: Mon, 26 Dec 1994 17:24
Date: Mon, 26 Dec 1994 17:24
17 lines
1129 bytes
1129 bytes
I just discovered this: nn is sensible to trailing spaces and tabs in kill file entries. Eg. "dk.test:+s:mac " does not select as expected because of the two trailing spaces after "mac". -- Claus L. Rasmussen email: shakti@daimi.aau.dk Knudrisgade 14 B II voice: +45 86 18 42 65 8000 Aarhus C Denmark
Re: Semi-newbie needs kill help
Author: Mike Zorn
Date: Tue, 27 Dec 1994 05:41
Date: Tue, 27 Dec 1994 05:41
31 lines
2460 bytes
2460 bytes
In <3dj2b2$mmv@usenet.ucs.indiana.edu> alasnik@nickel.ucs.indiana.edu (Adam Lasnik) writes:
>In <W7NVBZ8M@math.fu-berlin.de> Sven Guckes <guckes@inf.fu-berlin.de> writes:
[some stuff deleted]
>>From the manual about newsgroups in a killfile entry:
>> /regular expression
>> If it starts with a slash `/' followed by a regular
>> expression (e.g. /^news\..*), the entry applies to all
>> groups whose name are matched by the regular expression.
>>Let`s see: "/\.picture:!s:help" should work then. Haven`t tried it yet.
>>Could anyone confirm whether it works?
> I'm used to the
>clunky but simple DOS rules. *=wildcard ending... ?=wildcard character.
>This UNIX stuff has me baffled. I suppose, of course, I just oughtta
>bite the bullet and learn a bit more UNIX expression stuff, but since it
Not all that hard, really:
>> expression (e.g. /^news\..*), the entry applies to all
!...says: look for 'news' in column 1
>>Let`s see: "/\.picture:!s:help" should work then.
!!... a dot (.) says: match any character, so if you
want to match a dot, you have to "escape" the dot with a \.
So /.picture would match 'spicture, epicture, even .picture
But /\.picture would only match '.picture'
I don't blame you for being puzzled after reading about regular
expressions - it's one of the more difficult aspects to understand.
You really have to work with it for a while to get it to sink in.
Luckily, you only need a little bit of it for what you want to do.
Could you post when you finally get it to work?
Re: Semi-newbie needs kill help
Author: Adam Lasnik
Date: Tue, 27 Dec 1994 06:49
Date: Tue, 27 Dec 1994 06:49
12 lines
1291 bytes
1291 bytes
In response to a previous poster's request... yes, I will post when I get this to work. However, it now seems like there's a problem on the system end. Even when I do auto-kills (from the 'K' command), things do not stay killed. When editing the KILL file, nn claims to be compiling, but nothing is killed. I'll be talking with some local network folks later this week, and I'll respond back most likely early next week. Thanks for everyone's help so far! :) --ADAM
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