🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by A. Deckers Mon, 10 Mar 1997 00:00
slrn: .slrnrc settings
#32047
Author: A. Deckers
Date: Mon, 10 Mar 1997 00:00
31 lines
1380 bytes
I have a couple of questions about slrn settings via the .slrnrc file.
I've grepped the documentation for likely keywords, but wasn't lucky.

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:"

2. Can I ask slrn to save outgoing mails to a specified file in a similar
way to how I set the save_posts location? For example,

   set save_posts "News/posts.out"

slrn doesn't like

   set save_mail "News/mail.out"

Any advice, including RTFM if appropriate, will be gratefully received.

I'd appreciate a cc as our newsfeed is sometimes a bit erratic.

Cheers,
-- 
Alain.Deckers@man.ac.uk          <URL:http://www.man.ac.uk/%7Embzalgd/>

Re: slrn: .slrnrc settings
#32066
Author: 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"
 

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