Thread View: news.software.nntp
6 messages
6 total messages
Started by PM Wong
Fri, 15 Apr 1994 04:26
Appearance of description field for newsgroups
Author: PM Wong
Date: Fri, 15 Apr 1994 04:26
Date: Fri, 15 Apr 1994 04:26
16 lines
1541 bytes
1541 bytes
Our control.ctl finally works and so new newsgroups are being
created from control messages.
But one thing I am curious to know is that some of these new ones have a
descriptive field appearing at the right (we use tin as newsreader)
while all the old ones don't
Who put this field in and how ?
--
\\\//
(o o)
[----------------ooO-(_)-Ooo---------------] PM Wong (Computer Officer)
[User User User User User User User User Us] CTSC Hong Kong Baptist College
[ser User User User User User User User Use] 224 Waterloo Road, Kln. HONGKONG
[er User User User User User User User User] Voice: (852)3397425 Fax: 3397888
[------------------------------------------] Email: pm@ctsc.hkbc.hk
Re: Appearance of description field for newsgroups
Author: Steve Hartley
Date: Fri, 15 Apr 1994 08:01
Date: Fri, 15 Apr 1994 08:01
20 lines
1791 bytes
1791 bytes
In article <2ol51t$140i@ctsc.hkbc.hk> s11976@ctsc.hkbc.hk "PM Wong" writes: >Our control.ctl finally works and so new newsgroups are being >created from control messages. >But one thing I am curious to know is that some of these new ones have a >descriptive field appearing at the right (we use tin as newsreader) >while all the old ones don't >Who put this field in and how ? In the directory where you keep the 'active' file, there is another file called newsgroups. This file contains the name of each news group and a short description. When the active newsgroups are displayed in tin, this file is searched and the description is displayed if found. I edit this file myself to include descriptions all new groups added. Stevie -- Steve Hartley | steve@solebay.demon.co.uk Ipswich, Suffolk, UK | "I'm goin' to get some booze fo't baby." Vic Reeves
Re: Appearance of description field for newsgroups
Author: John Line
Date: Sat, 16 Apr 1994 09:52
Date: Sat, 16 Apr 1994 09:52
41 lines
2932 bytes
2932 bytes
In article <766396918snz@solebay.demon.co.uk>,
Steve Hartley <steve@solebay.demon.co.uk> wrote:
>In article <2ol51t$140i@ctsc.hkbc.hk> s11976@ctsc.hkbc.hk "PM Wong" writes:
>
>>Our control.ctl finally works and so new newsgroups are being
>>created from control messages.
>>But one thing I am curious to know is that some of these new ones have a
>>descriptive field appearing at the right (we use tin as newsreader)
>>while all the old ones don't
>>Who put this field in and how ?
>
>In the directory where you keep the 'active' file, there is another
>file called newsgroups. This file contains the name of each news
>group and a short description. When the active newsgroups are displayed
>in tin, this file is searched and the description is displayed if
>found. I edit this file myself to include descriptions all new groups
>added.
Adding in a few more details ...
If the newgroup control messages include the information in the right format,
and are processed automatically (rather than having them mailed to you and
adding the groups you want via ctlinnd), then the descriptions for those groups
will be added automatically to the newsgroups file.
To fill in information for pre-existing groups, you could either ask your feed
site for a copy (if they have a more complete file...) or ftp a current copy of
uunet's newsgroups file: anon ftp to ftp.uu.net, and fetch
networking/news/config/newsgroups.gz. It's gzip'd, and should be fetched in
binary mode - or alternatively, fetch newsgroups (no .gz) and it'll be
automatically uncompressed and sent as plain text.
That won't include local/regional groups, and omits alt groups that uunet
doesn't carry, but should fill in a lot of the gaps if most of your groups
currently lack descriptions.
John Line
--
John Line - Cambridge University Computing Service, Computer Laboratory,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, ENGLAND.
Internet: jml4@cus.cam.ac.uk JANET: jml4@uk.ac.cam.cus Phone: +44 223 334708
Re: Appearance of description field for newsgroups
Author: Tom Limoncelli
Date: Sun, 17 Apr 1994 04:48
Date: Sun, 17 Apr 1994 04:48
18 lines
1567 bytes
1567 bytes
In <2ol51t$140i@ctsc.hkbc.hk> s11976@ctsc.hkbc.hk (PM Wong) writes: >But one thing I am curious to know is that some of these new ones have a >descriptive field appearing at the right (we use tin as newsreader) >while all the old ones don't >Who put this field in and how ? They are in the /usr/lib/newsgroups file. Some news systems snatch the description from properly formatted "newgroup" messages. Software to update this list en-masse is available from the INN patch FTP site. (See the FAQ). Tom -- Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play) "Psst! Hey, Anthony! Y'know what I | Disclaimer: I do not like about existing?" "Uh... uh... what?" | speak for Mentor Graphics. "Possessing a physical extension." -TSA |
Re: Appearance of description field for newsgroups
Author: Eric Engstrom
Date: Mon, 18 Apr 1994 18:54
Date: Mon, 18 Apr 1994 18:54
95 lines
3845 bytes
3845 bytes
In article <766396918snz@solebay.demon.co.uk>, Steve Hartley <steve@solebay.demon.co.uk> wrote:
> In the directory where you keep the 'active' file, there is another file
> called newsgroups. This file contains the name of each news group and a
> short description. ... [munch]
In article <2oocg2$1dh@lyra.csx.cam.ac.uk> jml4@cus.cam.ac.uk (John Line) adds:
> To fill in information for pre-existing groups, you could either ... [munch]
> That won't include local/regional groups, and omits alt groups that uunet
> doesn't carry, but should fill in a lot of the gaps if most of your groups
> currently lack descriptions.
And, to prune your newsgroups file of any duplicate/bogus lines every once
in a while, I've written the following perl script (it's short, so please
humor me :-) ):
-------------------- snip here --------------------
#!/usr/local/bin/perl
#
# FILE: thin-ngfile
#
# perl program to sort and prune the newsgroups file.
# save longest, non-empty, non-bogus ("x", "?", ".") ng-line
#
# USAGE: thin-ngfile [ -n <newsgroups-file> ]
#
# AUTHOR: Eric Engstrom <engstrom@src.honeywell.com>
#
# HISTORY:
# 94/03/10 ee version based on old awk/sed/sh script
##
($progname = $0) =~ s:.*/(.*)(\-\d\.\d)?:$1:;
$progRev = "1.0";
$newsctl = "/news/ctl";
$newsgroups = "$newsctl/newsgroups";
while ($ARGV[0] =~ /^-/) {
$ARGV[0] =~ /^-d(ebug)?/i && ($debug++, shift, next);
$ARGV[0] =~ /^-n(ewsgroup)?/i && (shift, $newsgroups=shift, next);
shift; # toss rest of "-*"
}
# read it
open( NGS, "< $newsgroups" ) || die "Can't open $newsgroups file for reading";
while ( <NGS> ) {
if ( m/^([a-z]*\.[^\s]*)\s*(.*)$/ &&
"$2" ne "" && "$2" !~ /^[x\?\.]$/ &&
length( "$2" ) >= length( "$ngs{$1}" ) )
{ $ngs{$1} = $2 }
}
close( NGS );
# write it
if ($debug) {
for (sort keys %ngs) {
print &ngline($_);
}
} else {
open( NGS, "> $newsgroups" ) || die "Can't open $newsgroups file for writing";
for (sort keys %ngs) {
print NGS &ngline($_);
}
close( NGS );
}
# --- subroutines ---
sub max { ($_[0]>@_[1] ? $_[0] : $_[1]) }
# format newsgroups line w/ standard spacing so descriptions (mostly) line up.
sub ngline {
"$_[0]" .
"\t"x(&max(1,int((3 * 8) + 7 - length($_[0])) / 8)) .
"$ngs{$_[0]}\n"
}
#Local Variables:
# mode: perl
# kept-new-versions: 2
# kept-old-versions: 0
# trim-versions-without-asking: t
#End:
-------------------- snip here --------------------
enjoy,
Eric
--
Eric D. Engstrom, Honeywell Technology Center, SW Technology, Mpls, MN, USA
Research Scientist (& part-time email/news admin) - "finger -l" for more info
engstrom@src.honeywell.com -or- NeXTMail: eric%basilisk@src.honeywell.com
< I eat from the four food groups: Barley, Hops, Yeast, Water. >
Re: Appearance of description field for newsgroups
Author: gary meyer
Date: Wed, 20 Apr 1994 09:49
Date: Wed, 20 Apr 1994 09:49
8 lines
1162 bytes
1162 bytes
A related question... on our system TIN does show the descriptive line but it starts around column 65 (estimate from my memory) and thereofre is frequently useless. Is this common? Is there a way of telling TIN to move it over to the left? gjm
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