Thread View: news.software.readers
10 messages
10 total messages
Started by Kenny McCormack
Sun, 23 May 2021 21:35
trn4: Where are memorized command stored?
Author: Kenny McCormack
Date: Sun, 23 May 2021 21:35
Date: Sun, 23 May 2021 21:35
32 lines
2224 bytes
2224 bytes
I had an accident with keystrokes (think: cat walked on keyboard) while I
was reading news with trn (version 4). Somehow, a certain thread got
marked as "memorized", so that whenever I join that particular group, it
gets "selected". I, of course, want to undo this operation.
tl;dr: I eventually figured out that hitting T then c on that thread would
"de-memorize" it, so problem is solved. However, ...
I would like to know how/where this command gets stored - so that I could
just edit it out of that file. I know about killfiles and where they are
stored and frequently end up editing them by hand, so no problem doing that
if needed. But, here's the thing:
1) Everything in the man page ("man trn"), says that "memorized"
commands are stored in the killfile (either the so-called "global"
killfile or the group-specific killfile). But this doesn't seem to
be the case, because...
2) There was nothing in either killfile that had to do with
the memorization of this thread. I can tell this by the access
date/time on the killfile file and/or by comparing the file (via
the "diff" utility) to a previous version of it. I can state with
pretty close to total certainty, that there's nothing in either
file having to do with this memorization stuff.
So, it must be stored somewhere else. Where?
P.S. I suspect that something got changed in the software and the docs
(the man page) was not updated. So, they are out of sync.
--
The only thing Trump's made great again is Saturday Night Live.
Re: trn4: Where are memorized command stored?
Author: Adam H. Kerman
Date: Sun, 23 May 2021 21:57
Date: Sun, 23 May 2021 21:57
17 lines
1425 bytes
1425 bytes
Kenny McCormack <gazelle@shell.xmission.com> wrote: >I had an accident with keystrokes (think: cat walked on keyboard) while I >was reading news with trn (version 4). Somehow, a certain thread got >marked as "memorized", so that whenever I join that particular group, it >gets "selected". I, of course, want to undo this operation. >tl;dr: I eventually figured out that hitting T then c on that thread would >"de-memorize" it, so problem is solved. However, ... >I would like to know how/where this command gets stored - so that I could >just edit it out of that file. In a specific newsgroup, ^k will bring up the kill file for editing. Mine are in ~/News/Kill. I don't remember if that's default or I set that somewhere.
Re: trn4: Where are memorized command stored?
Author: Kenny McCormack
Date: Sun, 23 May 2021 22:09
Date: Sun, 23 May 2021 22:09
25 lines
1791 bytes
1791 bytes
In article <s8ej4b$4p7$1@dont-email.me>, Adam H. Kerman <ahk@chinet.com> wrote: >Kenny McCormack <gazelle@shell.xmission.com> wrote: > >>I had an accident with keystrokes (think: cat walked on keyboard) while I >>was reading news with trn (version 4). Somehow, a certain thread got >>marked as "memorized", so that whenever I join that particular group, it >>gets "selected". I, of course, want to undo this operation. > >>tl;dr: I eventually figured out that hitting T then c on that thread would >>"de-memorize" it, so problem is solved. However, ... > >>I would like to know how/where this command gets stored - so that I could >>just edit it out of that file. > >In a specific newsgroup, ^k will bring up the kill file for editing. > >Mine are in ~/News/Kill. I don't remember if that's default or I set >that somewhere. Thanks, but I have already painstakingly established that they are not there. They are somewhere else. -- Faith doesn't give you the answers; it just stops you from asking the questions.
Re: trn4: Where are memorized command stored?
Author: Adam H. Kerman
Date: Mon, 24 May 2021 01:14
Date: Mon, 24 May 2021 01:14
27 lines
1836 bytes
1836 bytes
Kenny McCormack <gazelle@shell.xmission.com> wrote: >Adam H. Kerman <ahk@chinet.com> wrote: >>Kenny McCormack <gazelle@shell.xmission.com> wrote: >>>I had an accident with keystrokes (think: cat walked on keyboard) while I >>>was reading news with trn (version 4). Somehow, a certain thread got >>>marked as "memorized", so that whenever I join that particular group, it >>>gets "selected". I, of course, want to undo this operation. >>>tl;dr: I eventually figured out that hitting T then c on that thread would >>>"de-memorize" it, so problem is solved. However, ... >>>I would like to know how/where this command gets stored - so that I could >>>just edit it out of that file. >>In a specific newsgroup, ^k will bring up the kill file for editing. >>Mine are in ~/News/Kill. I don't remember if that's default or I set >>that somewhere. >Thanks, but I have already painstakingly established that they are not there. >They are somewhere else. Look through your environment variables, then. Wayne used to read this newsgroup. Maybe he'll poke his nose in.
Re: trn4: Where are memorized command stored?
Author: Joanna Shuttleworth
Date: Mon, 24 May 2021 07:46
Date: Mon, 24 May 2021 07:46
33 lines
2323 bytes
2323 bytes
On 2021-05-23, Kenny McCormack <gazelle@shell.xmission.com> wrote:
> I had an accident with keystrokes (think: cat walked on keyboard) while I
> was reading news with trn (version 4). Somehow, a certain thread got
> marked as "memorized", so that whenever I join that particular group, it
> gets "selected". I, of course, want to undo this operation.
>
> tl;dr: I eventually figured out that hitting T then c on that thread would
> "de-memorize" it, so problem is solved. However, ...
>
> I would like to know how/where this command gets stored - so that I could
> just edit it out of that file. I know about killfiles and where they are
> stored and frequently end up editing them by hand, so no problem doing that
> if needed. But, here's the thing:
>
> 1) Everything in the man page ("man trn"), says that "memorized"
> commands are stored in the killfile (either the so-called "global"
> killfile or the group-specific killfile). But this doesn't seem to
> be the case, because...
>
> 2) There was nothing in either killfile that had to do with
> the memorization of this thread. I can tell this by the access
> date/time on the killfile file and/or by comparing the file (via
> the "diff" utility) to a previous version of it. I can state with
> pretty close to total certainty, that there's nothing in either
> file having to do with this memorization stuff.
>
> So, it must be stored somewhere else. Where?
>
> P.S. I suspect that something got changed in the software and the docs
> (the man page) was not updated. So, they are out of sync.
>
use the source, Luke
Re: trn4: Where are memorized command stored?
Author: Lewis
Date: Mon, 24 May 2021 10:21
Date: Mon, 24 May 2021 10:21
48 lines
3122 bytes
3122 bytes
In message <7RIqI.835623$zV01.515671@usenetxs.com> Joanna Shuttleworth <js@example.net> wrote:
> On 2021-05-23, Kenny McCormack <gazelle@shell.xmission.com> wrote:
>> I had an accident with keystrokes (think: cat walked on keyboard) while I
>> was reading news with trn (version 4). Somehow, a certain thread got
>> marked as "memorized", so that whenever I join that particular group, it
>> gets "selected". I, of course, want to undo this operation.
>>
>> tl;dr: I eventually figured out that hitting T then c on that thread would
>> "de-memorize" it, so problem is solved. However, ...
>>
>> I would like to know how/where this command gets stored - so that I could
>> just edit it out of that file. I know about killfiles and where they are
>> stored and frequently end up editing them by hand, so no problem doing that
>> if needed. But, here's the thing:
>>
>> 1) Everything in the man page ("man trn"), says that "memorized"
>> commands are stored in the killfile (either the so-called "global"
>> killfile or the group-specific killfile). But this doesn't seem to
>> be the case, because...
>>
>> 2) There was nothing in either killfile that had to do with
>> the memorization of this thread. I can tell this by the access
>> date/time on the killfile file and/or by comparing the file (via
>> the "diff" utility) to a previous version of it. I can state with
>> pretty close to total certainty, that there's nothing in either
>> file having to do with this memorization stuff.
>>
>> So, it must be stored somewhere else. Where?
>>
>> P.S. I suspect that something got changed in the software and the docs
>> (the man page) was not updated. So, they are out of sync.
>>
> use the source, Luke
Or, probably simpler, pick a random thread with a distinctive rod in the
subject in a group you do not normally subscribe to. grep your trn files
for that group name, mark the thread as memorized, then grep again.
Chances are very good you will see a file has changed.
Also, searching "trn memorize:" brings up some threads for a group hosted
on <spit> sourceforge that might be helpful?
--
'Now what?' it said. IT'S UP TO YOU. IT'S ALWAYS UP TO YOU.
--Maskerade
Re: trn4: Where are memorized command stored?
Author: Eli the Bearded
Date: Mon, 24 May 2021 18:30
Date: Mon, 24 May 2021 18:30
43 lines
3021 bytes
3021 bytes
In news.software.readers, Kenny McCormack <gazelle@shell.xmission.com> wrote: > 2) There was nothing in either killfile that had to do with > the memorization of this thread. I can tell this by the access > date/time on the killfile file and/or by comparing the file (via > the "diff" utility) to a previous version of it. I can state with > pretty close to total certainty, that there's nothing in either > file having to do with this memorization stuff. I think there are three places it could be. Global killfile I do not think is ever added to by trn, you have to edit it manually. (Corrections welcome.) Group killfiles can be added by commands in the newreader, and edited by typing <ctrl-k> at article selection level. I use this, and I think this is likely the most commonly used filtering in trn. Where those live is configurably, but it defaults to (eg) ~/News/news/software/readers/KILL . It is not easy to do _accidentally_ add rules there. Third case, and easiest to accidentally trigger, is the scoring rules, backported from some some trn fork, and not well documented. The default location for those is ~/.trn/savedscores . [ Examing code, I see there is another filtering/scoring system in trn, but that one is even less likely to be accidentally triggered, as you have to first configure a filter script. Those ones apparently get saved as (eg) ~/News/Filters/News.software.readers ] I don't really know the format of the savedscores files, I have some 200 lines in mine. It _appears_ to take a format like: !group.name :articleno .rules Where the .rules line may or may not exist. I think after the article with the number expires, the rules become moot. If your news server doesn't expire articles, probably removing the triplet of lines would work, or just dropping the dot line with the rules. Or you, know, just delete the whole savedscores file. Elijah ------ mostly has rulesets without dot lines
Re: trn4: Where are memorized command stored?
Author: Steven M. O'Neill
Date: Fri, 28 May 2021 19:25
Date: Fri, 28 May 2021 19:25
9 lines
1271 bytes
1271 bytes
Eli the Bearded <*@eli.users.panix.com> wrote: >Or you, know, just delete the whole savedscores file. Or rename it with a "funny" name so trn can't find it. -smo (trn4 user who makes these files by finger-fumble fairly frequently) -- Steven O'Neill steveo@panix.com Brooklyn, NY http://www.panix.com/~steveo
Re: trn4: Where are memorized command stored?
Author: Eli the Bearded
Date: Fri, 28 May 2021 20:11
Date: Fri, 28 May 2021 20:11
19 lines
1517 bytes
1517 bytes
In news.software.readers, Steven M. O'Neill <steveo@panix.com> wrote: > Eli the Bearded <*@eli.users.panix.com> wrote: >> Or you, know, just delete the whole savedscores file. > Or rename it with a "funny" name so trn can't find it. Perhaps you could future proof that with: ed ~/.trn/trnrc <<_EDIT /^\[environment\] a SAVESCOREFILE=/dev/null . w q _EDIT Elijah ------ /dev/null is funny, right?
Re: trn4: Where are memorized command stored?
Author: Steven M. O'Neill
Date: Fri, 28 May 2021 20:36
Date: Fri, 28 May 2021 20:36
29 lines
1700 bytes
1700 bytes
Eli the Bearded <*@eli.users.panix.com> wrote: >In news.software.readers, Steven M. O'Neill <steveo@panix.com> wrote: >> Eli the Bearded <*@eli.users.panix.com> wrote: >>> Or you, know, just delete the whole savedscores file. >> Or rename it with a "funny" name so trn can't find it. > >Perhaps you could future proof that with: > > ed ~/.trn/trnrc <<_EDIT > /^\[environment\] > a > SAVESCOREFILE=/dev/null > . > w > q > _EDIT I don't know; rc files are so much work. >Elijah >------ >/dev/null is funny, right? Also that; panix would have to hire someone to mop all the bits off the floor. -- Steven O'Neill steveo@panix.com Brooklyn, NY http://www.panix.com/~steveo
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