Article View: news.software.nn
Article #11485Re: Keeping track of news groups you posted last
From: Stefan Ram
Date: Wed, 09 Oct 2024 11:57
Date: Wed, 09 Oct 2024 11:57
71 lines
3649 bytes
3649 bytes
gaussianblue <gaussianblue@asymptote.invalid> wrote or quoted:
>Hello dear nn user community. I'm just curious about what you do
>to keep track of the news groups you've posted last.
Ok, I'm not an nn user, but I'd do this:
For the following, I assume a UN*X or Linux environment,
but the commandline tools used below should be available
for many other operating systems too.
0.
Make a backup of your current nn init file. I assume, you regulary
make backups of all files.
1.
Use "record" in you nn "init" file to record postings into a file.
Let's call this file the "record file".
2.
Instead of calling "nn" directly call it from a script from now on.
Let's call this script the "script file".
3.
At the start of the script file, before calling "nn", use
"grep" to get the "Newsgroups:" lines from the record file,
possibly abbreviating the output using "tail -999".
4.
Now process the output of the preceding step with something like
tac | cut -d ' ' -f2 | cut -d ',' -f1 |
awk '{if ($0 in s){}else print;s[$0]=1;}'
(this is one single line, folded for this post).
This will give you a list of the newsgroups you posted to with
the most recent newsgroup at the top.
5.
Save this as a temporary file.
Let's call this file the "temporary file".
6.
Now use "cat" to concatenate this temporary file directly behind your
previous nn init file (after its end) which previous nn init file
should end with the line "sequence", giving your new nn init file.
But keep a copy of the previous nn init file, for repeated executions
of this step.
Now, your new nn init file ends with "sequence" followed by the list
of newsgroups from step 4.
All steps from 3. to 6. are done in the script file each time before
"nn" is actually called.
7.
Now, nn should present you the newsgroups in the order you posted
to them with the newsgroup you posted to most recent shown first.
Technical Details
Message-ID:
<nn-20241009125214@ram.dialup.fu-berlin.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<lmlommFoh91U1@mid.dfncis.de>Show Full Headers
Complete Article Headers
Message-ID: <nn-20241009125214@ram.dialup.fu-berlin.de>
Subject: Re: Keeping track of news groups you posted last
Date: Wed, 09 Oct 2024 11:57:39 +0000
From: ram@zedat.fu-berlin.de (Stefan Ram)
References: <lmlommFoh91U1@mid.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.nn
Organization: Stefan Ram
Lines: 72
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de TAde9NLqm79JAdlB+kGDeAC87+NnzN4XTtzf9ydTBLfoPK
Keywords: last-posted
Cancel-Lock: sha1:2Gc8ZVxuN8EWAHUTQD+Ikg0e3XQ= sha256:0RabaXm60UQtzY+RlhxiUiNQu5JI4WkeWUT5XovfXOE=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US