🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by David Arnstein Wed, 01 Feb 1995 07:28
Utilities for maintaining newsreader state files (here)
#14955
Author: David Arnstein
Date: Wed, 01 Feb 1995 07:28
155 lines
7328 bytes
// ***tlib-keyword*** $ %n  %v   %f $
// &(#) $ SUMMARY.TXT  1   31-Jan-95,22:08:18 $

                        newsmerg suite version 1.5
                        --------------------------


1.  What is it good for?			
    -------------------
The newsmerg suite consists of four programs which manipulate the
state files used by news readers such as trn and trumpet.  In this
paper, the combination of such a news reader and the computer it
resides on will be referred to as a "newsreader."

Program newsmerg merges the contents of two or more newsreader state
files.  It may be used when several newsreaders are used, but with a
single NNTP server.

Program newscopy translates a state file from one newsreader to
another.  It may be used when a new news reader program is first
used.

Program newssort sorts the entries in a newsreader state file.
Unsubscribed articles appear at the end.  Otherwise, sorting is in
alphabetical order.  This program may be used whenever you wish to
sort your state file.  (Some news readers can do this for you).

Program newsblnk marks deletes all article numbers from your
newsreader state file.  This program may be used when you begin
service with a new NNTP server.  Mostly, this means you switch
internet service providers.

At the present time, the programs have only been compiled on 386 (or
better) peecee's.  Both source code and binaries are available FREE.


2.  An Important Restriction
    ------------------------
These programs work by examining article numbers.  Unfortunately,
each NNTP server establishes its own article numbers.  Therefore,
these programs are only useful if all the newsreaders in use use the
same NNTP server.  The exception is program newsblnk, which is
provided specifically for folks who are switching from one NNTP
server to another.

For example, these programs are useful for people that use SLIP or
TIA to connect a home computer to an Internet Service Provider (ISV)
and who alternate between reading news from their home computer, and
from a Unix login to the ISV.  This is the situation of the author,
not surprisingly.


3.  Supported News Reader Program Formats
    -------------------------------------
At the present time, these programs can parse .newsrc files from
"trn," which means that it can probably parse a .newsrc file from any
Unix news reader program.  In addition, they can parse the news.ini
file from the "Trumpet Newsreader," and the newsrc file from WinVN.
News Express's newsrc file is identical in format to the Unix .newsrc
files, so News Express is covered as well.

The programs are written in such a way that adding new file formats
should be relatively simple.


4.  Usage
        -----
See the files newsmerg.txt, newscopy.txt, newssort.txt, and
newsblnk.txt for detailed descriptions of individual programs.


5.  Availability
    ------------
The author will e-mail either the source or peecee executables for
newsmerg upon request.  Send your request to arnstein@netcom.com and
indicate whether you want source or executables, or both.

In response, you will receive a uuencoded, zip-ped archive containing
the files.  Usually, you will get a response the evening after your
e-mail arrives.


6.  Installation
    ------------
Currently, the programs have only been compiled for use on a peecee.
They use a 386 DOS extender from Borland which must be installed on
the user's computer.  Fortunately, Borland does not charge royalties
for this extender.  You must install two files 32RTM.EXE and
DPMI32VM.OVL in your DOS path, or in the current directory when you
run the programs.

In addition, if you run the programs from a Windows 3.1 DOS box, you
must install file WINDPMI.386 in your Windows SYSTEM.INI file.  For
example, if you choose to place WINDPMI.386 in the directory
d:\utils, you must write the following key into the [386enh] section
of your SYSTEM.INI file:
     device=d:\utils\windpmi.386


7.  Known Problems
    --------------
According to one user, if one of these programs is invoked under
Quarterdeck's QEMM operating system, the command "QDPMI OFF" must be
invoked under QEMM to deactivate QEMM's DPMI (DOS Protected Mode
Interface) support.  This is because newsmerg uses DPMI support from
Borland (included with the newsmerg executables).

The newsreader WinVN will, in normal operation, generate a newsrc
state file containing all available news groups, subscribed or not.
When such a file is merged with a Unix .newsrc file, the .newsrc file
can grow dramatically in size.  This does not seem to disturb the
Unix newsreaders, but it is a bit surprising.

The newsreader WinVN will crash if a line of text in its newsrc state
file is too long.  To prevent this, the programs will artificially
limit the length of lines they write to any WinVN state file, and
print a warning.  In general, lines of text in Unix .newsrc files can
be surprisingly long.  For example, trn's powerful cross referencing
features will silently add long lists of article numbers to groups
that the user is not even subscribed to.  When such a file is merged
with a WinVN newsrc file, then the text lines in the WinVN file can
become long.

A request from the author:  if you are familiar with WinVN source
code, I would like to know precisely what types of text cause WinVN
to crash as it reads its newsrc file.  Please send details to
arnstein@netcom.com.


8. Porting Information
   -------------------
These programs are written in C++ using some fairly recent features
of the language, such as templates and exceptions.  Therefore, it may
be difficult to port to new platforms, due to the terrible state of
most available C++ compilers.  It was developed using Borland C++
4.5.  It is known to *not* compile under gcc 2.6.3.

On the positive side, the programs are written in a clear and
comprehensible manner and therefore should be easy for an experienced
C++ programmer to work with.


9. Feedback Please!
   ---------------
This software is provided free of cost (and free of warrantee, by the
way).  I ask only for your comments, however critical.  If you want
support for another news reader, I will consider it.  If you find
bugs, please report them!  If you upload to an ftp site, please let me
know.  I hope this program is generally useful.

David Arnstein
arnstein@netcom.com
--
David Arnstein
arnstein@netcom.com
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