Thread View: news.software.nntp
3 messages
3 total messages
Started by Russ Allbery
Sun, 09 Nov 2008 05:50
control-archive 1.0.0 released
Author: Russ Allbery
Date: Sun, 09 Nov 2008 05:50
Date: Sun, 09 Nov 2008 05:50
30 lines
2452 bytes
2452 bytes
I'm pleased to announce the first public release of control-archive.
This software generates an INN control.ctl configuration file from
hierarchy configuration fragments, verifies control messages using GnuPG
where possible, processes new control messages to update a newsgroup list,
archives new control messages, and exports the list of newsgroups in a
format suitable for synchronizing the newsgroup list of a Netnews news
server. It is the software that maintains the control message and
newsgroup lists available from ftp.isc.org.
You can download it from:
<http://www.eyrie.org/~eagle/software/control-archive/>
This package is maintained using Git; see the instructions on the above
page to access the Git repository.
Please let me know of any problems or feature requests not already listed
in the TODO file.
My plan going forward is to make periodic releases including any changes
that have gone into the control.ctl file or the PGP keys so that people
have a snapshot of the near-current configuration underlying control.ctl
to look at if they wish, probably shortly after I've processed a batch of
changes. I'll post a brief note to news.admin.hierarchies when I release
an update, but won't bother posting real software release announcements to
news.software.nntp unless something changes in the underlying software.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: control-archive 1.0.0 released
Author: Julien ÉLIE
Date: Sun, 09 Nov 2008 10:29
Date: Sun, 09 Nov 2008 10:29
57 lines
3515 bytes
3515 bytes
Hi Russ,
> Please let me know of any problems or feature requests not already listed
> in the TODO file.
* Also generating control.conf (DNews) and controlperm (C News)?
* Recognition of the new USEPRO checkgroups syntax (of course, when frozen,
with serial numbers and scopes).
[from TODO]
> Incoming control messages should be parsed for a character set and then
> newsgroup descriptions converted to UTF-8.
The problem is that control articles do not always declare their charset...
In case you manage to find something to do that *automatically*, you can
try to compare the results with what I found out *manually* (and which is
perhaps not up-to-date...):
if hierarchy in ['cn', 'han']:
newsgroups_utf8.write(unicode(line, 'gb18030').encode('utf-8'))
elif hierarchy in ['fido7', 'medlux', 'ukr']:
newsgroups_utf8.write(unicode(line, 'cp1251').encode('utf-8'))
elif hierarchy == 'fr':
# Scheduled to be 'iso-8858-15'.
newsgroups_utf8.write(unicode(line, 'cp1252').encode('utf-8'))
elif hierarchy in ['nctu', 'ncu', 'tw'] or group in ['scout.forum.chinese', 'scout.forum.korean']:
newsgroups_utf8.write(unicode(line, 'big5', 'ignore').encode('utf-8'))
elif hierarchy in ['fido']:
newsgroups_utf8.write(line)
else:
newsgroups_utf8.write(unicode(line, 'cp1252').encode('utf-8'))
Especially, please note that scout.* uses mixed encodings in their messages!
big5 for scout.forum.chinese and cp1252 for scout.fr.admin, for instance.
As for tw.* (I think it was for that one), I did not manage to find the right
encoding: one description seems to be bad in big5; that's why I added 'ignore'
to silently drop one character.
> My plan going forward is to make periodic releases including any changes
> that have gone into the control.ctl file or the PGP keys so that people
> have a snapshot of the near-current configuration underlying control.ctl
> to look at if they wish, probably shortly after I've processed a batch of
> changes.
That's great, thanks!
--
Julien ÉLIE
« C'est la première fois que je vois traiter une affaire avec autant de punch ! » (Astérix)
Re: control-archive 1.0.0 released
Author: Julien ÉLIE
Date: Mon, 12 Jan 2009 06:34
Date: Mon, 12 Jan 2009 06:34
21 lines
2151 bytes
2151 bytes
Hi,
I add a precision to a previous article.
> elif hierarchy == 'fr':
> # Scheduled to be 'iso-8858-15'.
> newsgroups_utf8.write(unicode(line, 'cp1252').encode('utf-8'))
fr.* has been sending control articles encoded in ISO-8859-15 since yesterday.
Its charset is properly declared, so there will be no problem to be aware of it
in scripts which handle control articles.
I have just updated <http://usenet.trigofacile.com/hierarchies/> for that change
of charset.
--
Julien ÉLIE
« -- C'est joli cette avenue le long de la mer... Ça s'appelle comment ?
-- La promenade des Bretons. » (Astérix)
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