Article View: news.software.readers
Article #67401Re: [slrn] supersedes and custom headers
From: Thomas Schultz
Date: Mon, 06 Nov 2000 00:00
Date: Mon, 06 Nov 2000 00:00
76 lines
3902 bytes
3902 bytes
On 05 November 2000, J.B. Nicholson-Owens <jbn@forestfield.org> wrote:
> Tony Reed wrote:
>> How often do you do supersedes, anyway?
> Often enough that I might want some custom headers to be attached to
> superseding posts.
Here's a trivial patch that adds this option:
#v+
diff -ur slrn-0.9.6.3.orig/doc/slrn.rc slrn-0.9.6.3/doc/slrn.rc
--- slrn-0.9.6.3.orig/doc/slrn.rc Mon Sep 18 00:35:21 2000
+++ slrn-0.9.6.3/doc/slrn.rc Mon Nov 6 22:05:28 2000
@@ -52,10 +52,11 @@
%Custom headers to add to NEW posts
%set custom_headers "X-Whatever: bla\nX-Misc: bla bla"
-% Custom headers for followup/reply. These can use format specifiers as
-% in the 'followup' string variable.
+% Custom headers for followup/reply/supersedes. These can use format
+% specifiers as in the 'followup' string variable.
%set followup_custom_headers "X-newsgroup: %n\nX-realname: %r\n"
%set reply_custom_headers "X-newsgroup: %n\nX-realname: %r\n"
+%set supersedes_custom_headers "X-Superseded-Date: %d\n"
% Headers to show when viewing an articles. This is a comma-separated
% list of strings that specify what headers to show. Note that these
diff -ur slrn-0.9.6.3.orig/src/art.c slrn-0.9.6.3/src/art.c
--- slrn-0.9.6.3.orig/src/art.c Mon Sep 18 00:35:28 2000
+++ slrn-0.9.6.3/src/art.c Mon Nov 6 22:06:46 2000
@@ -82,6 +82,7 @@
char *Slrn_Art_Help_Line;
char *Slrn_Followup_Custom_Headers;
char *Slrn_Reply_Custom_Headers;
+char *Slrn_Supersedes_Custom_Headers;
int Slrn_Emphasized_Text_Mode = 3;
#define EMPHASIZE_ARTICLE 1
@@ -2858,6 +2859,8 @@
fprintf (fp, "Followup-To: \n");
n++;
+
+ n += slrn_add_custom_headers (fp, Slrn_Supersedes_Custom_Headers, slrn_insert_followup_format);
fputs ("\n", fp);
n += 1;
diff -ur slrn-0.9.6.3.orig/src/art.h slrn-0.9.6.3/src/art.h
--- slrn-0.9.6.3.orig/src/art.h Mon Sep 18 00:35:29 2000
+++ slrn-0.9.6.3/src/art.h Mon Nov 6 22:04:45 2000
@@ -30,6 +30,7 @@
extern char *Slrn_Art_Help_Line;
extern char *Slrn_Followup_Custom_Headers;
extern char *Slrn_Reply_Custom_Headers;
+extern char *Slrn_Supersedes_Custom_Headers;
extern int Slrn_Simulate_Graphic_Chars;
diff -ur slrn-0.9.6.3.orig/src/startup.c slrn-0.9.6.3/src/startup.c
--- slrn-0.9.6.3.orig/src/startup.c Mon Sep 18 00:35:29 2000
+++ slrn-0.9.6.3/src/startup.c Mon Nov 6 22:04:45 2000
@@ -481,6 +481,7 @@
{"custom_headers", &Slrn_Post_Custom_Headers},
{"followup_custom_headers", &Slrn_Followup_Custom_Headers},
{"reply_custom_headers", &Slrn_Reply_Custom_Headers},
+ {"supersedes_custom_headers", &Slrn_Supersedes_Custom_Headers},
#if SLRN_HAS_GROUPLENS
{"grouplens_pseudoname", &Slrn_GroupLens_Pseudoname},
{"grouplens_host", &Slrn_GroupLens_Host},
#v-
--
Thomas Schultz <tststs@gmx.de> * Recent news from http://slrn.sourceforge.net/
-> [2000-10-22] Matthias Friedrich joins the team
-> [2000-09-27] Initial release of the slrn reference manual
-> [2000-09-18] slrn 0.9.6.3 is out
Technical Details
Message-ID:
<slrn90e7ek.4ed.tststs@starflower.tststs.ddns.org>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-mailReferences:
<slrn909ftp.1s74nag.wagnerjm@68060.amiga> <slrn90bdhg.dq.jbn@next.forestfield.org> <slrn90bmrl.gvf.Callus@kubrick.lan> <slrn90bn9j.dq.jbn@next.forestfield.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn90e7ek.4ed.tststs@starflower.tststs.ddns.org> Subject: Re: [slrn] supersedes and custom headers Date: Mon, 06 Nov 2000 00:00:00 +0000 From: tststs@gmx.de (Thomas Schultz) References: <slrn909ftp.1s74nag.wagnerjm@68060.amiga> <slrn90bdhg.dq.jbn@next.forestfield.org> <slrn90bmrl.gvf.Callus@kubrick.lan> <slrn90bn9j.dq.jbn@next.forestfield.org> 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: 690434245 X-Server-Date: 6 Nov 2000 21:16:43 GMT X-Complaints-To: abuse@cityweb.de Organization: Pinguin online. User-Agent: slrn/0.9.6.3pl2 (Linux) NNTP-Posting-Date: 6 Nov 2000 21:22:55 GMT Newsgroups: news.software.readers