Thread View: news.software.nntp
5 messages
5 total messages
Started by Jesse Rehmer
Wed, 11 Oct 2023 19:48
Finding deleted newsgroups with articles still on spool?
Author: Jesse Rehmer
Date: Wed, 11 Oct 2023 19:48
Date: Wed, 11 Oct 2023 19:48
13 lines
1817 bytes
1817 bytes
Is there an easy-ish way to get a list of newsgroups for which spool files exist (tradspool) but the newsgroup has been deleted? I thought the scanspool program was supposed to do that, and when ran it does report a few groups not in the active file, but when I'm feeding all my articles to a new server I see a ton of articles being rejected for groups that no longer exist in the active file, and they aren't mentioned by scanspool. In my case I believe what happened was initially I created a lot of groups that no longer exist, because I'm creating an archive, but later processed control messages automatically which removed groups. I'd like to get a list of these groups and re-add them with a status of 'x' to preserve them.
Re: Finding deleted newsgroups with articles still on spool?
Author: Ivo Gandolfo
Date: Wed, 11 Oct 2023 21:34
Date: Wed, 11 Oct 2023 21:34
24 lines
2071 bytes
2071 bytes
On 11/10/2023 21:48, Jesse Rehmer wrote: > Is there an easy-ish way to get a list of newsgroups for which spool files > exist (tradspool) but the newsgroup has been deleted? > > I thought the scanspool program was supposed to do that, and when ran it does > report a few groups not in the active file, but when I'm feeding all my > articles to a new server I see a ton of articles being rejected for groups > that no longer exist in the active file, and they aren't mentioned by > scanspool. > > In my case I believe what happened was initially I created a lot of groups > that no longer exist, because I'm creating an archive, but later processed > control messages automatically which removed groups. I'd like to get a list of > these groups and re-add them with a status of 'x' to preserve them. I'm using INN2, and I used "wanttrash" to obtain them in inn.conf. (with this you accept everything, and all finish in "junk" group). Sincerely -- Ivo Gandolfo
Re: Finding deleted newsgroups with articles still on spool?
Author: Julien ÉLIE
Date: Thu, 12 Oct 2023 07:09
Date: Thu, 12 Oct 2023 07:09
24 lines
2133 bytes
2133 bytes
Hi Jesse, > Is there an easy-ish way to get a list of newsgroups for which spool files > exist (tradspool) but the newsgroup has been deleted? > > I thought the scanspool program was supposed to do that, and when ran it does > report a few groups not in the active file, but when I'm feeding all my > articles to a new server I see a ton of articles being rejected for groups > that no longer exist in the active file, and they aren't mentioned by > scanspool. scanspool should report these inexisting groups in the active file. Do you have an example of path + file name of an article? Like the file: /home/news/spool/articles/news/software/nntp/1842 for which the news.software.nntp group is not listed in your active file but scanspool does not say so with a "not an active group directory" message? -- Julien ÉLIE « Medicus curat, natura sanat. »
Re: Finding deleted newsgroups with articles still on spool?
Author: Jesse Rehmer
Date: Thu, 12 Oct 2023 18:49
Date: Thu, 12 Oct 2023 18:49
27 lines
2446 bytes
2446 bytes
On Oct 12, 2023 at 2:09:22 AM CDT, "Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote: > Hi Jesse, > >> Is there an easy-ish way to get a list of newsgroups for which spool files >> exist (tradspool) but the newsgroup has been deleted? >> >> I thought the scanspool program was supposed to do that, and when ran it does >> report a few groups not in the active file, but when I'm feeding all my >> articles to a new server I see a ton of articles being rejected for groups >> that no longer exist in the active file, and they aren't mentioned by >> scanspool. > > scanspool should report these inexisting groups in the active file. > Do you have an example of path + file name of an article? > > Like the file: > /home/news/spool/articles/news/software/nntp/1842 > for which the news.software.nntp group is not listed in your active file > but scanspool does not say so with a "not an active group directory" > message? I'm starting to think the scanspool process was stopped before it completed. I was redirecting STDOUT and STDERR to a file, running in a screen, and assumed it completed, but I may have forgotten it was running when I applied updates and rebooted - whoop. It's re-running now, I'll check back in a day or two.
Re: Finding deleted newsgroups with articles still on spool?
Author: Adam W.
Date: Mon, 23 Oct 2023 23:46
Date: Mon, 23 Oct 2023 23:46
15 lines
1724 bytes
1724 bytes
Jesse Rehmer <jesse.rehmer@blueworldhosting.com> wrote:
> Is there an easy-ish way to get a list of newsgroups for which spool files
> exist (tradspool) but the newsgroup has been deleted?
I don't know about tradspool (I don't use it), but I keep some groups in
timehash.
This one-liner worked:
[news@kvm ~]$ find spool/articles -type f -exec grep ^Newsgroups: {} \; | awk '{print $2}'|sed 's/,/\n/g' | sort | uniq
It will report groups even if they're mentioned in the body (if someone
reposts an article, for example, and "Newsgroups:" appears at the start of
the line).
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