Thread View: news.software.nntp
2 messages
2 total messages
Started by Iulius
Sun, 01 Apr 2007 14:39
Some improvement to INN's handling control articles
Author: Iulius
Date: Sun, 01 Apr 2007 14:39
Date: Sun, 01 Apr 2007 14:39
43 lines
2544 bytes
2544 bytes
Hi, I have been testing them for four months and everything seems to work fine. These patches for INN are for the « newsgroups » file to be more accurate: newgroup control articles for existing groups change their description. And there is a better checkgroups handling: duplicated, obsolete or missing lines are shown, as well as groups whose description has changed. By the way, I wonder whether the best thing to do regarding « docheckgroups » would not be to *automatically* do the changes needed in the « newsgroups » file. What do you think of that? It is very easy to implement and I believe it would be better for newsmasters (their « newsgroups » file would indeed be up to date). For « newgroup.pl », here is what I have: http://people.via.ecp.fr/~iulius/inn2/newgroup (the whole perl script) http://people.via.ecp.fr/~iulius/inn2/newgroup.diff (the diff file) And for « checkgroups.pl », I prevent it from sending a mail when there is nothing to change: http://people.via.ecp.fr/~iulius/inn2/checkgroups (the whole perl script) http://people.via.ecp.fr/~iulius/inn2/checkgroups.diff (the diff file) As for « docheckgroups »: http://people.via.ecp.fr/~iulius/inn2/docheckgroups (the whole shell script) http://people.via.ecp.fr/~iulius/inn2/docheckgroups.diff (the diff file) Feel free to use! -- Iulius « Tu quoque fili... Ce Brutus... Je finirai par avoir des ennuis avec ce garnement ! » (César)
Re: Some improvement to INN's handling control articles
Author: Iulius
Date: Mon, 02 Apr 2007 14:18
Date: Mon, 02 Apr 2007 14:18
42 lines
2533 bytes
2533 bytes
En réponse à Iulius :
> By the way, I wonder whether the best thing to do regarding
> « docheckgroups » would not be to *automatically* do the changes needed
> in the « newsgroups » file.
I think it is the right thing to do.
But on no account should we change the docheckgroups behaviour (if
people test it in command line, I assume they do not want to blow up
their newsgroups file!).
So here is what I suggest:
* a new doupdategroups shell script:
--> http://people.via.ecp.fr/~iulius/inn2/doupdategroups
which only updates the newsgroups file (replacing all the descriptions
present by the new ones);
* in checkgroups.pl, after the call of:
system("$inn::pathbin/docheckgroups", $newsgrouppats);
add the call of:
system("$inn::pathbin/doupdategroupsgroups", $newsgrouppats);
and add a line in @output to say that the newsgroups file has been
automatically updates.
Thus, people might want to do:
cat checkgroups | docheckgroups
and see the changes to make to both their active and newsgroups file.
As for their active file, they do:
cat checkgroups | docheckgroups | sh
As for their newsgroups file, they do:
cat checkgroups | doupdategroups
Easy and useful, isn't it?
--
Iulius
« Hâte-toi de bien vivre et songe que chaque jour
est à lui seul une vie. » (Sénèque)
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