🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #24814

slrn: patch for improved base64 decoding

#24814
From: Olly Betts
Date: Fri, 09 Aug 1996 00:00
26 lines
1466 bytes
My first base64 decode using slrn resulted in a file called 'unknown-64.0'.
Somewhat unimpressed, I patched uudecode.c to check for a "name" parameter
in "Content-Type:" (in addition to the exisiting behaviour, which was to
look for a "filename" parameter in "Content-Disposition:").

Here's the patch:

--- uudecode.c.base	Tue Jun 25 10:43:27 1996
+++ uudecode.c	Fri Aug  9 10:47:22 1996
@@ -456,6 +456,8 @@
 
 static int parse_content_type (char *p, Mime_Message_Partial_Type *mpt)
 {
+   (void) parse_name_eqs_string (p, "name", Base64_Filename, sizeof (Base64_Filename));
+   
    if ((NULL == (p = skip_header_string (p, "message")))
        || (NULL == (p = skip_header_string (p, "/")))
        || (NULL == (p = skip_header_string (p, "partial")))

Olly
-- 
cool wet grass  cool wet grass  cool wet grass  cool wet grass  cool wet grass


Technical Details
Message-ID: <4uf26f$ecq@sunforest.mantis.co.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

Show Full Headers
Complete Article Headers
Message-ID: <4uf26f$ecq@sunforest.mantis.co.uk>
Subject: slrn: patch for improved base64 decoding
Date: Fri, 09 Aug 1996 00:00:00 +0000
From: olly@mantis.co.uk (Olly Betts)
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: 173114797
Content-type: text/plain; charset=iso-8859-1
Organization: Mantis Consultants Ltd, Cambridge. UK.
Mime-version: 1.0
Newsgroups: news.software.readers