🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #7823

RFC 1522 for nn-6.5.0.b3

#7823
From: Kristian Köhntopp
Date: Thu, 15 Aug 1996 00:00
117 lines
4741 bytes
Who is currently in charge of nn maintenance?

I have prepared half a patch relative to nn-6.5.0.b3.

The patch modifies nn to correctly display RFC-1522 encoded
characters in menu and reading mode. Also, an output character
translation is applied to all output in menu and reading mode,
upon save and print. This enables corrent display of ISO-8859-x
character sets on my Nextstation. Comment-To lines generated by
Fidonet gateways are recognized and reproduced in followups. A
configuration file for Nextstep 3.2 is included. So are output
character translation tables for some common character sets
(next, atari, dec mcs, applemac, cp437 and cp850).

The patch is 65 KB unifed diff and fairly untested. 40 KB of
this is translation tables source.

The following files are affected:

-----

The inofficial rfc1522 decoder patch was prepared by Kristian
Koehntopp, kris@schulung.netuse.de.

The patch introduces the following modifications:

answer.c: When following up to a message with Comment-To or
          X-Comment-To field, a new Comment-To header is
	  generated containing the full name of the author of
	  the original message. A X-Comment-To of the same
	  content is generated.

	  Comment-To and X-Comment-To are used by Fidonet
	  gateways. Some use Comment-To, others use
	  X-Comment-To. The patch recognizes and generates both.

	  Additionally, the original Comment-To header from the
	  message you answer is copied and retained as
	  Orig-Comment-To. You may find this useful for manual
	  modifications of the header.

chset.c:  Includes output and input translation tables. nn now
          supports systems with Non-ISO-Character sets. MIME
	  ISO-Characters are translated into the local
	  character set on output.

	  The chset structure now includes ISO-8859
	  compatibility information and pointers to local
	  character set translation tables.

	  Code has been added to translate a character from and
	  to an iso-8859 set to or from a local character set
	  (output_translation() and input_translation
	  functions()).

	  A global variable mime_decode has been added. This
	  variable defines the MIME decoding mode. On 0, no
	  decoding is done. On 1, only strict MIME decoding is
	  done; for example, if your local character set is
	  ISO-8859-1 compatible, only ISO-8859-1 characters are
	  decoded, everything else is being displayed
	  undecoded. On 2, everything is decoded.

	  Predicates isb64() and isxb64() have been added.
	  isb64() is true, if c is a base64 character. isxb64()
	  is true, if c is a base64 character or '?' or '='.

	  b64() returns the b64 encoding value of a character.

	  rfc1522_to_iso() copies an input buffer with rfc1522
	  encoded characters into an output buffer. The
	  contents of the input buffer are rfc1522 decoded
	  depending on the setting of the global mime_decode
	  variable.

chset.h:  changed to reflect the changes to chset.c

conf/s-NeXT3.h: a configuration file for nextstep3.2

db.c: changed to include rfc1522 decoding of subject and sender
      fields.

more.c: sorted header_defs table.

news.c: check macro made case insensitve as required by rfc822/1036.
        simplified check for header fields.
	included check for MIME-header fields.
	included rfc1522 decoding for from, name, subj, keyw,
	  org, appr, summ, sender and comment.

news.h: added fields to hold mime header information.

pack_name.c: made 8 bit transparent.

save.c: added call to output_translation() on save and print.

term.c: added call to output_translation in tputc().

variable.c: added variable "mime-decode" (type integer)

tables/*: character translation tables.

man/*: updated to reflect modifications.

xmakefile: changed to reflect modifications.
-----

Kristian

--
"Kristian Koehntopp | (root@kriski.UUCP): Private Access XENIX System
 Harmsstrasse 98    | (kris@tpki.UUCP)  : TopPoint Mailbox, Public Access XENIX
 FRG-2300 Kiel      | BANG  : ...!mcshh!tpki!kriski!(kris|root)"
	-- Meine Signature vom Date: Sun, 28 Jan 90 12:03:52 MEZ :-)

Technical Details
Message-ID: <4uvbv2$dps@white.schulung.netuse.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <4uvbv2$dps@white.schulung.netuse.de>
Subject: RFC 1522 for nn-6.5.0.b3
Date: Thu, 15 Aug 1996 00:00:00 +0000
From: kris@schulung.netuse.de (Kristian Köhntopp )
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
X-Deja-AN: 174356799
Organization: entfällt
Newsgroups: news.software.nn
X-copyright: (C) Copyright 1996 Kristian Koehntopp -- All rights reserved.