Thread View: news.software.nn
3 messages
3 total messages
Started by Pond Scum
Fri, 15 Mar 2002 09:11
Problem with killfiles when NOV #define'd
Author: Pond Scum
Date: Fri, 15 Mar 2002 09:11
Date: Fri, 15 Mar 2002 09:11
35 lines
2695 bytes
2695 bytes
I'm running nn 6.6.2 and for the longest time, killfiles have been flaky.
I searched on Google and found that this question has been asked before
("Why do my killfiles stop working?"), but I didn't find an answer. I
finally got frustrated enough to look into this and spent the last hour
debugging on my ISP's shell machine. This is what I've found:
The killfile entries that are not working are the group-specific entries,
and the reason they are not working is (I think) that new groups have been
added on the NNTP reader server (my ISP has separate servers for NNTP
transport and NNTP newsreading). The compiled killfile contains something
like group numbers to match killfile entries to groups, and when groups are
added on the NNTP newsreader server, the association between this number,
and the actual group is broken, so the killfile entries are applied to the
wrong group, and it appears that the killfile is no longer working.
init_kill() depends on this test to decide whether to recompile the
kill file:
if (header.ckh_db_check != master.db_created) goto err;
and with NOV #define'd, master.db_created is always 0, which is the value
written to the compiled kill file. So this test never fails, so the only
time the kill file is compiled is if you type ":compile", or add an entry
to the kill file (or modify it by hand).
Since I run an executable built from my own copy of the source (rather than
the ISP's version), I'm tempted to just change the code to force a recompile
of the killfile every time I run nn. I've scanned thru the NNTP commands, and
it looks like it might be possible to use the NEWGROUPS command to at least
find out that there are new newsgroups, and force a recompile. I'm too lazy
to implement that right now though.
-Jonathan jhue@geocities.com
Re: Problem with killfiles when NOV #define'd
Author: Alan J Rosenthal
Date: Sat, 16 Mar 2002 21:00
Date: Sat, 16 Mar 2002 21:00
13 lines
1498 bytes
1498 bytes
jhue@geocities.com (Pond Scum) writes: >Since I run an executable built from my own copy of the source (rather than >the ISP's version), I'm tempted to just change the code to force a recompile >of the killfile every time I run nn. I have "/bin/rm -f ~/.nn/KILL.COMP" in my .logout. I've been wondering about this for a while. Are there any situations in these modern days of fast computers where it really helps not to recompile the kill file upon startup? Perhaps that 'if' statement should be removed and we should just always recompile the kill file upon startup (or always in the NOV case). Indeed it might not be necessary to store KILL.COMP on disk then.
Re: Problem with killfiles when NOV #define'd
Author: Pond Scum
Date: Sat, 16 Mar 2002 23:02
Date: Sat, 16 Mar 2002 23:02
24 lines
2104 bytes
2104 bytes
flaps@dgp.toronto.edu (Alan J Rosenthal) writes:
>I have "/bin/rm -f ~/.nn/KILL.COMP" in my .logout.
Someone emailed me and told me I could put this:
on start-up
:compile
end
in my init file. It's under the "Command Groups" section of the manual,
I never saw it when reading the manual from within nn because I never looked
in the right place.
>I've been wondering about this for a while. Are there any situations in
>these modern days of fast computers where it really helps not to recompile
>the kill file upon startup? Perhaps that 'if' statement should be removed and
>we should just always recompile the kill file upon startup (or always in the
>NOV case). Indeed it might not be necessary to store KILL.COMP on disk then.
Compilation of my 57 line kill file seems instantaneous to me. Hardly seems
worth the bother of deciding whether it needs recompilation.
-Jonathan jhue@geocities.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