🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #32227

Re: slrn: wished-for features

#32227
From: Byrial Jensen
Date: Thu, 20 Mar 1997 00:00
74 lines
3127 bytes
Leslie <leslie@vex.net> wrote:
>had:  first, I'd like to be able to customize the attributes line
>in emailed replies like I can customize it in posts; and second, I'd like

That was my wish too. So I made the following little path to slrn 0.9.3.2.
Remember to 'Make clean' before compiling it.

Enjoy,
- Byrial

diff -u slrn0.9.3.2/src/art.c slrn/src/art.c
--- slrn0.9.3.2/src/art.c	Sun Mar  2 22:14:57 1997
+++ slrn/src/art.c	Mon Mar  3 00:34:20 1997
@@ -2349,7 +2349,8 @@
    
    fputs ("\n", fp);
    
-   fprintf (fp, "In article %s, you wrote:\n", (msgid == NULL ? "" : msgid));
+   insert_followup_format (Slrn_User_Info.reply_string, fp);
+   fputs ("\n", fp);
    
    n += 2;
 
diff -u slrn0.9.3.2/src/misc.c slrn/src/misc.c
--- slrn0.9.3.2/src/misc.c	Sun Mar  2 22:14:57 1997
+++ slrn/src/misc.c	Sun Mar  2 23:10:40 1997
@@ -1431,6 +1431,7 @@
    
    /* Fill in what is assumed to be non-NULL by rest of program. */
    Slrn_User_Info.followup_string = slrn_safe_strmalloc ("In article %m, %r wrote:");
+   Slrn_User_Info.reply_string = slrn_safe_strmalloc ("In article %m, you wrote:");
    Slrn_Courtesy_CC_Message = slrn_safe_strmalloc ("[This message has also been posted.]");
    
    /* Now get default values for rest. */
diff -u slrn0.9.3.2/src/misc.h slrn/src/misc.h
--- slrn0.9.3.2/src/misc.h	Sun Mar  2 22:14:57 1997
+++ slrn/src/misc.h	Sun Mar  2 23:27:07 1997
@@ -39,6 +39,7 @@
    char *replyto;
    char *org;
    char *followup_string;
+   char *reply_string;
    char *signature;
    char *posting_host;		       /* FQDN or NULL */
    char *login_name;

diff -u slrn0.9.3.2/src/startup.c slrn/src/startup.c
--- slrn0.9.3.2/src/startup.c	Sun Mar  2 22:14:58 1997
+++ slrn/src/startup.c	Sun Mar  2 23:24:44 1997
@@ -399,6 +399,7 @@
      {"organization", &Slrn_User_Info.org},
      {"followup", &Slrn_User_Info.followup_string},
      {"cc_followup_string", &Slrn_Courtesy_CC_Message},
+     {"reply", &Slrn_User_Info.reply_string},
 #if SLRN_HAS_DECODE
      {"decode_directory", &Slrn_Decode_Directory},
 #endif
diff -u slrn0.9.3.2/doc/slrn.rc slrn/doc/slrn.rc
--- slrn0.9.3.2/doc/slrn.rc	Sun Mar  2 22:14:56 1997
+++ slrn/doc/slrn.rc	Mon Mar  3 00:20:02 1997
@@ -38,6 +38,10 @@
 %             %m:msgid, %n:newsgroups, %%: percent 
 set followup "On %d, %r <%f> wrote:"
 
+% This sets the reply string.  It can use format specifiers as
+% in the 'followup' string variable.
+set reply "In article %m, you wrote:"
+
 %Custom headers to add to NEW posts
 %set custom_headers "X-Whatever: bla\nX-Misc: bla bla"
 

Technical Details
Message-ID: <slrn5j1di4.1rq.byrial@ask.ask>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn5ictd8.7pc.leslie@vex.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5j1di4.1rq.byrial@ask.ask>
Subject: Re: slrn: wished-for features
Date: Thu, 20 Mar 1997 00:00:00 +0000
From: byrial@post3.tele.dk (Byrial Jensen)
References: <slrn5ictd8.7pc.leslie@vex.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 226895814
Newsgroups: news.software.readers