🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Michael Bäuerle Thu, 22 Dec 2022 17:10
[slrn] Patch for NNTP extension MAXARTNUM
#265918
Author: Michael Bäuerle
Date: Thu, 22 Dec 2022 17:10
39 lines
2208 bytes
If some of the slrn users want to test MAXARTNUM:
The following patch for version 1.3.0a negotiates the value
NNTP_ARTNUM_TYPE_MAX as maximum supported article number.

------------------------------------------------------------------------
--- src/nntplib.c.orig	2016-10-23 22:34:16.000000000 +0000
+++ src/nntplib.c
@@ -533,6 +533,12 @@ static int _nntp_connect_server (NNTP_Ty
    if (-1 == nntp_authorization (s, Slrn_Force_Authentication))
      return -1;
 
+#if defined(HAVE_LONG_LONG)
+   /* Negotiate MAXARTNUM */
+   (void) nntp_server_vcmd (s, "MAXARTNUM " NNTP_FMT_ARTNUM,
+                            NNTP_ARTNUM_TYPE_MAX);
+#endif
+
    slrn_message_now (_("Connected to host.  %s"),
 		     (s->can_post ? _("Posting ok.") : _("Posting NOT ok.")));
 
------------------------------------------------------------------------

It is required to compile slrn with a C99 compiler (at least).

$ NNTPSERVER=news.spitfire-nntp.fr slrn --debug /tmp/slrn.log

Quoted from "/tmp/slrn.log":
| 
| !Connecting to server...
| <200 news.spitfire-nntp.fr running Spitfire News Server 0.9 (Posting allowed).
| >MODE READER
| >
| 
| <200 reader mode.
| >MAXARTNUM 9223372036854775807
| >
| 
| <202 9223372036854775807 is our mutual maximum article number.
| [...]
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