Article View: news.software.readers
Article #48594Re: view complete threads in slrn, how?
From: Thomas Schultz
Date: Thu, 13 May 1999 00:00
Date: Thu, 13 May 1999 00:00
48 lines
2938 bytes
2938 bytes
On 13 May 1999, John E. Davis <davis@space.mit.edu> wrote:
> That function was introduced in 0.9.5.5. Unfortunately, I improperly
> interfaced it to the interpreter. It is one of the reasons that I am
> going to release 0.9.5.6 this weekend. Here is the patch:
[...]
Thank you, now it works as described. By the way, I noticed that slrn
still does not MIME-encode the user's realname according to RFC 2045
when generating the "From:"-header line in postings. Here is a patch
written by Joachim Wieland <joe@mcknight.swin.de> (and slightly
changed by me so it can be applied to 0.9.5.5) that corrects this.
Maybe you could also include it in the new version of slrn:
--- ../../slrn.orig/src/post.c Sun Apr 25 22:41:43 1999
+++ post.c Fri May 14 00:48:47 1999
@@ -672,7 +672,8 @@
/* This function returns 1 if postponed, 0 upon sucess, -1 upon error */
int slrn_post_file (char *file, char *to, int is_postponed)
{
- char line[MAX_LINE_BUFLEN], *linep;
+ char line[MAX_LINE_BUFLEN]; /* also used for MIME encoding of the realname */
+ char *linep;
int len, header;
FILE *fp;
int rsp;
@@ -853,7 +854,16 @@
if (Slrn_User_Info.username != NULL)
Slrn_Post_Obj->po_printf ("Path: %s\n", Slrn_User_Info.username);
- Slrn_Post_Obj->po_printf ("From: %s\n", slrn_make_from_string ());
+ /* line is not used until now, so we can use it as a buffer */
+
+ strcpy(line, slrn_make_from_string ());
+
+#if SLRN_HAS_MIME
+ if (Slrn_Use_Mime)
+ slrn_mime_header_encode(line, sizeof(line));
+#endif
+
+ Slrn_Post_Obj->po_printf ("From: %s\n", line);
/* if (Slrn_User_Info.posting_host != NULL)
* Slrn_Post_Obj->po_printf ("X-Posting-Host: %s\n", Slrn_User_Info.posting_host); */
--
Kind regards,
Thomas Schultz
Technical Details
Message-ID:
<slrn7jmm8f.4de.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:
<slrn7jgna2.ctn.rvdberg@jupiter.strijp.Ehv.nl> <slrn7jgoem.i6v.davis@aluche.mit.edu> <37394CBE.A3D81DF1@ehv.sc.philips.com> <slrn7jit78.lba.davis@aluche.mit.edu> <3739988E.EED44497@ehv.sc.philips.com> <slrn7jjn6g.m02.davis@aluche.mit.edu> <slrn7jjvr5.1nf.tststs@starflower.tststs.ddns.org> <slrn7jkkdm.ndp.davis@aluche.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn7jmm8f.4de.tststs@starflower.tststs.ddns.org> Subject: Re: view complete threads in slrn, how? Date: Thu, 13 May 1999 00:00:00 +0000 From: tststs@gmx.de (Thomas Schultz) References: <slrn7jgna2.ctn.rvdberg@jupiter.strijp.Ehv.nl> <slrn7jgoem.i6v.davis@aluche.mit.edu> <37394CBE.A3D81DF1@ehv.sc.philips.com> <slrn7jit78.lba.davis@aluche.mit.edu> <3739988E.EED44497@ehv.sc.philips.com> <slrn7jjn6g.m02.davis@aluche.mit.edu> <slrn7jjvr5.1nf.tststs@starflower.tststs.ddns.org> <slrn7jkkdm.ndp.davis@aluche.mit.edu> 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: 477600662 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 926636944 11828 (none) 62.52.148.26 Organization: Pinguin online X-Server-Date: 13 May 1999 23:05:19 GMT X-Access: 16 [153] Content-Type: text/plain; charset=iso-8859-1 User-Agent: slrn/0.9.5.5 (UNIX) Mime-Version: 1.0 Newsgroups: news.software.readers