🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #37185

Trn -- patch to handle new (brain-damaged) x-uuencode encoding type

#37185
From: Conrad Sabatier
Date: Thu, 20 Nov 1997 00:00
32 lines
1597 bytes

I've noticed recently in certain binaries groups that some people are
suddenly using a MIME encoding type of "x-uuencode" instead of the
standard "x-uue" that trn looks for.  There's no difference between the
two; both are just standard uuencoding, but trn spits out an error message
about unhandled encoding type if you try to extract one of these.

Here's a simple patch:

In mime.c, in function mime_ParseEncoding(mp, s), simply change:

    else if (strncaseEQ(s, "x-uue", 5)) {
        s += 5;
        mp->encoding = MENCODE_UUE;

    }

by adding these two lines before the closing brace:

        if (strncaseEQ(s, "ncode", 5))
        s += 5;
 
This will advance the pointer past the "ncode" part of "x-uuencode"
(necessary for a later check, which is where the original actually fails).
-- 
Conrad Sabatier                  |  FreeBSD -- UNIX for your PC
                                 |  Why settle for less than the best?
http://www.neosoft.com/~conrads  |  http://www.freebsd.org


Technical Details
Message-ID: <651qma$c5g$1@dolphin.neosoft.com>
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: <651qma$c5g$1@dolphin.neosoft.com>
Subject: Trn -- patch to handle new (brain-damaged) x-uuencode encoding type
Date: Thu, 20 Nov 1997 00:00:00 +0000
From: conrads@neosoft.com (Conrad Sabatier)
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: 291114464
Organization: NeoSoft, Inc.
Reply-To: conrads@neosoft.com
Newsgroups: news.software.readers