🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
3 messages
3 total messages Started by Frank Pilhofer Thu, 05 Sep 1996 00:00
Improved Decoding for NN
#7925
Author: Frank Pilhofer
Date: Thu, 05 Sep 1996 00:00
120 lines
5565 bytes

  Hi Folks,

 Some time ago I had posted a patch to nn to use the powerful decoding
functions provided by the UUDeview Decoding Library. I have now updated
the patch. The decoding is now even more comfortable to handle, and I've
even built in the reverse: you can now attach files to your newsgroup
postings, which will be sent as proper MIME multipart messages.

 The UUDeview Library provides support for decoding uuencoded, Base64
and BinHex-encoded files. With it's own part sorting and threading, you
do not need to bother about what articles to select.
 See below for a full list of features.

 The following patch applies to nn 6.5.1. Here's how to integrate
the patch:


 o  Patch your nn sources. Extract the file below, go to your nn
    source directory and type:
      gzcat nn-6.5.1-uudeview.diff.gz | patch -p1
    If the changes to "Makefile" fail because of your own changes,
    edit the following two lines manually:

CFLAGS =        -O -Iuulib
LDFLAGS =       -Luulib -luu

    (the distribution Makefile has no "LDFLAGS" line. Just add it.)

 o  Download the UUDeview package. The most recent version is 0.5.7,
    available as uudeview-0.5.7.tar.gz or from its home page,
      http://www.uni-frankfurt.de/~fp/uudeview/
    (Version 0.5.7 is _required_ for the attachment feature to work,
    the decoding will also work with older versions).

 o  Extract, compile and install UUDeview so that the binaries are
    globally accessible. Do not remove the source yet.

 o  Go to your nn sources and create a symbolic link to UUDeview's
    "uulib" subdirectory:
      ln -s /where/ever/uudeview-0.5.5/uulib .

 o  The file config.h-dist has also been modified by the patch. If
    you already had nn properly configured, save a copy of your
    custom config.h and follow the nn configuration instructions
    again.
    The new entry in config.h-dist defines the location of the
    "uuenview" program (yes, uu*en*view, not uudeview). This is
    necessary for the attachment feature to work.

 o  Compile and install nn as usual. If you have an existing
    installation, there's no need to remake nnmaster (just do
    "make client").

The decoding feature:
---------------------

 Instead of changing the behaviour of ":decode", I added another command
":deview" which invokes the new code. In the unlikely event that UUDeview
screws up, you can still escape to the old :decode.
 Handling the new function is easy. Select all articles with encoded data
and hit :deview. You will be asked for a target directory to write the
decoded files to. This works even if parts of one file are mixed with
parts of other files, so in a binaries group you could just hit =. to
select all articles and then :deview everything.
 All articles will be scanned for encoded data. You will then be asked
for each file wheter it shall be decoded or not. At the prompt, answer
'q' to abort the procedure, 'n' to not decode this file, 'a' to decode
all futher files without promting and 'y' (or any other key) to decode
this single file.


The attachment feature:
-----------------------

 You know the prompt you see when posting an article after you've
written it. At that point, you now have the new choice "at)tach".
If you choose it, you will be asked to enter the name of a file
to be attached. You can repeat this step as often as you like.
 After you've finally agreed to "p)ost" the article, it will be
sent with all files as separate attachments.
 Currently, all attachments are encoded in Base64 format.

 Because nn jumps to the editor first and aborts if you don't edit
anything, it is not possible to send a blank message with attach-
ments (which isn't necessary as uuenview can handle that job, too).


 I hope there are people out there who will find the patch useful. Let
me know. I'm also goint to try and make a similar patch to elm (based
on version 2.4.25). However, I'm still at the learning stage there,
elm's sources aren't the easiest to read.

 Have fun,
	Frank

begin 644 nn-6.5.1-uudeview.diff.gz
<uuencoded_portion_removed>
A1LD=E\GG_4W[JZ6=SL1B@\+F6D,%2MW_`)B5R+-='```
`
end


-- 
 + Frank Pilhofer                            fp@informatik.uni-frankfurt.de  +
 | Darmstaedter Str. 22                     http://www.uni-frankfurt.de/~fp/ |
 | D-63225 Langen, Germany                              RAD Host             |
 +---------------------------------------------------------------------------+
 | It's no use. She'll never see me as anything - but a monster.   The Beast |

-- 
 + Frank Pilhofer                            fp@informatik.uni-frankfurt.de  +
 | Darmstaedter Str. 22                     http://www.uni-frankfurt.de/~fp/ |
 | D-63225 Langen, Germany                              RAD Host             |
 +---------------------------------------------------------------------------+
 | It's no use. She'll never see me as anything - but a monster.   The Beast |


Trouble posting w/ 6.5.1
#7944
Author: Matthew England
Date: Sun, 08 Sep 1996 00:00
114 lines
4364 bytes
I attempt to post to a non-moderated newsgroup (chi.test), and before I
can even pop into my editor, nn *immediately* returns and prints
"Article
not posted" at the bottom line.  Anybody have any debugging hints?
I'm on a

    mengland@xx 12:12am [~] 21> uname -a
    SunOS xx 5.4 generic sun4d sparc
    mengland@xx 12:12am [~] 22>

machine.  It also has a SunOS 5.5 disk on it which I can easily reboot
to, if that helps.  I also have my choice of IRIX, HP-UX, Solaris1,
Digital-Unix, and AIX to build on, too, but I'd rather stick to the
Solaris2 port.

Here's my inews test:

mengland@xx 12:05am [...olddocs/doc] 38> /usr/local/bin/inews -h -D
~/News/chi.t
est > /dev/null
mengland@xx 12:05am [...olddocs/doc] 39> if $? echo bogus
mengland@xx 12:05am [...olddocs/doc] 40>

Everything seems to be ok here.

I'm posting this via Netscape (ugh), so it appears as if all fingers
point to the nn client as the culprit.

fyi, all I build is the 'nn' executable and copy it to
/usr/local/bin/nn.  I'm I supposed to do something else?  If so, I
can't get the 'inst' script to work.

Our news server has been working from some time on a variety of other
applications, but I don't know if any of these applications were run
from the same machine as what I'm trying to run nn on (because I think
everybody just runs PC or Mac apps--another ugh).

Thanks a bunch for any help.
Matt
--
Matthew England
Systems Engineer                                 | voice: (630) 325-4151
National Peripherals Inc. (NPI), an MTI Company  |   fax: (630) 325-4230
1111 Pasquinelli Drive, Westmont, IL, 60559, USA |      mengland@npi.com

Here's a config.h comparison (I put stuff in s-sunos5.h where config.h
request that I do):

mengland@xx 12:32am [...nn/nn-6.5.1] 3> diff config.h config.h-dist
99c99
< #define NNTP_SERVER   "/usr/local/lib/nntp_server"    /* */
---
> #define NNTP_SERVER   "/usr/lib/nntp_server"  /* */
130c130
< /* #define NNTP_PATH_HOSTNAME "bud.npi.com"   /* */
---
> /* #define NNTP_PATH_HOSTNAME "puthostnamehere"       /* */
141c141
< #include "s-sunos5.h"
---
> #include "s-hpux9-0.h"
148,149c148,149
< #define DEFAULT_PAGER "pg -n -s"      /* system V */
< /* #define DEFAULT_PAGER              "more"          /* bsd */
---
> /* #define DEFAULT_PAGER      "pg -n -s"      /* system V */
> #define DEFAULT_PAGER         "more"          /* bsd */
156,157c156,157
< #define DEFAULT_PRINTER       "lp -s"                 /* System V */
< /* #define DEFAULT_PRINTER            "lpr -p -JNEWS"         /* bsd
*/
---
> /* #define DEFAULT_PRINTER    "lp -s"                 /* System V */
> #define DEFAULT_PRINTER               "lpr -p -JNEWS"         /* bsd */
202c202
< #include "m-sparc.h"
---
> #include "m-hp9000.h"
310c310
< #define INEWS_PATH            "/usr/local/bin/inews"  /* */
---
> /* #define INEWS_PATH         "/usr/lib/news/inews"   /* */
318c318
< /* #define DONT_COUNT_LINES   /* */
---
> #define DONT_COUNT_LINES      /* */
370c370
< /* #define APPEND_SIGNATURE   /* */
---
> #define APPEND_SIGNATURE      /* */
395c395
< #define USER_MAN_DIR  "/usr/local/man/man1"
---
> #define USER_MAN_DIR  "/usr/man/man1"
398c398
< #define SYS_MAN_DIR   "/usr/local/man/man1"
---
> #define SYS_MAN_DIR   "/usr/man/man1"
401c401
< #define DAEMON_MAN_DIR        "/usr/local/man/man8"
---
> #define DAEMON_MAN_DIR        "/usr/man/man8"
489c489
< #define CONFIG_NUM_IN_VERSION /* */
---
> /* #define CONFIG_NUM_IN_VERSION      /* */
523c523
< #define CACHE_PURPOSE /* */
---
> /* #define CACHE_PURPOSE      /* */
mengland@xx 12:33am [...nn/nn-6.5.1] 4>

Re: Trouble posting w/ 6.5.1
#7948
Author: Matthew England
Date: Sun, 08 Sep 1996 00:00
9 lines
990 bytes
fyi, if it looks as if I replied to Frank's about improved decoding,
the result was unitentional.  I replied instead of making an 
original post because I couldn't find a way to get my 
$@$%@#!!@#$@!@#!#$!#$! netscape newsread to post an original note.

-Matt

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads