Thread View: news.software.readers
5 messages
5 total messages
Started by Eivind Riiser
Thu, 21 May 1998 00:00
A couple of questions about slrn
Author: Eivind Riiser
Date: Thu, 21 May 1998 00:00
Date: Thu, 21 May 1998 00:00
17 lines
1207 bytes
1207 bytes
Is it possible for slrn to access the total newsgroup index without doing "slrn -f .newsrc -create"? I have created a description file with "slrn -f /usr/local/lib/slrn/newsgroup -d", but that only added descriptions to the groups I had already subscribed. When I type capital L (at the group list) and enter a search pattern, nothing happens -- it only works the first time after "slrn -f .newsrc -create". One other thing: is there a way to prevent slrn from putting headers like "Subject: ....", "Newsgroups: ...." in every follow-up message? It's only a couple of lines which can easily be removed when editing, but it's still annoying. In advance, thanks for any help!
Re: A couple of questions about slrn
Author: Dawn Owens-Nicholson
Date: Thu, 21 May 1998 00:00
Date: Thu, 21 May 1998 00:00
85 lines
4573 bytes
4573 bytes
Eivind Riiser <eivindrk@online.no> wrote:
> Is it possible for slrn to access the total newsgroup index without
> doing "slrn -f .newsrc -create"?
If you mean use the active file, yes, you can make slrn download the
active file and/or use XGTITLE (if your news server supports it).
Details on how to set this up are in the sample slrn.rc that should
have come with your copy of slrn.
My experience forces me to warn you: XGTITLE returns are usually wrong
due to news admin error. Even large commercial installations like
SuperNews have incorrect description files that make XGTITLE a lot
less useful than it could be. Checking for mainstream Big-8 groups is
a good test of your server admin's work.
> I have created a description file with "slrn -f
> /usr/local/lib/slrn/newsgroup -d", but that only added descriptions
> to the groups I had already subscribed.
This should have created a descriptions file for every group the
server has descriptions for (which is, unfortunately, usually a proper
subset of the groups the server carries). If you subscribe to all the
newsgroups your server carries, than that could be why you got
descriptions for subscribed groups.
If you mean slrn only *displays* descriptions for subscribed groups,
that's incorrect--what really happened was you downloaded descriptions
for all the groups for which your server carries descriptions and your
subscription list happens to hit all the described groups. There is
no connection between slrn displaying a description and you
subscribing to a group. There is a connection between what is listed
in the description file slrn uses and what it displays. I suggest
gathering descriptions from a variety of places and joining them
together. I've included a short perl script to help do this.
> When I type capital L (at the group list) and enter a search
> pattern, nothing happens -- it only works the first time after "slrn
> -f .newsrc -create".
You probably told slrn to only keep subscribed groups in your newsrc
(write_newsrc_flags not set to 0), so when you save your newsrc all
the unsubscribed groups are no longer listed (which, since you
probably also told slrn to not use XGTITLE (use_xgtitle set to 0) or
the server's active data (read_active set to 0), means slrn only knows
about the subscribed groups). I suggest altering your slrnrc to
either use the active file (if your connection is fast), OR use
XGTITLE (if your server has it). As a last resort, make slrn save all
newsgroups in your newsrc--subscribed or unsubscribed.
Again, a warning, this last option may cause your newsrc to become
large and saving it may take longer than you expected.
> One other thing: is there a way to prevent slrn from putting headers
> like "Subject: ....", "Newsgroups: ...." in every follow-up message?
> It's only a couple of lines which can easily be removed when editing,
> but it's still annoying.
I believe these headers are required for any article posted to Usenet,
follow-up or thread starter. According to the latest USEFOR draft I
could find, draft-ietf-usefor-article-00.txt, which expires Sunday,
November 1, 1998 ("19981101"):
5. Mandatory Headers
An article MUST have one, and only one, of each of the
following headers: Date, From, Message-ID, Subject,
Newsgroups, Path.
and later:
7.3.1 Unwanted articles
Serving Agents MUST reject all articles that do not have all
mandatory headers present with legal contents or which have
illegal contents in optional headers.
So, it would appear that Subject: and Newsgroups: headers are still
required (even if their content may be deduced in the case of
follow-ups to articles accessible by the serving agent). In any
event, you'd only save two lines, hardly a big deal. I'm suprised
your server accepts articles posted without a Subject: or Newsgroups:
header.
Re: A couple of questions about slrn
Author: Eivind Riiser
Date: Thu, 21 May 1998 00:00
Date: Thu, 21 May 1998 00:00
72 lines
3587 bytes
3587 bytes
On 21 May 1998 21:58:50 GMT, bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) wrote: >> I have created a description file with "slrn -f >> /usr/local/lib/slrn/newsgroup -d", but that only added descriptions >> to the groups I had already subscribed. >This should have created a descriptions file for every group the >server has descriptions for (which is, unfortunately, usually a proper >subset of the groups the server carries). I know -- I got a complete list of groups, and their descriptions. Not just the ones I had subscribed to. What I meant was: The only good the descriptions file did for slrn was that it displayed descriptions for the subscribed groups. What I *wanted* was the ability to list groups I hadn't subscribed to by typing captial L and entering a search pattern. Since the description file contains a list of groups, I thought slrn would be intelligent enough to use this list. >> When I type capital L (at the group list) and enter a search >> pattern, nothing happens -- it only works the first time after "slrn >> -f .newsrc -create". >You probably told slrn to only keep subscribed groups in your newsrc >(write_newsrc_flags not set to 0), so when you save your newsrc all >the unsubscribed groups are no longer listed This sounds reasonable. I'll look into it when I get home (currently using another computer/newsreader). >(which, since you >probably also told slrn to not use XGTITLE (use_xgtitle set to 0) or >the server's active data (read_active set to 0), means slrn only knows >about the subscribed groups). I suggest altering your slrnrc to >either use the active file (if your connection is fast) I have a direct connection (2 Mbit), so I think the active file is for me. >OR use >XGTITLE (if your server has it). As a last resort, make slrn save all >newsgroups in your newsrc--subscribed or unsubscribed. >Again, a warning, this last option may cause your newsrc to become >large and saving it may take longer than you expected. I don't care about that. It didn't take more than a second or two to download the descriptions (about 600 kB), so the bare list of groups will be even smaller. >> One other thing: is there a way to prevent slrn from putting headers >> like "Subject: ....", "Newsgroups: ...." in every follow-up message? >> It's only a couple of lines which can easily be removed when editing, >> but it's still annoying. >I believe these headers are required for any article posted to Usenet, >follow-up or thread starter. <snip> >follow-ups to articles accessible by the serving agent). In any >event, you'd only save two lines, hardly a big deal. I'm suprised >your server accepts articles posted without a Subject: or Newsgroups: >header. The reason I asked was that other newsreaders I have tried (Pine and Agent) *didn't* show these headers in the message. They probably insert them before sending the message... Anyway, thanks for answering my question!
Searching newsgroup names & descriptions (was: Re: A couple of questions about slrn)
Author: Dawn Owens-Nicholson
Date: Thu, 21 May 1998 00:00
Date: Thu, 21 May 1998 00:00
38 lines
2484 bytes
2484 bytes
Eivind Riiser <eivindrk@online.no> wrote: > What I *wanted* was the ability to list groups I hadn't subscribed > to by typing captial L and entering a search pattern. Since the > description file contains a list of groups, I thought slrn would be > intelligent enough to use this list. The problem with that is the demand it places on slow links -- in order for slrn to search descriptions when none are present (or when they're incomplete), it would have to download the missing descriptions to search them (XGTITLE doesn't search group descriptions either). Also, passing the wildmat expression to XGTITLE verbatim would be insufficient for such a search. However, there is a small ray of hope: you could make a macro to do the search you want if you make use of slrn's group_search() function (available via S-Lang). It searches newsgroup names *and* descriptions (the descriptions already loaded). The macro could let slrn list all the unsubscribed groups and use "success = group_search (wildmat string);" to search descriptions and groups. Since you have a fast connection, you probably won't find such a macro to be very time-consuming to use. See README.macros for more info on slrn's S-Lang API. > The reason I asked was that other newsreaders I have tried (Pine and > Agent) *didn't* show these headers [Subject: or Newsgroups:] in the > message. They probably insert them before sending the message... If those newsreaders don't let you edit these headers at any time during the editing of a post or follow-up, it could discourage keeping the Subject: line up to date with the real topic of the thread (good Usenet behavior for everyone, I think). > Anyway, thanks for answering my question! Sure.
Re: A couple of questions about slrn
Author: Dawn Owens-Nicholson
Date: Fri, 22 May 1998 00:00
Date: Fri, 22 May 1998 00:00
81 lines
2988 bytes
2988 bytes
On 21 May 1998 21:58:50 GMT, Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu> wrote:
> I've included a short perl script to help do this.
Here's the script I promised.
#! /usr/local/bin/perl -w
# -*- perl -*-
# Make a description file out of an active file + a description file
use strict;
use Getopt::Long;
my (%description, %option, $newsgroup, $description_text, $separator) = ();
GetOptions (\%option, qw(prefer_first list_description_groups help dnews));
if (@ARGV == 0
or (exists $option{"help"}
and $option{"help"})) { die <<"USAGE"
Usage: makedesc [options] [active file [description file(s)]]
Options:
--prefer_first
Use the first description listed (default is to prefer the last
description listed).
--list_description_groups
Include groups listed only in the description data (default is to
include only groups that appear in the active data).
--dnews
Output for DNews (separate group and description pair with a tab instead
of a colon).
--help
Get this syntax listing.
USAGE
}
my ($active_file) = (shift || "active");
open (ACTIVE, $active_file) or die ("Couldn't open $active_file: $!");
while (<ACTIVE>) {
($newsgroup) = split;
if ($newsgroup =~ /[-+\w]+\.[-+\w]+/) { $description{$newsgroup} = '?'; }
else { warn ("Invalid group ($newsgroup) in active file. Newsgroup skipped.\n"); }
}
close (ACTIVE);
while (<>) {
chomp;
($newsgroup, $description_text) = split (/[:\s]/, $_, 2);
$description_text =~ s/^\s+//; # delete leading whitespace from description
if ($newsgroup =~ /[-+\w]+\.[-+\w]+/) {
if (not exists $description{$newsgroup}
and exists $option{"list_description_groups"}
and $option{"list_description_groups"}) {
$description{$newsgroup} = '?';
}
if (exists $description{$newsgroup}
and $description{$newsgroup} eq '?'
or ((exists $option{"prefer_first"})
and $option{"prefer_first"}
and ($description{$newsgroup} eq '?')))
{ $description{$newsgroup} = $description_text; }
}
}
if (exists $option{"dnews"} and $option{"dnews"}) { $separator = "\t"; }
else { $separator = ':'; }
foreach (keys %description) { print "$_$separator$description{$_}\n"; }
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