🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by Bruce Templeton Fri, 22 May 1998 00:00
More slrn questions...
#41071
Author: Bruce Templeton
Date: Fri, 22 May 1998 00:00
47 lines
2238 bytes
Hello, I'm just getting started with slrn and I've got a few questions
(this is on WinNT):

1.  Is there a way to use multiple nntp servers in a single slrn instance?
Currently I'm resetting the NNTPSERVER and starting up different
instances.

2.  If I go into a group accidentily and it's taking a long time to get
the headers, is there a way to cancel and get back to the groups list?
Ctrl-C doesn't do anything...

3.  Is there a way from the headers menu to toggle between viewing read
and unread messages, or if not that, to view all messages regardless of
the their state?

4.  Is there a way to completely ignore all new newsgroups?  Currently I
have 'set unsubscribe_new_groups 0' and 'set write_newsrc_flags 1' (or
should that be 2, what's the difference?).  But I'd rather not have the
newsgroups show up in my groups window at all.

5.  I'm having trouble setting the scoring to followups on my posts.  I
followed the recent threads, but I'm still having problems.  As a very
simple test Score file I have the following:

%%%%%%%%%%%%%%%%%%%%%%%%%%%
[*]
Score:: 1000
From: bruceat
References: bruceat
%%%%%%%%%%%%%%%%%%%%%%%%%%%

This scores my posts, but not followups.  When I look at the 'References:'
line of followups to my posts, the references line will look more like:

References: 12345.67890@concentric.net

My name doesn't show up in the references line.  I don't understand very
well how the referenes work, but I think trn adds a line to a score file
with the actual article reference for every post it finds by the user.  It
then deletes the line after some specified period.

Thanks for any help you can give me!
-Bruce


Re: More slrn questions...
#41063
Author: John E. Davis
Date: Fri, 22 May 1998 00:00
56 lines
2487 bytes
On 22 May 1998 17:02:32 GMT, Bruce Templeton <bruceat@concentric.net>
wrote:
>1.  Is there a way to use multiple nntp servers in a single slrn instance?
>Currently I'm resetting the NNTPSERVER and starting up different
>instances.

  No.  But you can also startup slrn via:
  
      slrn -h my-news.server
      
as an alternative to setting the NNTPSERVER environment variable.

>2.  If I go into a group accidentily and it's taking a long time to get
>the headers, is there a way to cancel and get back to the groups list?
>Ctrl-C doesn't do anything...

  Under unix, Ctrl-G generates a SIGINT that slrn catches to cancel
  the operation.  I do not know enough about your OS to say how to do
  this, nor even if winsock provides such support.

>3.  Is there a way from the headers menu to toggle between viewing read
>and unread messages, or if not that, to view all messages regardless of
>the their state?

   Enter group via `ESC 1 RETURN'

>4.  Is there a way to completely ignore all new newsgroups?  Currently I

   slrn -n

>5.  I'm having trouble setting the scoring to followups on my posts.  I
>followed the recent threads, but I'm still having problems.  As a very
>simple test Score file I have the following:
>
>%%%%%%%%%%%%%%%%%%%%%%%%%%%
>[*]
>Score:: 1000
>From: bruceat
>References: bruceat
>%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>This scores my posts, but not followups.  When I look at the 'References:'
>line of followups to my posts, the references line will look more like:
>
>References: 12345.67890@concentric.net

The article that I am currently following up to has a message id of
<6k4b38$eh8$1@nntp2.ba.best.com>.  Normally slrn will generate a
message-id based upon the posting host as determined by the
`gethostname' system call.  Perhaps your system is not properly
configured causing this system call to fail.

--John

Re: More slrn questions...
#41065
Author: Dawn Owens-Nicholson
Date: Fri, 22 May 1998 00:00
72 lines
3673 bytes
Bruce Templeton <bruceat@concentric.net> wrote:
> 1.  Is there a way to use multiple nntp servers in a single slrn instance?

No, you have to run multiple slrns.

> 2.  [Abort key]

Use Ctrl-G.

> 3.  Is there a way from the headers menu to toggle between viewing read
> and unread messages [...]

I can think of a few ways to get to those articles.  Such a toggle
doesn't come with slrn, but you could make one with an S-Lang macro.
Or you could move the arrow or selection bar to whatever article is
listed at any time.  Or you can read some articles, call("art_xpunge")
(I believe this is bound to the 'x' key by default) and read some more
(not a toggle, but good for removing read articles from the display).

> or if not that, to view all messages regardless of the their state?

You could enter the group with ESC-1 Enter and always choose to see
all available articles (I believe accepting the default answer by
hitting return at the prompt will do this).

> 4.  Is there a way to completely ignore all new newsgroups?
> Currently I have 'set unsubscribe_new_groups 0' and 'set
> write_newsrc_flags 1' (or should that be 2, what's the difference?).

The write_newsrc_flags won't hide the unsubscribed groups in the
display.  See the sample slrnrc that should have come with your copy
of slrn for info on these slrnrc options, it describes the differences
in settings.

> But I'd rather not have the newsgroups show up in my groups window
> at all.

There might be a macro on the slrn macro archive that could help you,
or you could write one to go in a group_mode_hook() that would hide
all unsubscribed groups.  http://www.io.com/~pardoz/macros.html is the
URL I've got for the archive.

> References: bruceat
>
> This scores my posts, but not followups.

As you noted, the string "bruceat" (in a case-insensitive match) does
not appear in your References: header.  If you also used slrn to post
articles that have similar message-IDs, I suggest recompiling slrn and
enabling the compile time option to generate your own message-IDs
which will allow you to easily track threads in which you've posted
something.  Then, follow the instructions in the score FAQ that should
have come with your copy of slrn.  (Small wish list idea: I wish all
of the current compile-time options were run-time slrnrc options
instead.  I can't think of any right now that absolutely have to be
compile-time options).

You could also change your scorefile to reflect what is constant in
your message-IDs, but I doubt this will help pin down the threads
*you* have posted in.  There is info about scoring in the doc/ dir of
the slrn distribution at ftp://space.mit.edu/pub/davis/slrn/.

> I don't understand very well how the referenes work, but I think trn
> [...]

I don't see how trn's behavior is relevant here (are you posting with
trn and reading with slrn?).  As of the current release, slrn
scorefiles are manually maintained and static (entries can expire but
will remain in the scorefile until you deleted them).

Small correction
#41069
Author: Dawn Owens-Nicholson
Date: Fri, 22 May 1998 00:00
8 lines
787 bytes
I wrote:
> [...] write one to go in a group_mode_hook() that would hide [...]

I meant to say group_mode_startup_hook() instead of group_mode_hook()
here.

Re: More slrn questions...
#41103
Author: Stephane Gibier
Date: Sat, 23 May 1998 00:00
14 lines
1032 bytes
On 22 May 1998 17:02:32 GMT,
Bruce Templeton <bruceat@concentric.net> wrote:

> My name doesn't show up in the references line.  I don't understand very

There is a bug in the Win32 version of slrn. The sockets are not 
correctly initialized, so the set generate_message_id will not work 
properly. I have sent to JED a little patch to correct it and it works 
very well (see my Message-ID). I hope it will be included in the last 
release.


Re: More slrn questions...
#41135
Author: Stephane Gibier
Date: Sun, 24 May 1998 00:00
83 lines
2837 bytes
On 22 May 1998 21:07:30 GMT,
John E. Davis <davis@space.mit.edu> wrote:

> The article that I am currently following up to has a message id of
> <6k4b38$eh8$1@nntp2.ba.best.com>.  Normally slrn will generate a
> message-id based upon the posting host as determined by the
> `gethostname' system call.  Perhaps your system is not properly
> configured causing this system call to fail.

I have sent you a report about this problem in the case of the Win32 
version. The Microsoft Winsock interface is not properly initialized 
during the main initialization process, so the gethostname will return 
-1 and the generate_message_id will not work. Have you received my 
patch ?

I post it :

=====================================================================
--- slrn0.9.5.2/src/slrn.c	Sun May 03 22:06:20 1998
+++ slrn/src/slrn.c	Tue May 12 12:41:35 1998
@@ -92,6 +92,17 @@
 # include <windows.h>
 #endif
 
+#if defined(__NT__)
+# include <winsock.h>
+# define USE_WINSOCK_SLTCP	1
+#else
+# if defined(__MINGW32__)
+#  define Win32_Winsock
+#  include <windows.h>
+#  define USE_WINSOCK_SLTCP	1
+# endif
+#endif
+
 /*}}}*/
 
 /*{{{ Global Variables */
@@ -113,6 +124,10 @@
 int Slrn_Default_Server_Obj = SLRN_DEFAULT_SERVER_OBJ;
 int Slrn_Default_Post_Obj = SLRN_DEFAULT_POST_OBJ;
 
+#if defined(USE_WINSOCK_SLTCP)
+WSADATA Slrn_wsaData;
+#endif
+
 /*}}}*/
 /*{{{ Static Variables */
 
@@ -812,6 +827,11 @@
 #endif
 
    lock_file (0);
+
+#if defined(USE_WINSOCK_SLTCP)
+   /* Clean up winsock when program exits. */
+   WSACleanup ();
+#endif
 }
 
 void slrn_quit (int retcode) /*{{{*/
@@ -1168,6 +1188,11 @@
 #if SLRN_HAS_SLANG
    if (-1 == slrn_init_slang ())
      fprintf (stderr, "Error initializing S-Lang interpreter.\n");
+#endif
+
+#if USE_WINSOCK_SLTCP
+   if (WSAStartup(MAKEWORD(1,1), &Slrn_wsaData) != 0)
+     fprintf (stderr, "Error initializing winsock.\n");
 #endif
 
    slrn_startup_initialize ();
=====================================================================

I am currently using this patch and Message-ID are now correctly 
generated on the Win32 version. So I am able to score followups.

Hope this helps.


Re: More slrn questions...
#41204
Author: root
Date: Thu, 28 May 1998 00:00
20 lines
1483 bytes
On 24 May 1998 09:43:18 +0100, Stephane Gibier <sgibier@mail.dotcom.fr> wrote:
>On 22 May 1998 21:07:30 GMT,
>John E. Davis <davis@space.mit.edu> wrote:
>
>> The article that I am currently following up to has a message id of
>> <6k4b38$eh8$1@nntp2.ba.best.com>.  Normally slrn will generate a
>> message-id based upon the posting host as determined by the
>> `gethostname' system call.  Perhaps your system is not properly
>> configured causing this system call to fail.
>
>I have sent you a report about this problem in the case of the Win32 
>version. The Microsoft Winsock interface is not properly initialized 
>during the main initialization process, so the gethostname will return 
>-1 and the generate_message_id will not work. Have you received my 
>patch ?
>
Isn't this code already in sltcp.c?

Re: More slrn questions...
#41212
Author: Stephane Gibier
Date: Thu, 28 May 1998 00:00
10 lines
873 bytes
On 28 May 1998 01:41:18 GMT,
root@gte.net <root@gte.net> wrote:

> Isn't this code already in sltcp.c?

Yes, but sltcp.c is only used by slrnpull, at least on the Win32 version.


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