🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #32066

Re: slrn: .slrnrc settings

#32066
From: Byrial Jensen
Date: Tue, 11 Mar 1997 00:00
82 lines
3385 bytes
A. Deckers <Alain.Deckers@man.ac.uk> wrote:
>1. Can I set an attribution string for my replies in a similar way to
>how I set the followup attribution? For example,
>
>   set followup "In %m,\n\t%r <%f> wrote:"
>
> slrn doesn't like
>
>   set reply "In %m,\n\tyou wrote:"

I have made a little patch which allow you to set the reply string exactly
in this way. It follows last in this posting. Be sure to "make clean" before
applying it -- not all source files depending on the changed misc.h are
marked as such in slrn's makefile.

Regards
- 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: <slrn5i95qo.fa.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: <slrn5i8thc.d3m.Alain.Deckers@nessie.mcc.ac.uk>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5i95qo.fa.byrial@ask.ask>
Subject: Re: slrn: .slrnrc settings
Date: Tue, 11 Mar 1997 00:00:00 +0000
From: byrial@post3.tele.dk (Byrial Jensen)
References: <slrn5i8thc.d3m.Alain.Deckers@nessie.mcc.ac.uk>
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: 224524982
Newsgroups: news.software.readers