Johan Reinalda, WG7J, stopped development of the MS-DOS version
of JNOS in May 1994 with the 1.10c release.  I've undertaken the
maintenance of this version while Johan takes a well-deserved
rest and then pursues a WIN32 version.  Accordingly, here is JNOS
1.10g. Please send comments and bug reports that pertain to the
MS-DOS version to me, James Dugal, N5KNX at this address:

Email:	jpd@usl.edu  or  n5knx@k5arh.#lft.la.usa.noam
Post:   James Dugal, N5KNX
	P.O. Box 44844
	Lafayette, LA  70504
	U.S.A.
-------------------


OBJECTIVE:

The objective of this code is to improve the use and features of NOS.
A lot of the work is done through cooperative discussion and testing
among the subscribers of the Internet maillist 'nos-bbs@hydra.carleton.ca'
(to subscribe, send mail to 'nos-bbs-request@hydra.carleton.ca')
A lot of new stuff comes from code fragments or suggestions contributed by
people on that maillist, most of which are avid users of the code.
This code is a continually developing piece of work, and as such, it should
be seen as a BETA software, no matter whether it is indicated as such or not.
You should not expect this to be a 'plug and play' solution to tcp/ip over
packet radio. If you experience problems, feel free to contribute
'constructive' critisism to the author or the discussion group.



VERSION NAMING CONVENTIONS:

JNOS cycles through three identifiable stages as source code is being
put out. Code goes from testing stage (aka. beta code), to somewhat
stable released code, to maintenance/bugfix updates. Note that the
OBJECTIVE above still applies to ALL code being released,
whether it is identified as beta, release or bugfix...!

As of v1.10, there is a 'new' version naming scheme.

1) eXperimental code put out by me will be a version number with 'x#' added.
   'x' stands for eXperimenting, and # is the number of test release.
   This will be the first step toward a new 'release'

   Eg:  JNOS 1.10x1 is the first test release for version 1.10 .


2) When an 'x' version seems stable, I might decide to put it out as a
   'released' version. This is the time the 'general public' jumps on it :-)
   This version will drop the 'x#' designation.
   At this time I will have at least one executable available, and the full
   source set. The source set will be versionname.ZIP,
   and the executable versionname.EXE . The executable might be a self
   extracting exe with some miniscule docs etc...

   Eg: JNOS 1.10 is the 'official release' version of 1.10
       JNOS110.ZIP is the source set, and
       JNOS110.EXE is the executable.

3) As bugs are found after step 2, bugfix/maintenance updates will be numbered
   with the version name plus a single letters added. (Using x for experimental
   should be okay, as long as we don't get many bugfixes... :-) )

   Eg. JNOS 1.10a is the first bugfix after the release of version 1.10


I strongly advise everyone that makes mods to use the same base version number,
INCLUDING experimentation or bugfix suffixes, with a personal extension.
This allows others to see what your base code was.
Eg. JNOS 1.10x3-Mods

If you send bugfixes and mods to the nos-bbs list or me, they will most
often get put into the next release...




COMPILER:

Starting with 1.08, I use Borland C++ 3.1 for all executables i distribute.
In the makefile, you have the option of compiling with TC2.0, BC++2.0,
BC++3.1, or BC++ 4.0 . You can also choose the cpu to compile for (see note!)

*** NOTES *** :
I DO NOT GUARANTEE the code will compile without glitches with other compilers,
although an effort has been made to keep things compatible with TC2.0 and BC2.
Also, I only compile for 8086 ! Any other cpu is NOT tested !
(Although I have compiled 1.10 for the 80386, and a cursory test seems okay)

If you choose the TC2.0 compiler, be aware that there is one function
that doesn't exist in the TC2.0 library. This is the mktime() call.
There is a substitute in expire.c.  You also have to tone down the config.h
file, since you are likely to run out of DGROUP space. TC2.0 doesn't allow
for other segments to be used (the -Ff=x option in BC++2.0 and above).

If you use an older version of Borland's TASM.EXE assembler, it might choke
on line 2 in asmgloba.h : '.MODEL USE16 LARGE,C'. Simply remove the 'USE16'
to solve this problem.

Please also refer to the FAQ, mentioned above, for more info on compiling
the code.


CONFIG.H:

There are several different configurations in the source archive.
I also DO NOT GUARANTEE that other variations of config.h work. It is
impossible to test all different configurations possible with the many
options in config.h. Thus there might be certain combinations that result
in either compiler or linker errors...Find someone with good C and NOS
programming knowledge :-) ...

Also, I only compile for 8086 ! Any other cpu is NOT tested !

distconf.h - used to create the distribution executable (8086 code)
bbsconf.h  - as I run it on my bbs system. (WG7J.OR.USA.NA)
gwconfig.h - as I run it on my Internet gateway system (wg7j.ece.orst.edu)
users.h    - end-user, with serial port and scc drivers, but no bbs options



MAIL INDEX FILES:

==> As of 1.10x15, JNOS now senses index file status at startup and after
    returning from shells. Index files for changed mailbox files will be
    automatically updated at this time.!
    This means you can now use ANY EXERNAL MAILER !!!

As of version 1.10x3, JNOS stores an index file for each mail *.TXT file.
This drastically speeds up switching of areas, and listing of mail headers.

As of version 1.10x10, the format of the index files have changed. They are
now variable length binary records. See index.h for the content of the record.
(The indexfiles are now named *.IND)

As a side effect, there is no limit anymore to the number of messages held
in a mailbox. This now is only limited by system memory :-)

Manual manipulation of index files is NOT advised !!!



DOCUMENTATION:

All PA0GRI specific commands can be found is his nos_1229.man .

The latest docs files, for JNOS 1.10, are docs110.zip, thanks to an
effort by Doug Thompson, WG0B, and Johan Reinalda, WG7J.


SOURCES:

If you obtained sources, feel free to do with them as you please,
as long as you keep and obide the copyrights in the different source modules!
If you add substantial stuff to the code, please modify the version string
in version.c to reflect this. (So i won't have to answer tons of questions
about stuff i didn't write)

Latest sources can be obtained on Internet by anonymous ftp from among others:

pc.usl.edu in pub/ham/jnos
ftp.ece.orst.edu in pub/ham/wg7j
ftp.ucsd.edu in hamradio/packet/tcpip/incoming

They can also be found on several phone bbs systems, often shortly after
the release date.  Here are some to try (all in the U.S.A.):

        N8EMR's Ham BBS (614) 895-2553
        ChowdaNet       (401) 331-0334

NOTE: Due to large workload, I no longer will send you sources!!!

If you add/modify anything that might be useful to others, I would
appreciate the mods, to possibly add to the code.


THE LAST WORD:

"Definitive is the source, not this note :-)"



HINT HINT HINT HINT :

if you are experiencing problems receiving with certain tnc's with this
code, set the dtr and rts parameters correctly
'param <iface> dtr 1' and 'param <iface> rts 1'
(this is due to a rewrite of the original 8250 drivers
 in KA9Q 911218 and later)


FTPUSERS PERMISSIONS:

Name:        value     (hex)
FTP_READ        1       0x1             /* Read files */
FTP_CREATE      2       0x2             /* Create new files */
FTP_WRITE       4       0x4             /* Overwrite or delete existing files */
AX25_CMD        8       0x8             /* AX.25 gateway operation allowed */
TELNET_CMD      16      0x10            /* Telnet gateway operation allowed */
NETROM_CMD      32      0x20            /* NET/ROM gateway operation allowed */
SYSOP_CMD       64      0x40            /* Remote sysop access allowed */
EXCLUDED_CMD    128     0x80            /* This user is banned from the BBS */
/* 256 and 512 are used in PPP*/
NO_SENDCMD      1024    0x400           /* Disallow send command */
NO_READCMD      2048    0x800           /* Disallow read command */
NO_3PARTY       4096    0x1000          /* Disallow third-party mail */
IS_BBS          8192    0x2000          /* This user is a bbs */
IS_EXPERT       16384   0x4000          /* This user is an expert */
NO_CONVERS      32768   0x8000          /* Disallow convers command */
NO_ESCAPE       65536   0x10000         /* Default is no escape char */
NO_LISTS        131072  0x20000         /* No lists displayed from mailbox */
NO_LINKEDTO     262144  0x40000         /* disable '*** linked to' */

To set options, simply add values. Format in /ftpusers file is:
name password /rootdir #perm

password can be a *, then any password is allowed.
if name is "univperm", then any name not found otherwise in the ftpusers file
will be treated as if it was "univperm". If password is set, this password
needs to be used. Eg:
univperm * /public 132103

gives anyone not otherwize know login permission, but no ax.25, netrom, lists
etc. and also ftp downloads are allowed...



ERRORS IN NOS:

Here is the long awaited list of error numbers used in nos!
The numbers listed are directly from the sources (socket.h),
and when appropriate, are followed by a little description I've
shaken out of my pen :-)

#define EMFILE          1
#define EBADF           2
#define EINVAL          3
#define ESOCKTNOSUPPORT 4       Socket type not supported
#define EAFNOSUPPORT    5       Address family not supported
#define EOPNOTSUPP      6       Option not supported
#define EFAULT          7
#define ENOTCONN        8       No connection established
#define ECONNREFUSED    9       Already connected, or connection refused,
#define EAFNOSUPP       10
#define EISCONN         11
#define EWOULDBLOCK     12      Socket would have blocked
#define EINTR           13
#define EADDRINUSE      14      Address already in use
#define ENOMEM          15      Not enough system memory to do task
#define EMSGSIZE        16
#define EALARM          17
#define EABORT          18      Action aborted
#define ECONNNOROUTE    19      No tcp route to target address



FILES FOR JNOS:

Please check the file NOS.CFG in this distribution for the names and
locations of the files used on JNOS.



COMMAND LINE OPTIONS:

JNOS can be started with a number of command line options. All but one start
with a '-'. Options should be separated by tabs or spaces. The option and the
option argument (if any) should be contiguous (ie NO spaces).

-b          : Use direct video for the screen output.
-c#         : set the number of columns on the screen to #.
-drootdir   : set the root dir for configuration file path. This is overwritten
              by the files included in the -f config file.
-e          : pause after each error line in autoexec.nos.
-fnos.cfg   : set JNOS config file names as indicated in the file 'nos.cfg'.
              This overrides the -d option.
-i          : always re-index mail files at startup
-l          : do not remove *.lck files in the mail subdirectory
              (default is to remove *.lck in the /spool/mail directory!)
-mn         : set the default screen swap mode.
                n = 0 : Use EMS (if compiled in and EMS is available).
                        (Default is ems available)
                n = 2 : Use memory. (default if no ems available)
                n = 3 : Use a temporary disk file.
-n          : no trace session.
-r#         : set the number of rows on the screen to #.
-t          : trace the autoexec.nos file. You will be asked before each
              if you want to execute it. 'y' accepts, anything else
              skips the line.
-v          : verbose. Print line from autoexec.bat before parsing.
-u#         : set the number of status lines, valid values are 0-3
-wf+b       : set the foreground and background color for the system status
-xf+b       : set the foreground and background color for the session status
-yf+b       : set the foreground and background color for the 'main' window
-zf+b       : set the foreground and background color for the 'split' window
autoexec.new: Name of the startup file. If not given, \autoexec.nos (or as
              indicated with the -fnos.cfg option) is used.


DOS MEMORY:
Here is an interesting message:
----
Date: Sun, 13 Feb 94 18:58:52 UTC
From: k5rw@k5rw.ampr.org
Subject: VIDRAM alternative
To: nos-bbs@hydra.carleton.ca

DOS users that want extra memory for NOS/JNOS can use the following 
instead of VIDRAM from Quarterdeck.

In your config.sys file for color video adapters load EMM386.EXE this way

DEVICE=C:\DOS\EMM386.EXE NOEMS I=A000-B7FF NOHI

In your config.sys file for mono video adapters load EMM386.EXE this way

DEVICE=C:\DOS\EMM386.EXE NOEMS I=A000-AFFF NOHI

Configured this way, EMM386 converts a portions of the area nomally reserved 
for the video buffer to usable RAM and links it wtih convetional memory.
Executable programs sizes can approach 700K or larger.

Don't switch to a pgm that uses graphics mode.  This should probably only be 
used for boxes dedicated to NOS/JNOS or other non-graphic applications
_____



Additions/changes are:



1.10g (940826)

-  Help command enhancement, by N8FOW.  The console command set is now
   documented by online help files stored in /help by default.  This dir
   can be changed by redefining CmdsHelpDir in nos.cfg.  The archive
   CMDSHELP.ZIP contains the help files which should be placed in the
   help directory.  For example:    mkdir \help
                                    pkunzip -e a:cmdshelp

   The help command takes one argument, the command for which help is wanted.
   The help file will be displayed only if that command was compiled into
   Jnos.

-  NNTP client now supports LZW compression and GMT/UTC timezone.  A new
   command, "nntp firstpoll #days" was added from G8FSL, which determines how
   many days of news are requested by the initial poll to a new server.  Another
   new command, "nntp dir old=new" defines how a newsgroup is renamed locally.
   Mappings are examined in the same order they were specified.  Null mappings
   are permitted, which serve to delete the first part of a newsgroup name.
   Use "nntp dir old==" to delete a mapping specification.  For example:
       nntp dir rec.radio.=
       nntp dir amateur.=
       nntp dir shortwave=swl
       nntp dir usl.maillist.tcp-group=tcp

   would map rec.radio.swap to swap,  rec.radio.amateur.packet to packet,
   rec.radio.shortwave to swl, and usl.maillist.tcp-group to tcp.

-  NNTP server supports GMT.  No more infinite wait for the history lock;
   if a history lock persists this fact is logged and nntp exits.  The
   "nntp firstpoll #days" command was added, as described above.

-  Mailbox will no longer claim there is new mail in an area that is empty.
   A new command, XP, was added that toggles a flag describing whether a
   telnet user desires single-character or complete-line reads, when prompted
   for input.  This would help AX.25 users who reach Jnos via a T gateway
   command.  

   Thanks to Jan, PE1DGZ for modifications to show that unread personal
   mail is waiting via the MAIL string on status line 1.  I added the
   "mbox mailfor watch call_1 ... call_n" command to permit specification
   of which mailboxes are to be checked.  To initiate this feature, you
   must activate mailfor (eg, "mbox mailfor 600") and set the watch list
   (eg, "mbox mailfor watch n5knx check").  To remove the MAIL string,
   first read the mailbox's last message, and then force the mailfor process
   (eg, "mbox mailfor now") or await the mailfor timer's maturation. Note
   that the calls to be watched must not appear in /spool/areas!

   The sysop's request to change to an area is now validated, to avoid
   problems when an invalid name is given.

-  Async driver now supports chained interrupts, a 6th serial port, and
   NRS-CTS protocol.  A chained interrupt is designated by suffixing the
   irq by "_c" in the attach comand.  Remember the first port in the chain
   should NOT have the "_c" flag, and the last port specified with chaining
   will get the best response, since it's serviced first.  Since PCs are
   edge-triggered, chaining will work erratically unless a board is designed
   to support it.

   The NRS-CTS protocol emulates the behaviour of the Tiny-2 TNC in a
   Netrom-style node stack, and is specified (when NRS is #defined) by a
   'n' attach flag, e.g.  attach asy 03f8 4 nrs nstk 512 256 9600 n

   Here's the description of the wiring, provided by N2RJT:

   The hexipus and other diode matrixes for connecting NetROM-style nodes
   have always been a source of confusion.  This is an explanation of how
   and why it works.

   The hexipus was designed to connect two Tiny-2 TNCs with straight-thru
   cables. The Tiny-2 was designed to connect to a PC (9-pin connector)
   with a straight- thru cable, just like a modem.  That means the Tiny-2
   is DCE:  it receives data on the TXD pin, and sends data on the RXD pin
   - exactly the opposite of what seems right.

   The hexipus is wired like a null-modem, except with diodes.  That much
   makes sense - but you have to understand that the hexipus isn't a
   null-modem.  It is the opposite:  a null-terminal, null-computer, or
   null-DTE.  In other words, the diode orientations are exactly the
   opposite of what they would be if the hexipus were a null-modem.

   The other important thing to understand is that the data signals go thru
   the diodes in a different direction from the flow control signals.  This
   is easiest to explain in terms of voltage levels and idle states.  The
   purpose of the diodes is to allow a single line with non-idle state to
   override all the other lines with idle states.

   Data lines: the idle state is a STOP  bit = 1 = MARK  = V-
               the data state is a START bit = 0 = SPACE = V+
               One V+ must be able to override multiple V-

   Flow lines: the idle state is V+
               the flow state is V-
               One V- must be able to override multiple V+

   So, this is what the matrix must look like:
   -----------------------------------------------------+
             -              |           -               |  Symbols:
   Idle RXD --->|--  ~      | Idle RXD --->|--  +       |
             -     |--- TXD |           +     |--- TXD  |     + Positive Voltage
   Idle RXD --->|--         | Send RXD --->|--          |     - Negative Voltage
   -----------------------------------------------------+     ~ No current flow
             +              |           +               |
   Idle CTS ---|<--  ~      | Idle CTS ---|<--  -       |     All signals flow
             +     |--- RTS |           -     |--- RTS  |     from left to right.
   Idle CTS ---|<--       ^ | Send CTS ---|<--          |
                    pullup|                             |     Resistor = 4.7K ohms
                    resistor to V+                      |
   -----------------------------------------------------+

   So the simplified 2-port diode matrix would look like this (9 pin sense):
   2 RXD-->|--TXD 3
   3 TXD--|<--RXD 2    The RXD diode arrow always points to TXD
   5 GND------GND 5
   7 RTS-->|--CTS 8    The RTS diode arrow always points to CTS
   8 CTS--|<--RTS 7

   The more common cables are shown below, assuming 9-pin connectors, but
   showing the 25-pin connector assignments in parentheses.  Tiny-2s have
   the pullup resistor internally, but PCs don't.  The usual way around
   this is to solder the resistor to an unused pin such as DTR, and have
   the PC software assert DTR to supply the V+.

   PC NOS       HEXIPUS | PC MSYS      HEXIPUS | TNC-2        HEXIPUS | Tiny-2
   ==================== | ==================== | ==================== | ==========
   TXD 3(2) -- 2(3) RXD | TXD 3(2) -- 2(3) RXD | RXD 2(3) -- 2(3) RXD | RXD 2
   RXD 2(3) -- 3(2) TXD | RXD 2(3) -- 3(2) TXD | TXD 3(2) -- 3(2) TXD | TXD 3
   GND 5(7) -- 5(7) GND | GND 5(7) -- 5(7) GND | GND 5(7) -- 5(7) GND | GND 5
   RTS 7(4) -- 8(5) CTS | DTR 4(20)-- 8(5) CTS | DTR 4(20)-- 7(4) RTS | RTS 7
   CTS 8(5) -- 7(4) RTS | CTS 8(5) -- 7(4) RTS | CTS 8(5) -- 8(5) CTS | CTS 8
   DTR 4(20) asserted   | RTS 7(4) asserted    |                      | NR  9
                        |                      |                      |
   Solder resistor at PC| Solder resistor at PC| Connect pins 10 & 23 | Connected
   end of cable to CTS  | end of cable to CTS  | at TNC-2 end of cable| straight
   and DTR which is V+. | and RTS which is V+. | to enable NetROM mode| through.

   Jim  WA2ZKD  | @WB2PSI.#WNY.NY.USA.NA | This file: wiring\hexipus.txt
   Dave N2RJT   | @sw.wb2psi.ampr.org    | 18-Feb-1993


-  Encapsulation RX using protocol code 4 is supported (KA9Q).

-  LZW compression added for ftp client's put, mput and rput commands (when
   in ascii mode).  Offers to do LZW are discontinued after the first rejection
   in an ftp session (unless a 'reclzw on' command is issued).

-  A printer as an output device is now supported if PRINTEROK is #defined.
   If a printer name is used as a local area name, SMTP will print the message
   followed by a FormFeed (and no index file is written).  If the printer is
   offline or has an error condition, the smtp message remains in mqueue, and
   is retried at every maturation of the smtp timer.

-  Bids found by the SMTP server in non-dup messages, are now stored into
   the bid history file.

-  LZW compression added for POP3 client and server, from N2RJT.  New command,
   "pop lzw [on|off]" added.

-  New command, "lzw trace [on | off]", added.  If on, when a socket is
   closed, its compression statistics are written to the console.  (N2RJT)

-  IP heard and ax25 heard now have correct counts.  From VE3DTE.

-  115200 baud is now supported in the attach and dialer commands.

-  Dialer now displays progress properly.

-  SMTP "New mail for ..." and POP "New mail arrived for..." messages can
   be eliminated by setting the smtp trace value and pop trace value to 0.  All
   preexisting trace values should be incremented by one to display the same
   results as previous versions on Jnos.



1.10f (940704)

-  index files are MUCH more robust.  You should force a rebuild of
   your indexed areas when you first start 1.10f (issue 'index *').

-  tip dialup code fixed to recover from hangups, idle timeouts, and
   shutdowns.  tip user names now shown by 'mb status'.

-  async driver replaced with pa0gri's version, which is faster and
   handles rts/cts better.

-  nntpcli improved to maintain indices and timestamps (tnx VE3LUM), and creates
   only subscribed newsgroups.  If you don't want indices created, set a
   new spool dir, such as:  nntp dir /newsdir /spool/news

-  expire now can expire NNTP articles and history files, for both NNTP
   client and server JNOS configurations (tnx VK5XXX).  Expire uses a different
   procedure which seems to eliminate trashed indices, and will remove areas
   that become empty after a succesful expire.

   To expire newsgroups, enter their names into /spool/expire.dat, PREFIXED
   with '!'.  Example:  !rec.radio.swap 7

   To access newsgroups as areas (NNTP client only), put the newsgroup name
   into /spool/areas.  Example:  rec.radio.swap	-  for sale/swap postings

-  forward.bbs optional destination field works again.

-  'pause #secs' command added.

-  pwait() calls added to index-scanning routines to more equitably
   share cpu time.

-  G8FSL's smtp hopper code added.  If you define HOPPER in config.h
   and recompile Jnos, then smtp will deliver to a gateway serving a
   destination if one can be found in the routing tables.

-  TNOS/KF5MG's rlogin and QRZ callbook server code added.
	To run the QRZ callbook server, first compile with QRZCALLB
	defined in config.h, then issue these commands before starting
	JNOS:		set qrzdrv=E:     (or whatever you use)
			set qrzpath=\dir\path		(to dir containing
							callbkc.dat/.idx)

	Then in Jnos, issue:	callserver host k9dog	(your call)
				start callbook

   The rlogin server is really a responder for telnets to port 513, that
   logs you into the mailbox, then invokes the sysop (@) command for you.

-  info cmd displays compiler version.

-  "early" disconnect from the mailbox is re-enabled, with code added to
   prevent unwarranted side effects previously noted.



1.10e (not released)

1.10d (940527)

-  --more-- prompting should accept single character responses again, for
    tip and telnet users.  Use space to advance to next page, CR for next
    line, and q to quit.

-  MC/MM commands now accept a pathname as well as an area, for the sysop.

-  more tests to eliminate unproductive forwarding connects.  Additional
    logging of mbox exits.

-  locking change to help assure the index files stay in sync.

-  MBOX now remembers your position and msg status (eg, delete) when
    new msgs arrive.

-  G8FSL's multitask change applied.

-  morecore will accurately report memory status when it fails, and will
    not log allocation failed messages as frequently.



1.10c (940417)

-  param <iface> rcvmode <n>
    will now set the receive mode for a packet driver <iface>,
    where <n> is one of the following

    1     turn off receiver
    2     receive only packets sent to this interface
   *3     mode 2 plus broadcast packets  *DEFAULT*
    4     mode 3 plus limited multicast packets
    5     mode 3 plus all multicast packets
    6     all packets

    This is primarily useful for tracing the ethernet (mode 6), or for
    limiting the amount of packets jnos sees (mode 2, combined with the
    appropriate hardcoded arp entries for a gateway, etc... so that
    ip routing still works, since mode 2 basically disables the arp
    mechanism.)

- turning off watchdog while shelled out without multitask on, fixes reboots
  after 5 minutes

- 'convers channel' sets or shows the default channel for users

- 'rewrite <address>' will show the result of the mail rewrite process
  (from an idea of Doug Crompton, wa3dsp)

- '-i' startup option forces all index files to be rewritten at startup

- one more forward.c usesock() fix.

- 'remote' command socket hanging around fixed.

- tipmail ^R echo fixed.

- clean up of a lot of compiler warnings.



1.10b (940318)

- forward code caused screen output socket to be lost at time; fixed
  (from n5knx)

- socket reference count fix in session.c

- a message sent to 'call' from the bbs, that gets rewritten to a different bbs
  is now forwarded as 's call < from' instead of 's call @ call < from'

- keyboard process stack size increased to 512.

- bugfix in ax25 recover timer for retry counts exceeding the backoff limit.

- forward.c bid mangling bug fix (creeped into 1.10a trying to fix long msg-id's).

- bug fix in netrom socket code that crashed system when a netrom mailbox
  connect came in.


1.10a (940309)

- alias commands show in the node prompts if turned on with
  'mbox showalias on'
  (They show before the ? in the short prompt, eg BBS,TEST,?,B,C,...
   and on a separate line in the long prompt. )

- status window is disabled while shelling out with multitask enabled.

- status window netrom session timer fixed.

- ftp server and client now use the 'SYST' command to get remote system type.

- pathname.c code fixed for single character filenames. Eg. 'dir t' now works.

- bbs more prompt works with help, areas, and motd and register text info
  files.

- ax25 recovery timer fixed (from n5knx).

- alt-f11 works as fkey (fix from n5knx).

- ftp mput fixed. (from kc2ct).

- forward bid protected against long bids. Error return code on
  some file opens checked. From Jim Dugal, N5KNX.

- bug fix in echo server.

- finished SAM callbook support. Not in regular distribution executable.
  Define SAMCALLB in config.h  Also fixed a bug for Club call license class.



1.10 (940228)

- JNOS now has a status display. This shows on the first line:
  time, heap and core free memory, number of connections to the
  different servers. Then a list of active sessions, where sessions with
  data waiting are blinking.

  The 2nd line shows the users connected to the bbs. A status symbol
  in front means the following:

  none - user is idle
     * - user is a bbs
     @ - user is in sysop mode
     ! - user has gatewayed out
     # - user is reading or sending mail
     = - user is transfering data (up/download)
     ^ - user is in convers or sysop-chat mode
     ? - use is in none of the above, but not idle...

  Eg: BBS: *w0rli johan #ka7ehk !n7ifj

  (lines 1 and 2 are the 'system' window)

  On the 3rd line, it shows data depending on the current session.
  Always displayed are the current session number and type.
  If the sessions are network connections, displayed are remote connection
  name,  tx-queue (bytes for tcp, packets for ax.25), state of the connection.
  It then shows the retry timer, with current time left, and initial value.

  In repeat, more or look sessions, the 3rd line show the command, filename
  or user/socket for the session.
  In the command session 3rd line shows the current directory.

  (the 3rd line is the 'session' window)

  
  The number of status lines displayed can be set with the '-u#'
  commands line option. '-u0' turns it off. Default is '-u3'

  NOTE: if tracing is enabled, this will 'bleed' through the status window.
  This is NOT a bug, but is inherent to the way tracing works in JNOS.
  (It would take a major rewrite to fix.) The status window will be
  rebuild about twice a second to overcome this.

- new commands line option to set colors of the different windows
    (Only if SPLITSCREEN is compiled in !)

    -wf+b : set the foreground and background color for the 'system' window
            (The top 2 lines of the display, if not disabled with -u option)
            default: white on magenta
    -xf+b : set the foreground and background color for the 'session' window
            (The line underneath the 'system' window, if not
             turned off with the -u option)
             default: white on blue
    -yf+b : set the foreground and background color for the 'main' window
            (The session output window)
            default: the system colors when jnos is started.
            (most often lightgray on black)
    -zf+b : set the foreground and background color for the 'split' window
            (The text input window in 'split screen' mode);
            default: white on green

    The 'system','session' and 'split' window always have the 'high intensity'
    bit set in the color attribute. This allows those windows to stand out
    on monochrome systems.

    f and b colors are numbers, and + is the + character:
    0=black 1=blue 2=green 3=cyan 4=red 5=magenta 6=brown 7=white/gray

    EG: for blue text on a red background for the 'main' window,
        nos -y1+4
    To have this, with black text on white background 'system' system window,
        nos -y1+4 -w0+7

- new 'look' command. You can now peek into a user on the bbs, or any non
  local socket. If looking at a bbs user, you can initiate a 'chat' with
  the user...

  'look <user|socket#>' will bring up a window that follows the user
  or socket.

  There are a few commands available:
  /? or /h - will show a sort help line
  /m <msg> - send a message to the user. User sees: '<sysop>: message text'
             (only if looking at a bbs user)
  /c       - initiate a 'chat' with a bbs user. The bbs will suspend, and
             you can talk with the user.
  /q or /b - if in 'chat' mode, finishes it, and dumps the user back in the bbs.
             if in 'look' mode, finishes looking at the user/socket.

   Note: if not in 'chat' mode, all non-command strings will be ignored.

   Looking at non-bbs socket might be helpful debugging things, or seeing
   what an ftp user or a smtp user is doing. Note that often you don't see
   what you expect: eg. ftp user sockets don't show the data transfered,
   including directory listing, because this occurs on a separate socket
   (ie. not seeing it is NOT a bug, for once...8-) )

- no limit (other then memory) to the number of sockets in the system.
  (command line option -s is not used anymore !)

- 'netrom interface' command changed a bit:
  new format 'netrom interface <iface> <quality> [<min-bc-quality>]'
  If min-bc-quality is not set, the 'netrom minquality' value is used.

  Only routes of the min-bc-quality and better will be broadcast in a
  nodes broadcast in this interface. If min-qual = 0, no nodes are broadcast
  (Ie. this is the non-verbose mode of versions < v1.10)
  Eg:  netrom interface ax0 224 180  -> nodes >= 180 are broadcast
       netrom interface ax0 224 0    -> only ourself is broadcast
       netrom interface ax0 224      -> nodes >= 'minquality' are broadcast

- Polled Kiss support (included in 1.10x11) now works. It has been tested
  with a KPC-3 with polled kiss eprom. The parameters needed in the tnc
  are CHECKSUM ON,MYDROP <tnc id>,POLLED ON, INTERFACE BPQ, then a RESET

- protection against opening device files like CON,AUX, etc (as 'advertized'
  in 1.08) now works. Ie. no more lockup when fingering 'con' etc...

- the trace session (F9) now doesn't take any extra sockets. Also, you can
  now issue commands in the trace session...(I have No Idea what that is good
  for :-) 8-) )

- new mailbox 'XR' command. Shows or sets 'reply-to' header status.
  Default is off. 'XR' shows state, 'XR on|off' sets the state.
  If turned on, and user has registered an email address, messages sent by
  this user will include a 'Reply-To: email-address' line. The state is
  'remembered' across logins/logouts.

- new mailbox 'PIng <host>' (from Doug Crompton, WA3DSP)
  Check if a host is alive. Returns RTT.

- new PI driver from Dave Perry, VE3IFB

- bug fix in 'ax25 bbscall' if used after non-ax25 interfaces were attached.

- bug fixes for local tcp links, and also for the heapsize memory value,
  for ftp login 'anonymous ok' message, and for filename creation effecting
  the ftp server, and mailbox d,u,w&z commands.

- fixed long time bug in scc driver allowing an already existing interface
  name to be used again.

- fix in smtp tick for low memory conditions. From Andrew Benham, G8FSL

- mailbox negiotiates a few telnet options. From Wayne Schellekens, VE4WTS.

- 'icmp timeexceed [<on|off>]. Default is on. If turned off, no ICMP
  'time exceeded'message will be sent when the ttl of an ip packet to be
  routed becomes 0. This causes the system to be 'invisible' for
  traceroutes, and might be useful for Internet gateways.

- 'mbox alias [<alias>] ["cmd"]' sets or shows alias commands for the
  mailbox. To use an alias, the user has to type the FULL alias. Instead
  of <alias>, <cmd> will be executed by the node. In the mailbox,
  a user can type 'ALIas' to get a list of sysop-defined aliases.

  Without arguments, it shows the current aliases.
  With only the <alias> argument is show this alias, if defined.
  With <cmd> is add, redefines or clears an alias.
  Eg. to add a new 'BBS' command to the node shell:
        mbox alias bbs "c port bbscall"
        mbox alias sysop "@"            -> allow 'sysop' command
  Or to override the CONV command (or add one if you don't have convers
  compiled in) and letting users use a remote convers system :
        mbox alias conv "t <conv.serv.ampr.org> 3600"
  to delete an alias
        mbox alias myalias ""
  or to change, simply redefine it
        mbox alias bbs "c newport newbbscall"

- mailbox 'operator' is now sends a message to the sysop identifying
  the user that initiates the 'sysop-chat'

- bug fixed from x16:
  - forward subject line
  - mailbox 'd,u,w,z' commands work correct with multiple paths

- 'callserver' and mailbox 'CAll' command are gone !
  This can be defined with an alias (saves code !):
  eg:  mbox alias call "telnet callserverhost callserverport"

- 'fkey' will now list all keys with their definition
    (S=Shift, C=Control, A=Alt. Eg. SPgup = Shift Page-Up)

- ftp server sends 'anonymous login ok' message to user names that will
  resolve into anonymous, unknown or unprotected (ie. password = *) logins.
  This was in 1.10x16, but undocumented.

- a new nntp server is included from OH2BNS. *** This is UNTESTED *** I've
  only made sure it compiles clean.! If it doesn't work, copy nntpsold.c to
  nntpserv.c, and rebuild !

  From OH2BNS:

  This file describes my modifications to the NNTP server code in JNOS.

  The server now supports all forms of all RFC977 commands except NEWGROUPS.
  The most significant change is that POST command now works. Changes to
  other commands are less significant but still vital to get the server
  to work with "third-party" newsreaders. Also supported are XHDR, XOVER,
  XINFO, XLZW and DEBUG of which XHDR and XOVER are new commands.
  The modifications were made under JNOS 1.10x12 and 1.10x15 and tested
  also under JNOS/Linux 1.09 alpha 2 and 3. The code works as is on all
  these versions.

  Here's a short list of the modifications I remember doing...

  - Fixed LIST

  - Implemented <MessageId> form of STAT, HEAD and BODY commands

  - Implemented POST

  - Posting to unexisting newsgroups now denied.
    If message has no valid newsgroups in "Newsgroups:"-header
    the message ends up in JUNK (= spool/news/forward).

  - Added console command 'nntp create' to create new newsgroups.
    Usage is 'nntp create <newsgroup> [y|n]' where 'y' means
    that you can post to this group.

  - Cleaned output of HELP

  - Implemented XHDR and XOVER.
    Command syntax is XHDR header [range|MessageId] and XOVER [range]
    These don't handle continuation headers correctly and XOVER isn't
    fully implemented (I don't even know what all the last field
    may contain).

  - The server now checks incoming message headers more strictly.
    All incoming articles should have from, subject and newsgroups.
    If the article is submitted with IHAVE it should have also
    message-id, path and date. Empty headers are removed. Xref,
    date-received, posted, posting-version, received and relay-version
    headers are removed. Date, path, message-id and lines headers
    are added if needed.

  - Message-id now checked against embedded whitespaces and >'s.

  - History file is locked during article transfers

  - Implemented nntp access feature. This can be toggled with
    'nntp access on|off'. File spool/news/access is read and
    connected host is given read, post or no access according to it.

    # Example file /spool/news/access
    #
    # Only first match is counts
    #
    # host:permissions:
    #
    # For some reason we don't want this host here
    notwanted.ampr.org::
    #
    # All other ampr.org hosts can read and post
    *.ampr.org:RP:
    #
    # Host foobar.com can only read
    foobar.com:R:
    #
    # All other hosts will be refused access

  - Small fixes here and there, can't remember all of them...

  As soon as I find enough time and enthusiasm I will look into adding
  handling of cancel messages and maybe some sort of nntp message
  logging.

  All this is not very rigorously tested since tcp/ip activity here is
  very low. The code seems to work just fine with newsreaders such as
  WinQVT/Net's newsreader and GNUS (under Gnu Emacs).

  73 de Tomi

  Tomi Manninen            tomi.manninen@hut.fi
  OH2BNS@OH2RBI.FIN.EU     oh2bns@oh2bns.ampr.org [44.139.8.46]

- added RIP-2 from Jeff White, N0POY
  (not in the standard distribution. Define RIP in config.h)

    RIP-2 for NOS

    Introduction

    This document covers the implementation of RIP-2 (RFC 1388) in
    NOS.  Specifically the WG7J version of NOS.  RIP-2 is an
    enhanced version of the RIP protocol (RFC 1058).  RIP and RIP-2
    are an interior gateway protocol (IGP).  RIP-2 for NOS was
    implemented by Jeff White, N0POY.

    FEATURES

    The NOS implementation implements all features of the normal RIP
    protocol (RFC 1058) and all features of the RIP-2 protocol (RFC
    1388) except multicasting (which NOS does not currently
    implement) and Route Tags (NOS does not implement any EGPs).
    Features include:

    Routing Domains

    Authentication

    Proxy routing

    Filtering of naughty nodes

    Optional refusal of a default route

    Enhanced logging and tracing

    Route subnet masks correctly maintained

    Optional refusal to accept older RIP version broadcasts

    Mixing of RIP-1 and RIP-2 support


    NOS RIP COMMANDS
    ----------------

    RIP ACCEPT <gateway>

    The RIP ACCEPT command resumes the acceptance of RIP broadcasts
    from a specific node given in the <GATEWAY> field.  Ex:  RIP
    ACCEPT 192.55.248.1  or   RIP ACCEPT skeggi.tcman.ampr.org

    RIP ADD <DEST> <INTERVAL> [<FLAGS>] [<RIPVER>] [AUTH <PASSWORD>]
    [RD <routing domain>]

    The RIP ADD command adds a node to the list of stations that are
    to be broadcast to with the local nodes routing table.  <DEST>
    is the destination node, usually a broadcast address.
    <INTERVAL> is the number of seconds between broadcasts.  <FLAGS>
    are the RIP flags used (see below for the flags), it is a
    hexadecimal number.  <RIPVER> is the version of the RIP
    broadcasts.  This may be a 1 or 2.  The AUTH identifier preceeds
    the authentication password to be included with the RIP
    broadcasts to this destination.  The RD identifier preceeds the
    routing domain number.  This number must range from 0 to 65535.
    The authentication fields and routing domain fields are only
    valid with RIP-2 broadcasts.  The password must be 16 characters
    or less.  Printable ASCII characters are recommended, but not
    required.

    RIP FLAGS

    0x01    Do split horizon processing

    0x02    Include ourselves in the routing broadcast

    0x04    Broadcast RIP packets (default type)

    0x08    Multicast RIP packets (not implemented) (RIP-2)

    0x10    Poisoned Reverse on

    0x20    Authentication data to be included in broadcast (RIP-2)

    Recommend flags are Split Horizon, and Poisoned Reverse or 0x11.
     Authentication and routing domain data entered here only
    applies to the outgoing RIP broadcasts.  See RIP AUTHADD and RIP
    AUTHDROP for entering acceptable passwords and routing domains.

    Example:    RIP ADD SKEGGI.TCMAN.AMPR.ORG 30 0x31 2 AUTH frodo RD
    2

            RIP ADD BIGGUS.TCMAN.AMPR.ORG 300 0x11 1

    RIP PROXY <SRC> <DEST> <INTERVAL> [<FLAGS>] [AUTH <PASSWORD>]
    [RD <ROUTING DOMAIN>]

    The RIP PROXY command adds a node to the list of stations that
    are to be broadcast to with the local nodes routing table.
    <SRC> is the node that the broadcast will "point" to.  <DEST> is
    the destination node, usually a broadcast address.  <INTERVAL>
    is the number of seconds between broadcasts.  <FLAGS> are the
    RIP flags used (see below for the flags), it is a hexadecimal
    number.  The AUTH identifier preceeds the authentication
    password to be included with the RIP broadcasts to this
    destination.  The RD identifier preceeds the routing domain
    number.  This number must range from 0 to 65535.  The
    authentication fields and routing domain fields are only valid
    with RIP-2 broadcasts.  The password must be 16 characters or
    less.  Printable ASCII characters are recommended, but not
    required.

    RIP FLAGS

    0x01    Do split horizon processing

    0x02    Include ourselves in the routing broadcast

    0x04    Broadcast RIP packets (default type)

    0x08    Multicast RIP packets (not implemented) (RIP-2)

    0x10    Poisoned Reverse on

    0x20    Authentication data to be included in broadcast (RIP-2)

    Recommend flags are Split Horizon, and Poisoned Reverse or 0x11.
     Authentication and routing domain data entered here only
    applies to the outgoing RIP broadcasts.  See RIP AUTHADD and RIP
    AUTHDROP for entering acceptable passwords and routing domains.

    Proxy RIP is tricky, complex and not needed for normal use.  Do
    NOT use proxy rip unless you understand what you are doing.
    Proxy RIP's primary use would be to advertise routes to another
    machine that is aquiring routing information via another routing
    protocol.  See RFC 1388 for further details.

    RIP DROP <dest> [<DOMAIN>]

    RIP DROP removes a routing broadcast entry.  If a RIP-2
    broadcast was entered, the correct routing domain needs to be
    entered, since it is possible to broadcast multiple routing
    domains to the same address.

    Example:  RIP DROP SKEGGI.TCMAN.AMPR.ORG 2

    RIP AUTHADD <interface> <routing domain> [<password>]

    RIP AUTHADD adds an acceptable routing domain and optionally a
    password to a specific interface.

    Example:    RIP AUTHADD ax0 2 frodo

            RIP AUTHADD en0 3

    RIP AUTHDROP <interface> <routing domain>

    RIP AUTHDROP removes an acceptable routing domain (and password
    if any) from a specific interface.

    Example:    RIP AUTHDROP ax0 2

    RIP REJECT <version>

    RIP REJECT is used to ignore older RIP broadcasts, as they may
    cause undesirable routing table alterations.  The version number
    is the version number and below that are ignored.  RIP version 0
    (XNS RIP) is always ignored.  The default is 0.  To ignore RIP-1
    broadcasts:  RIP REJECT 1 would do the job.

    RIP FILTER <ON|OFF>

    RIP FILTER will cause advertisements to the default route
    (0.0.0.0) to be tossed and ignored.  By default this is off.
    This can serve as a LID filter.  Default routes should NOT be
    advertised, unless there is a specific reason (ie this machine
    is a gateway to the rest of the Internet).

    RIP MERGE <ON|OFF>

    RIP MERGE will cause overlapping routing entries to be merged
    into one routing entry.  For example N0BEL.TCMAN.AMPR.ORG is a
    route to 192.133.30.0/28, and 192.133.30.16/28, with merging on
    this would become a single entry of 192.133.30.0/27.

    RIP REFUSE <gateway>

    RIP REFUSE will reject all RIP broadcasts from the GATEWAY
    station.  RIP ACCEPT is the opposite.  By default all stations
    are accepted.

    RIP REQUEST <GATEWAY>

    RIP REQUEST asks the gateway station to send a routing table
    now, rather than waiting for periodic updates.

    RIP STATUS

    RIP STATUS will display various statistics for RIP-1 and RIP-2,
    RIP broadcasts, RIP refusals, and acceptable Interface, Domain
    and Password combinations.  It also displays the refusing
    version level.  The DEFAULT interface is for every interface.
    Thus unless removed, and RIP-2 broadcast with a domain of 0 does
    not require a password and will be accepted.

    RIP TRACE <level> [<FILE>]

    RIP TRACE will begin tracing RIP operations.  The higher the
    level, the more detailed the logging.  Level 9 is the useful
    maximum, with level 0 (the default) being no logging.  If a file
    is specified, logging will go to that file, else logging appears
    on the console.

    RIP TTL <time-To-LIVE>

    RIP TTL sets the time-to-live before RIP entries expire from the
    routing tables.  The default should work for almost all cases.







1.10x16 (930208)

- ftpuser permission added NO_LINKEDTO is 262144. If set, this disables
  the use of the '*** LINKED TO'. This solves a security hole. It should
  probably be added to the 'univperm' entry in your ftpuser file, and
  any other appropriate entries.

- mailbox convers access is now with 'CONVers' command. 'CONV' gets the
  user to channel 0, and 'CONV n' to channel n.

- starting tcp servers doesn't create a new process anymore (ie. they don't
  show up in the 'ps' display anymore !) This is now handled in the network
  process. From KA9Q.

- 'mem minalloc' sets minimum number of bytes to allocate per malloc() call.
  Setting this to a sensable value like 32 or 64 might prevent too much
  memory fragmentation for the realloc scheme to work effectively.
  Default = 0, ie no minumum allocation size;

- forwarding speed is fixed. It now takes a few seconds to scan through
  300+ messages to check on forwarding, instead of several minutes...

- added command line -e and -t options for autoexec.nos debugging.
  -e pauses after lines with errors. -t asks if you want to execute a line
  before it is processed. 'y' executes, anything else skips the line.

- all *.lck in the /spool/mail directory now get deleted at startup. This
  can be turned off with the '-l' command line option.

- a new file '/spool/names.dat' is read when mailbox messages are sent.
  If the file exists, and if the user's login name (most often the call)
  is found, the user's full name is used in the 'From:' line of the message
  (modified from code by Pierpaolo IW5DHE (pernici@mammolo.cnuce.cnr.it) )

  EG. in names.dat 'wg7j Johan. K. Reinalda', then a message sent by wg7j
  in the mailbox will show :
  From: Johan. K. Reinalda <wg7j@hostname>

- config.h gives the option for end forwarding with Ctrl-Z instead of /EX
  This has caused a problem with forwarding by some European systems.

- in the mailbox, if an email address has been given during registration,
  messages sent will include a 'Reply-To: ' header with this address.

- mailbox registration (if compiled in) can be disable with
  'mbox register off'. It defaults to on.

- ALL AX.25 parameters are now configurable per interface. The 'ax25 xxx'
  command sets the default values, and the 'ifconfig <iface> ax25 xxx' command
  sets or shows the interface specific values. (Note that some commands,
  eg. 'ifconfig iface paclen' have changed format ! These are marked with *)
  'ifconfig <iface> ax25' shows all values. The new commands are:
  ifconfig <iface> ax25 bbscall *
                        bctext *
                        blimit
                        cdigi *
                        irtt *
                        maxframe
                        maxwait -> new, sets max retry time-out value in ms.
                        paclen *
                        pthresh
                        retry
                        timertype
                        t3
                        t4
                        version
                        window

  NOTE: as a result of this 'iconfig' NO LONGER takes multiple subcommands
  on one line. They have to be broken up now !
  eg. 'ifconfig ln0 netmask ffffff00 broadcast 255.255.255.255' is invalid,
  should be 'ifc ln0 net ffffff00' and 'ifc ln0 broad 255.255.255.255' !

  NOTE2:
  If you want to change the system default ax.25 parameters, you now need
  to do so BEFORE attaching interfaces! (Eg. ax25 irtt 2500) After attaching,
  you should use the 'ifconfig <iface> ax25' command to change it per
  interface.


- Most TCP parameters are now configurable per interface. The 'tcp xxx'
  command sets the default values, and the 'ifconfig <iface> tcp xxx' command
  sets or shows the interface specific values. The new commands are:
  ifconfig <iface> tcp blimit
                       irtt
                       maxwait
                       mss
                       retries
                       syndata
                       timertype
                       window

  Outgoing TCP connections get the values for the interface the initial
  sync packet ('connect request') will be routed out on. Incoming TCP
  connections get the values for the interface the initial request comes
  in on.

  NOTE: as a result of this 'iconfig' NO LONGER takes multiple subcommands
  on one line. They have to be broken up now !
  eg. 'ifconfig ln0 netmask ffffff00 broadcast 255.255.255.255' is invalid,
  should be 'ifc ln0 net ffffff00' and 'ifc ln0 broad 255.255.255.255' !

  NOTE2:
  If you want to change the system default tcp parameters, you now need
  to do so BEFORE attaching interfaces! (Eg. tcp window 512) After attaching,
  you should use the 'ifconfig <iface> tcp' command to change it per
  interface.


- added core reallocation code, modified from TNOS (KO4KS)
  If possible, memory is given back to the DOS core.
 'mem stat' will show the number of successful reallocs.

- 'tcp maxwait' and 'ax25 maxwait' added. Sets a limit (in ms) to the
  retry timeout values. Both default to 0 ms (no limit).

- outgoing tcp connections to addresses without an existing route result
  in an error no. 19

- 'ftpusers' can now have multi drives, paths and permission sets.
  A path can be compound, like dos path, can contains multiple drives, and
  should be followed by the permissions for that path.
  Mailbox logins get permission from the first path listed in 'ftpusers'
  (ie. backwards compatible.)
  Fields in ftpusers can now be separated by any number and combination
  of tabs and spaces.
  NOTE: PPP users should at this NOT have multiple path entries ! (It messes up
  the ip-address field!)
  Eg:
  user  password  /public 12345 /temp;d:/help   12345

- fixed bug in pathname.c that could cause memory to be overwritten in
  instances where filenames contained '\' chars.

- fixed bug in pop 2/3 code where new mail wasn't written unless
  mailbox file existed.

- bug fix for empty names in smtp <usr@host> addresses.
 (caused loop in smtp server). From Matthias Wermann, DL1BJL.

- Smtp BID checking can be turned off with 'smtp bidcheck off'. Default is on.

- convers users get a 'message of the day' from the file "/spool/convmotd.txt"
  if it exists. (Can be renamed with the -fnos.cfg option)

- many mods from n5knx

- smtp kick now spawns a process (speeds up response)

- mbox forward scripts can pause a number of seconds: '&5' pauses 5 seconds



1.10x15 (931204)

- if mailbox files have an old or nonexisting indexfile,
  new index files are now automatically updated at program startup
  and after returning from shell. (From an idea by Jack, kf5mg)

  ==> You can now use ANY MAILER you want !

- 'index *' indexes all mailbox files, irregardless.


1.10x14 (931202)

- bug fix in expire code that caused mail from non-nos systems
  to be garbled after expire.

- bug in forward code with 'to%atbbs@host' style messages fixed.

- ax.25 irtt (initial round trip time) can be set per interface
  with 'ifconfig <iface> axirtt nnnn', where nnnn is the irtt in ms.
  This is useful when you have low and high speed interfaces.

- remote command fixed.

- convers personal data is now limited to 32 characters.

- added new PI driver with support for PI2 (from ve3ifb)


1.10x13 (931031)

- fixed alarm() bug in mailbox2.c

- fixed '.' access problem in ftpserv.c

- fixed printf's -> tprintf's in bpq.c and bpqcmd.c

- fixed tprintf with no arguments in pppipcp.c

- deleted debug statement in nr3.c

- convers overload checking now done even if no links are initiated



1.10x12 (931022)

- fixed bug in forward code that garbled addresses.

- also fixed 'mbox kick' bug and open index file in main.c (from kf5mg)



1.10x11 (931011)

- 'taillog' command added.

- several memory leaks in use of index code fixed.
  (in initnotes(), mbx_reply(), closenotes(), and more...)

-
  *** DUE to a lack of hardware, this has not been tested, yet ***

  Polled KISS (ala G8BPQ) is now supported. When attaching the serial port
  use the mode 'pkiss' instead of 'ax25'. This becomes port 0. Then for
  all other tnc's on the same serial port, add an additional 'attach
  kiss' command. Eg. to attach 3 polled kiss tnc's(#0,2,11) at 9600bd:

    attach asy 3f8 4 pkiss p0 1024 256 9600
    attach kiss p0 2 p2
    attach kiss p0 11 p11

 The poll-intervall is calculated according to the asy interface mtu and
 the speed, with some overhead. This is the frequency in wich the list of
 tnc's is polled. Thus the frequency for each tnc is the interval * number-
 of-tnc's...

    interval = 0.15 + ((10 * mtu) / speed ) seconds
    poll-time = interval * #-of-tnc's

 (Eg. for 9600bd with mtu=256 , interval = 0.416 sec; rounded up to the
  nearest system clock tick gives 440ms; thus poll-time for each tnc is
  about 1.5 seconds)

  From G8BPQ's 'PORTS.DOC' document, I conclude that polled mode and checksum
  addition always go together (unlike the Kantronics tnc's that can switch
  things on and off independently...) This is how JNOS and JNOS40 polled kiss
  is implemented.

  From G8BPQ's 'KISSROMS.DOC' is some information on how to connect the tncs:
-------------- insert ----------------
  The system uses polling to prevent contention on the link. Each TNC must
  run the BPQKISS program, and each must have a different 'address' byte
  patched in at location 20hex...
  In theory you can have up to 16, but in practice the maximum will depend
  on the power of the PC and the speed of the radio ports.
  
  Wiring.

          PC              TNC 1           TNC 2

   GROUND  7 ---------------7----------------7-----------  etc

       TXD 2 ---------------2----------------2-----------  etc

       RXD 3 --------------------------------------------  etc
                             |               |
                             -               -
                             ^               ^
                             |               |
                             3               3

    -
    ^   is a diode (1N914 or similar)


    With some TNCs and serial cards, a pulldown resistor may be required
    from pin 3 on the PC (10k to -12v is suggested). Thanks to G3ZFJ for this
    information.
----------------end of insert--------------

   For more information see the G8BPQ documentation.


- 'convers tdisc' added. Set maximum inactivity time (in seconds)
  for users.

- 'ftptdisc' and 'mbox tdisc' commands were rewritten, and are no longer
  options in the config.h file.



1.10x10 (930927)

- smtp server has configurable timeout. 'smtp tdisc' sets this. Server will
  close if client doesn't send any data for specified time (in seconds).

- indexing is changed; now variable lenght records are used, to keep complete
  header info. The create utility is now MAIL2IND.EXE

- log files are changed: they are now named 'ddmmmyy' and are kept in
  the /logs directory by default (Unless changed with nos.cfg option).
  Ie. each day automatically gets a new log !
  Logging can be turned on/off with 'log on|off' (ie this does not set
  the log filename anymore !)

- forwarding when bbs already connected is fixed.

- mailbox 'KA' command added to 'Kill All' messages

- 'index <mailbox>' command added to rebuild the index file for a mailbox
  text file.

- convers '/w' command now can show info for one user with '/who <user>'
 (as long as <user> doesn't start with 'q', since this is a quick /who')

- many more config.h switches added.

- 'netrom call' buffer problem fixed.

- 'message.ftp' file now also works when ftp users login to root dir.

- mailbox list works with display > 80 columns

- little bug in expire fixed.

- extended telnet option negotiation might work now...
  You should define TN_KK6JQ in telnet.h to activate it.

- G8BPQ driver include; #define BPQ in config.h . Here is the read.me :
4-12-93

here is an addition to nos that allows it to attach interfaces directly
to bpqcode without having to use the packet driver interface and
nodedrv4.com TSR. nos will talk to bpqcode using the bpq_host interrupt
code in version 4.00 and up of bpqcode. this eliminates the extra
memory and processing time used by nodedrv4.com to send packets between
nos and bpqcode.

this code was developed with nos v 911229 wg7j v1.07b. it should be
easily ported to other versions. it consists of three files: bpq.c,
bpq.h, and nos2bpq.doc (this file). there are several changes to
other files in nos that are needed. these changes are described
below.

usual disclamer:
the code described herein is copyright 1993 by FazCom. it may be freely
used and distributed for non-commerical amateur radio use only, provided
this notice remains, all other rights reserved. FazCom is not responsible
for any liability, directly or indirectly, resulting from the use of this
code, nor for its suitability to any purpose, stated or otherwise.

now that that's over with; use and enjoy.
... faz ...

paul h launspach n5faz
7913 edgemere blvd
el paso, tx 79925-3836
packet: n5faz @ w5es.#wtx.tx.usa
amprnet: n5faz@n5faz.ampr.org 44.77.0.70
internet: none
cis: 71046,0076


*** Commands for using the bpq host to nos interface:

attach bpq init <vec> <stream>
Used to initilize the bpqhost interface.
        vec     interrupt vector in hex of the bpq_host code normally 0x7f.
                must be the same as defined in bpqcfg.txt.
        stream  bpq_host stream number used by nos. must be between
                1 and 64 and not used by any other program. nos uses
                only one stream for all interfaces attached to bpq_host.

attach bpq <port> <label> [mtu [callsign]]
Used to attach an interface to the bpq node.
        port    bpq radio port number as defined in bpqcfg.txt
        label   name of this interface.
        mtu     paclen for this interface. if not given set to
                AX25 Paclen.
        callsign call used for this interface. if not given set to
                AX25 Mycall.

bpqstat

display the status of the bpq_host to nos code. values displayed are:
bpq_host interrupt vector, bpq_host stream number, number of bpq_host
ports in use, frames sent, frames recieved, transmit calls, recieve
calls, and control calls.



- SCC driver has support for Baycom modem. From Rene Stange, dg0ft
  Here is some info:

NOS-Version 920411.DG0FT.920508  for BayCom USCC - Slotcard.

With this version of PE1CHL`s SCC-Driver for KA9Q-NOS it is possible to use
the BayCom-USCC-Slotcard.
Special changes to the sources for the clocks were adapted, NRZ-mode for the DF9IC-
Modem was made possible and the CTS-external status interrupt was switched
off, because the feedback of /CTS to the Interrupt output might crash
the system.

The ATTACH-command for the USCC is to be used as following:

attach scc 2 init 300 2 4 5 -4 0 7 p4915200 10
           ^      ^   ^ ^ ^  ^ ^ ^ ^        ^
           1)     2)  3)4)5) 6)7)8)9)       10)

1) number of SCC-controllers 8530
2) address basis of 1st controller
3) offset in address between the SCC-Chips
4) offset from basis address to control-port of channel A
5) offset from basis address to control-port of channel B
6) offset between control-port to data port of channel
7) always 0, because no INTACK
8) used Interrupt
9) Clock 4915200 Hz
10 always 10, marks BayCom USCC

Because of the used port-address scheme only one slotcard can be used.
Personalize parameters 2) and 8) to your system

When you have given above command you have to initialize the SCC-ports to
be used as following:

attach scc 0 ax25 uscc0 256 1200  1024 mycall
attach scc 1 ax25 uscc1 256 1200  1024 mycall
attach scc 2 ax25 uscc2 256 d9600 1024 mycall
attach scc 3 ax25 uscc3 256 ext   1024 mycall
           1)      2)   3)   4)   5)    6)

1) number of USCC-port
2) name of this port
3) maximum packet length (MTU)
4) kind of modem and baudrate
5) size of buffer
6) optional call for this channel

Definition of paramter 4):

1200   AFSK-modem using internal SCC-clock and 1200 Bd
       (e.g. TCM3105-modem), no fullduplex operation

d9600  modem with external TX-clock, internal RX-clock 9600 Bd,
       fullduplex operation possible.

ext    DF9IC-modem, NRZ-mode, external clock

Parameter 2-6 have to be personalized as required

I just want to state, that this version was not completely tested,
especially modems with external clock (DF9IC/G3RUH) were not tested
or only in loopback-mode.

The parameter-setting sometimes is a little bit unusual, because
some of the data have to be set up in  fractions of 1/18.2s.
The PC-Timer chip is the reason for that. A recalculation might have
been possible, but I didn`t enjoyed to do that.

73`s from Rene, Strausberg (GERMANY).
DG0FT  at DB0KG




1.10x9 (930728)

- dos environment variables can be set to allow a login without using
  the ftpusers file. (This is very handy when this file gets corrupted!)
  NOSSYSOP sets username, NOSPASSWD the password, and optional NOSPATH the
  path, and optional NOSPRIVS the priveledges. If NOSPATH is not set, it will
  be the root dir on the current drive. If NOSPRIVS is not set it will be
  FTP_READ + FTP_WRITE + FTP_CREATE + AX25_CMD + NETROM_CMD + TELNET_CMD +
  SYSOP_CMD + IS_EXPERT . NOSPRIVS accepts both decimal and hexadecimal if
  "0x" preceeds the value.

  Eg: before starting JNOS: 'set NOSSYSOP=johan' and 'set NOSPASSWD=password'

- mailbox closenotes() is less a cpu-hogg ;-)

- convers servers is a little more memory efficient by not allocating input
  buffers for users on other hosts (saves 256 bytes per user)

- telnet extended options and dos environment TERM deleted because of
  reported problems. (If you want it anyhow, define TN_KK6JQ in telnet.h)

- expire stack increased again to solve crashes

- little bug fix in arp.c that caused replies with wrong ip address sometimes.
  by Mike Gallaher, wa3hee

- 'domain addserver' has optional timeout value in seconds for this server.
  if not set, timeout defaults to 3 * tcp irtt.
  Eg: 'domain addserver wg7j.ece.orst.edu 30'

- cdigi digipeating now only works if BOTH interfaces involved have a cdigi
  callsign set.

- bug that caused 'you have new mail' to be send to bbs's fixed.

- attempt to handle convers servers with hostname or usernames > 10 .

- mailbox 'K' or 'KU' command nowm kills or unkills current message if no
  message list is given.

- expire process is prevented against mulltiple invocations.

- G8BPQ logging was logging destination node, instead of source; now fixed.



1.10x8 (930721)

- a version of BM.EXE with support for Mail Index Files is now included
  (initial version is 4.0x1. Still needs more work, but is functional)
  See the BM.EXE and BM4.ZIP files.

- if MAILBOX is undefined in config.h, but ALLSERV or TTYCALL is defined,
  incoming connections to telnet-port, or netrom/ax25 calls go to the
  tty-link listener...

- ax.25 convers and tty call connection now go directly to their server,
  and bypass the mailbox completely...

- many process stack sizes have been decreased to better utilize memory

- ftp server has additional information possibilities:
  if a file 'message.ftp' exists in the initial directory (eg. /public, or
  whatever), it will be send right after the login.
  When CD-ing, if a file 'desc.ftp' exists in the new directory, the
  server will send the text in this file to the user...
  From Giancarlo, IW5CZT.

- mailbox problem with smtp_send process solved; should fix a few
  unexpected disconnects here and there. From Mark, ve3dte

- 'status' command now shows if system is 'loosing time' through missed
  hardware tick interrupts, or through DV or OS/2 DOS emulation problems.
  (If it doesn't show it, it didn't miss any :-)

- forwarding finally works correctly again with new index code.

- mailbox 'List' works again with indexfiles and userlog code.

- 'smtp list' fixed under DV ad OS/2 (with correct date/time)

- digipeat bug with crossband fixed

- included extended telnet option negotiations, and a DOS enviroment
  variable "TERM" can be set to the terminal type. From kk6jq
  ( This was Deleted in 1.10x9 because of reported problems; if you
    want it anyhow, define TN_KK6JQ in telnet.h )

- 'ip heard' now works on netrom by setting 'ip hport netrom on'

- memory leak in convers.c '/p' processing fixed (from Mark, ve3dte)

- ax.25 and netrom resets will send a disconnect to be polite.

- current msg pointer in mailbox fixed.

- smtp 'Apparently-To:' fixed.

- both jnos and mail2idx use 'Apparently-To' header if 'To:' doesn't exist.

- mailbox 'SF' works again.



1.10x7 (930708)

- little fix in new private mail notification.

- fixed dir problem introduced in 1.10x6 .

- convers maxq code changed; you can now set limits for users and hosts with
  'convers umaxq' and 'convers hmaxq' . If set to 0, there is no limit,
  otherwise connections will be reset if there is more then the maxq value
  data outstanding on the connection. This should now also reset connections,
  instead of the previous graceful close...



1.10x6 (930707)

- I've tested pop2/3 and they should now really be working with
  the index files. :-)

- mail2idx bugfix in -d option.

- additional permission bit in ftpusers: NO_LISTS = 131072  (0x10000)
  if set, user can not list mailbox IH, IP, P, N, and NR commands.

- fixed some '#define' areas



1.10x5 (930630)

- fixed 'MM' and 'SR' mailbox commands.



1.10x4 (930629)

- pop2 and pop3 should now be compatible with the mail index files.
  However: I do not use either pop2 or pop3 and thus the code has NOT
  been tested. I would appreciate feedback.

- Monitor Trace mode added. Gives a shorter, easier trace display.
  'trace <iface> 3xy' sets this, where x=1 sets input, y=1 sets output
  From Brandon Allbery, KF8NH

- bugfix in MAIL2IDX.EXE. Doesn't write a faulty index file anymore if
  mailfile is emty or contains data but no messages.

- new icmp source quence behaviour:
  if 'icmp quence off' is set, when a ip packet is received, and
  mem < threshold, it will be dropped (ie. no quench or anything.)
  This might help systems with ethernet controllers or other higher
  speed interfaces...
  (If 'icmp quench on', the default, behaviour is as before)

  From a message Barry McLarnon, ve3jf, forwarded to me :
  "From: heisen@numerik.uni-duesseldorf.de (Henner Eisen)
  Newsgroups: comp.protocols.tcp-ip.ibmpc
  Subject: Re: KA9Q as Gateway... how?
  Date: 8 Mar 1993 10:04:50 GMT
  ...Whenever KA9Q receives new packets faster than it can process them
  the internal buffer is likely to overflow. The way KA9Q deals with that
  situation is as follows:
  There is a high water mark for the dynamically allocatable storage (its value
  may be changed in autoexec.net with the "memory thresh #" command ). Whenever
  that hig water mark is exceeded KA9Q will submit an ICMP Source Quench to the
  originator of every additionally received packet. Unfortunately, this requires
  additional system resources (especially more storage). The result is that,
  before the originator will have reacted upon the ICMP Source Quench, KA9Q's
  dynamic storage will be exhausted. (Several TCP/IP implementations even won't
  react upon ICMP Source Quenches at all). I don't know what really happens
  after that, probably this causes a deadlock somewhere else and KA9Q hangs...

  ...Now, whenever the high water mark is exceeded and a new
  packet arrives that packet is dropped immediately and no further storage is
  needed. The higher protocoll layers will keep track of retransmitting the
  dropped packets and a well-implemented TCP will even automatically adjust to
  the maximum possible transmission speed..."

- 'ax25 ttycall' sets tty-link call for direct keyboard access. Remember to
  make sure you have both 'attended on' and 'mbox attend on'.
  From Brandon Allbery, KF8NH

- AX.25 ports can have a 'cross-band digipeater only' callsign. If this call
  is set, digipeating works independent of the 'ax25 digiport' setting !
  (Connections to this call do NOT work)
  'ifconfig <iface> cdigi <call>' sets this.

- open file problem in List fixed.

- AX.25 RNR frame bugfix in lapb.c, from Mark, ve3dte

- value given to g8bpq nodes for rtt corrected, from Mark, ve3dte

- more system information via finger server (modified from N7IPB). Valid
  are now:  iheard,mstat,info,ax25,netrom,tcpview,memstat,socket,asystat,
  ifconfig and rip

- from N7IPB:

  * Interface names are now case insensitive

  * Support for F11 and F12 (control,shift,alt) added

  * Delay added on startup before enabling 'more'.

  * domain ttl  - Select a default ttl value to be applied to server
                       responses that contain none.

  * domain dump - Clears the domain cache

  * domain update - Allows you to control whether or not your domain.txt file
                    is updated with server responses

  * domain subnet - Works in conjunction with 'domain translate' to allow or
                    disallow translation of any address ending in 0 or 255. 
                    On systems that have a lot of subnets this can result in
                    a considerable speedup when displaying routes with domain
                    translate on.

  * ipmerge now correctly merges routes of the form 'x.x.x.x ax0 x.x.x.x'
    where the two addresses are identical and a previous route exists for
    this address. This fixes a nasty routing problem on subnets that have
    multiple routers.

- mail system messages are now more verbose.

- bug with mailbox 'KM' command fixed.

- mailfor.c now also uses the mail index files.

- ax25 beacon text can now be set per interface with
  'ifconfig <iface> beacon [bctext]'
  If you set 'ax25 bctext' before interfaces are attached, all ax.25
  interfaces will have this bctext as default.
  If you set 'ax25 bctext' after one or more ax.25 interfaces have been
  attached, only those with no bctext will get the new bctext.
  (Remember, you still have to enable ID-ing with 'ax25 bcport' !)



1.10x3 (930622)


- mailbox works with index files. Much faster ! Before you run this you
 should build index files by running MAIL2IDX.EXE. See the section above
 'MAIL INDEX FILES' for more. If JNOS doesn't find any index files in the
 mail directory at startup, it will warn you to run MAIL2IDX.EXE

- mailbox 'LS subject' lists messages in current mail area with 'subject'
  in the subject line.

- 'ax25 bbscall' now changes or sets all interfaces where bbscall is not set
  to the bbscall. 'ax25 mycall' will not override bbscall anymore, once it has
  been set. You should
  1 - set 'ax25 mycall xyz-#'
  2 - 'attach' all interfaces
  3 - set 'ax25 bbscall xyz-#' or 'iface <name> bbscall xyz-#'

- smtp server bid memory leak fixed (N5KNX).

- smtp server Ctrl-Z in lines now handled.

- pop2 and pop3 servers are now case insensitive for commands.



1.10x2 (not released)


- mods to pop3 server to fix long line reboots. From Ross Patterson, N4YYH



1.10x1 (930609)


- mailbox problem with remembering last read if a Ramdrive is used
  is fixed. From N5KNX

- mailbox fixed to allow for ^Z at end of line when sending mail.
  Allows FBB to forward better. From N5KNX .

- obscure bug in ax.25 bctext fixed, from Brandon Allbery, KF8NH

- pop3serv.c fixed for files > 32k

- G8BPQ NET/ROM Extension handshaking added to Connreq/Connack packets.
  G8BPQ nodes are now indicated in the netrom route displays.
  JNOS will reply to G8BPQ nodes in BPQ style if "netrom g8bpq" is on.

- 'convers maxq' should now work.

- drastic clean-up of prototyping in source modules. Most all warnings
  are gone (apart from a few in the gracilis drivers). Also fixed some .asm
  modules for 80186 and above.

- commented out net/rom raw sockets; saves 0.5k

- session screens when swapped out (ie. not the active session)
  can now be saved in 4 different modes. This can save conventional memory.
  Modes are:
  0 - in EMS (if available), this is now the default mode.
  1 - in XMS (if available and no EMS) (Note: NOT! functional yet)
  2 - in conventional memory, the previous method. Used if EMS/XMS doesn't exist.
  3 - in a temporary file. (Use only if you have a ramdisk for tmpfiles, or
      a fast harddisk with cache...)

  You can force options 1, 2 and 3 from the command line starting NOS with the
  -m# option, where # is 1, 2 or 3 ...

  The 'session' command display show the swap mode in use under the 'Sw'
  heading. E for EMS, X for XMS, M for Memory and F for File.

  You can show the current swap mode with 'session swap' or set it with
  'session swap E|X|M|F' for Ems, Xms, Memory, or File.

- user registration code from K5MG added (with mods)
  Mailbox "register" command registers users. The file /spool/mreg.txt will
  be shown to users attempting this...

- rewriting of the files-naming code (for -f option), saves 1.5k

- deleted POP option from config.h; it's functionality is duplicated
  in POP2XXXX

- PPP option negotiation bug fixed, from D. Myers.

- 'mbox jumpstart' is gone.
  You can now define a bbs call with 'ax25 bbscall'. Default is ax25 mycall
  value. The bbscall will be automatically set on appropriate interfaces
  and depending on whether the interface drivers call setencap() (not all do).
  Or you can set it with 'iface <iface> bbscall <bbscall>'

  Jumpstart now works as follows:
  NO connections to the interface hwaddress get jumpstarted.
  ALL connections to the bbscall for each interface, or ax25 alias
  get jumpstarted.

  This should solve all problems with wrong jumpstarts,
  as long as hwaddress is not equal to bbscall !


JNOS 1.09 (Never 'officially released')

- from Lars, sm6rpz:
  * 'mem efficient' command deleted, since it has been totally
  useless for "eons" :)

  * ax.25 dis-connected state transition memory overwrite problem fixed.

  * tcp_reset problem fixed.

  * iface detach routines clean out ax.25 routes.

  * makeroutes() in rspf.c bug fix.

- rewrite file now ignores additional spaces and tabs; from kd4cim

- kiss.c time-problem in interface-send fixed.

- "exit" command from the keyboard now asks if you want to do it.
  (if not from keyboard, this is skipped...)

- 'at' command is now a process, solves lots of problems...

- convers.c /p and memory problems fixed, from VE3DTE

- duplicate bid in smtpserv solved, from KD4CIM

- smtp looping 'hard' fix: if it occurs, message is dropped.
  (a '550' error code is sent, causing a 'hard-error')

- xspawn dropped from distribution because of many problems reported.


1.08df (930404)

From WA3DSP:
This source code is JNOS108D with most all prototype errors corrected.
Those not corrected are in some drivers - in particuliar the twin drivers.
Also other nagging errors have been corrected.
A compile should show NO errors unless you are using a module I was not
when I went over this.
Also - 
- DOS 6.0 support added in MAIN
- ASM's are 386 compliant
- Makefile has 386 compile option
- Makefile uses strictly autodepend - no .h dependecies required - works
  good for borland c 3.1 - This makefile should be included as an option
  for those using it!! It is much more reliable and less subject to problems.
- Ifdef's added on modules - some may still be missing - decreases compile 
  time significantly when that module is not defined 
- Some other minor fixes.


1.08d (930311)

- new tipmail.c from Doug, wa3dsp

- 'domain startdns' is gone. Domain Name Server can be turned on and off,
  with 'domain dns [on|off]'
  Also found a problem in getline.c where domain.txt is read...

- convers server has been optimized to send less multiple-packet responses.

- 'convers allow' is now replaced with 'convers filter'
  'convers filter mode [accept|refuse]' shows or sets the mode (default refuse)
  'convers filter [ipaddress|hostname]' add an ip address to the filter
  table.
  If filter mode is refuse, then convers links from hosts in the list will
  be refused. If filter mode is accept, then only links from hosts in the
  list will be accepted.


1.08c (930305)

- several system errors and permission infringements will now send
  a message to the user 'sysop'.
  This is controlled with 'error [on|off]'. Default is on.

- BBS R:-line sends message BID as well

- local fingers now work. Eg 'finger johan'

- several Turbo-C 2.0 compile problems fixed; from Jim Dugal, N5KNX

- Mailbox R/V/K commands allow message ranges... Eg: 'R 1-4', from N5KNX

- problems with smtp BID checking should be fixed...


1.08b (930224)

-smtp server bid problem fixed.

-finger server fixed


1.08 (930222)

- all commands that effect interface flags have new syntax.
  They now need ON or OFF to set the state of the flag.
  If no interface is given, all interfaces with the flag set will be shown.
  If interface is given, but no on|off, then the state of the flag will
  be shown.

  Eg:
  ax25 bcport
        will show ALL active ax.25 beacon interfaces
  mbox hideport 2m
        will show the state of the interface '2m'
  convers interface 2m on
        will turn on convers call access on interface '2m'
  ax25 digipeat 2m off
        will turn off digipeating on interface '2m'

  The command affected are:

  mbox ax25only [iface] [on|off]
  mbox useronly [iface] [on|off]
  mbox sysoponly [iface] [on|off]
  mbox bbsonly [iface] [on|off]
  mbox mport [iface] [on|off]
  mbox hport [iface] [on|off]
  convers interface [iface] [on|off]
  ax25 digipeat [iface] [on|off]
  ax25 bcport [iface] [on|off]
  ax25 hport [iface] [on|off]
  ip hport [iface] [on|off]
  arp poll [iface] [on|off]
  arp eaves [iface] [on|off]

  NOTE that ax.25 ports now default to ON for:
  beacon, mail-id, digipeat, ax-heard and ip-heard !!!

- the BID checking in the SMTP server (from 1.05) now works !
  if a 'Message-Id: ' line is received with a valid BID format
  (ie. 'BID#@Bbscall.bbs' format), then the BID will be cross checked
  with the ax.25 bid file ('history' file). If a duplicate, response will be
  "452 Duplicate BID in Message-Id line\n";

- 'repeat [interval in ms] command (from new ka9q, ported by wa3dsp)
  Starts a new session screen with the output of the command updated
  every interval ms. If you hit F10 it ends the session.
  Eg: repeat 1000 t s
  (repeat every second 'tcp status' command)

- buckbook support driver updated; again, this is NOT tested !.

- for all AX.25 ports, you can now indicate what kind (if any) of mailbox
  connections are allowed.

  mbox noax25 [<iface>] [on|off]
        shows or setss the 'no ax25 maibox connections.
        This prohibits mailbox connects, but still allows IP in VC mode.

  mbox bbsonly [<iface>] [on|off]
        shows or toggles 'bbs only' per port. The IS_BBS bit
        in /ftpusers has to be set in order to be able to login to the bbs

  mbox usersonly [<iface>] [on|off]
        shows or toggles the 'users only' flag. Any call with the IS_BBS
        flag NOT set can login to the bbs via this port

  mbox sysoponly [<iface>] [on|off]
        shows or toggles the 'sysop only' flag. Any
        call with sysop permissions can login to the bbs via this port.

  NOTE: this does NOT work for NET/ROM and TCP connections, since for those
  protocols there is no real concept of incoming port...

- TIP MAILBOX improvements from Doug Crompton, WA3DSP
  CD is now detected and influences the login, and XMODEM transfers can
  be done with TIP logins. Here is what Doug writes about it:

NEW commands  -

'start tip <interface> <terminal|modem> [timeout seconds]'
BBS added commands - 'dx <filename>' , 'ux <filename>'
Deleted command - 'mbox tiptimeout'

Tip code has been extensively modified. It now works with a terminal
(3 wire connect) or modem (CD)  Two tiers of timers, the first being
set on the 'start tip' command line and the second "grace" timer fixed
at 1 minute. CD loss is unconditionally detected. 

Tip timeout timers should not effect xmodem as long as they are not set
shorter than xmodem timeout - 120 seconds. Tip default is 180 seconds.
The 'mbox tiptimeout' command has been taken out - setting is in the
start tip command line.

Phone connects, and xmodem successful up/downloads are logged if logging
is turned on. xmodem BBS commands are only available with tip connects.
Only 128 byte xmodem packets are allowed at this time. This is the standard
original xmodem format that is supported on most all comm programs.

Note that most internal modems do not use a 16550. Therefore on heavily
loaded NOS systems it might be desireable to use an external modem with
a 16550 serial port. I have not run my system above 2400 baud using an
internal modem. Based on what I see on my system I would expect that
a 16550 interface would be a requirement for higher baud rates - I.E 9600.


- 'convers maxq' command sets or shows the maximum transmit data outstanding
  on convers links (permlink or other) before a hostlink is rudely reset.
  Default is 5kb (ie 5120 bytes)

- Bulletins with NO BID can be refused if 'mbox nobid off'
  off means refuse them, on means accept. Default is OFF, ie refuse !

- NOTE: the 'mbox haddress' now NEEDS THE CALLSIGN !!!
  eg:  mbox haddress WG7J.OR.USA.NA   !!
  The First part (ie WG7J) will be used to assign BID/MID's from our
  system, eg 1234_WG7J

- device files etc. can not be opened anymore; ie no more finger crashes
  to 'CON' 'AUX' etc...

- bug in 'route lookup' fixed

- Mbox forwarding now marks ALL messages that received the 'NO'
  reply as forwarded.

- Mbox forwarding now sends all mail in areas starting with 'nts'
  as traffic, ie. with 'ST'.

- a finger to 'links' will shows all convers links at the system.

- fixed 'ftp mput' command.

- 'convers maxwait' sets the maximum time to wait before trying to
  re-establish a link, after convers links have timed out.

- you can now undefine the mail commands (S,R,K,V etc) from the mailbox
  interface, do '#undef MAILCMDS' in config.h

- if the first chararcter of a function key definition is the '~' char,
  the following characters will be sent to the command session, and
  NOT the current session. Command sessions becomes the active one.
  Eg. fkey 63 "~ps\n"  allows you to do a ps from any session (output
  will go to command session, wich is made active immediately)

- small problem with non ampr.org. domain names in domain.c (resolve_a())
  fixed.

- there is no limit of 10 mbox/convers-call users anymore; now only limited
  by memory resources...

- mailbox gateway escape char defaults to ctrl-T, to accomodate tnc's (wich
  use the formerly used ctrl-X for line editing)

- mailbox disconnect when sending a message and it cannot create tempfiles

- message numbers are now in the range 1-99999 (in smtpserv.c)

- 'ax25 dest' is now same as 'ax25 hearddest'

- tip incoming sessions fixed, go to mailbox again.

- even when netrom is not active, you can still set an alias callsign
  for users to connect to.
  'ax25 alias' sets or displays it. Old 'netrom alias' modifies the same call!

- duplicate MID problem fixed in smtpserv.c, from KO4KS

- ftp server tells file size before transfer starts, from N1BEE

- 'mbox header off' also turns off 'mbox thirdparty' !

- xspawn shelling modified. Seems to fix most problems.
  Known to still lock up with some ethernet drivers.
  From Brian Lantz, KO4KS

- OS/2 multitasking now correctly recognized, from N1BEE

- added pop2serv.c and pop3serv.c from N1BEE's v0.85 release.

- small nr4 fix from N1BEE

- fix for pi driver, from Dave, ve3ifb

- stktrace added to buffer-overwrite in sockuser.c; to help trace this.


1.07b (921217)

- 'mbox motd' is gone; instead, the contents of the file /spool/motd.txt
  will be shown when users login to the bbs.

- 'fmotd' is gone; instead, set the ftp message of the day in the file
  /spool/ftpmotd.txt . It will be shown before the ftp login sequence starts.


1.07  (921215)

- smtp client has been modified.
  'smtp t4' sets a timeout limit (in seconds) for attempts to deliver mail.
  If t4 is 0 (default), behaviour is as before (direct delivery is attempted
  to the host or mx-host.)
  If t4 is set, behaviour changes as follows:
  If a connection has not been established in t4 seconds, the mail will
  be attempted to be delivered to the 'smtp gateway' (if one is defined)

- pop code has been modified to hopefully eliminate potential crashes.
  (from Mike Billow, N1BEE)

- socklen() fixed for netrom L4. From Paul Healy, EI9GL

- lower case only stuff in ftp login eliminated. It is now correctly case-
  sensitive.

- added 'tcp blimit' to limit backoff for tcp connections.

- 'rip kick' added to send an immediate rip update. From Dave, ve3ifb

- mailbox now supports MID's on receiving and forwarding of messages.

- 'ftpusers' permissions can be set in hexadecimal, ie '0x32', or '50'

- mailbox escape checking can now be set to off in ftpusers file. Add
  #define NO_ESCAPE 65536
  to the permission for a user to have it default to no escape checking while
  gatewaying out. User can change the default. The mailbox 'E' command now
  works as follows:
  'E' shows status (ie. on/off) and escape character.
  'E arg'
        -if arg is one character, it is interpreted as the new escape char
        -if arg starts with a number, it is interpreted as the ascii number
         for the new escape char
        -else if arg starts with 'off' or 'dis' (not case ssensitive)
         then scape checking is turned off
        -anything else will turn escape checking on.

- 'more' and 'dir' commands now work correctly from remote sysop.
   Note that there currently is NO -more-? prompting when executed from
   remote !

- Forward polling added. If there are no message to be sent to the bbs,
  the system will poll the remote bbs for messages when the forward timer
  expires.  Simply add a 'P' to the end of the first line in the forward.bbs
  script. Thus the format is now either
  <bbsname> P
  or
  <bbsname> <[time]...[time]> P

- Extended IP access code. (usefull for gateways only)  NOTE: this is
  NOT compatible with the old version. Ie. modify your autoexec.nos !!!
  Here is the new command format:

  access <state> <proto> <src>[/<bits>] <dest>[/<bits>] <if> [<low> [<high>]]

  where:

  proto = {any|tcp|udp|icmp|<number>} (<number> = decimal IP protocol number)
  dest  = Destination IP address (or "any"), just like <src>

  The rest of the parameters are the same as before.  The port parameters are
  used only if proto is "tcp" or "udp"; they are ignored otherwise.

  Here are some examples:

  ip access permit any  192.111.106/24  all             eth
  ip access permit tcp  all             all             eth     25
  ip access permit tcp  all             all             eth     53
  ip access permit udp  all             all             eth     53
  ip access deny   tcp  all             130.137/16      eth     1       1023
  ip access deny   udp  all             130.137/16      eth     1       1023
  ip access permit any  all             all             eth

  Note that the new "ip access" command format is incompatable with the old.  I
  guess I could have made it backward compatable, but I thought it would look
  ugly if I did.

  The "ip access" command code could probably stand some additional error
  checking on parameters.  For example, only the first letter of the protocol
  is used (e.g., "ijkl" == "icmp").  If the low port is set to zero, this
  means ignore the port numbers (the same as "all" or just leaving them out),
  whereas it probably ought to generate an error.


- automatic personal information for convers users.
  When a user log in, either from mbox, convers call, or convers server,
  the Cinfo file is searched for the user name. The Cinfo file defaults to
  /finger/dbase.dat. Name and text need to be separated with a space or tab.
  Everything that follows the name will be set as the personal info.
  Note that the default file is the SAME as the finger database file !!!
  However, this can be changed with the 'Cinfo' line in the filename config
  file described below. (-f command line option)
  Eg. if the Cinfo file contains the line
  'wg7j Johan, in Corvallis, OR, USA'
  then when wg7j logs in to your server, his /p info will be set to
  'Johan, in Corvallis, OR, USA'

- command recall feature.
  Command are saved in a circular buffer of a size that can be set with
  'history #', eg. 'history 10', which is the default.
  'history' will show the maximum set, and the history list kept.
  'history 0' disables the feature.

  The up-arrow and down-arrow will cycle through old commands when in the
  command session. No editing (yet), just recall.

- added case-insensitivity to convers loop detection code, to handle other
  convers systems better...

- fixed some defines to allow MAILBOX to be undefined in config.h

- sockuser() 'protected' against overwriting of output buffers. System will
  write a message to the log file, and then reboot :-(

- mailbox forwarding R: line needs to be explicitely turned on with
  'mbox header on'

  This is so that regular users can forward from jnos to another system
  designated as full-service bbs, without leaving a trace of their system.
  This avoids other bbs systems marking them as a fullservice bbs.

  (The elements of the R: header are now optional. If not set, they will
   not show in the line, instead of show as 0 or null-strings.)

- some more stuff from wa3dsp:

  * 'prompt on|off'  - defaults to off
    Turns ON or OFF the display of the current directory at the command prompt

  * Commands - rename, copy, dir, cd, pwd, more, tail, del, mkdir rmdir
  now use fully qualified names based on the command session current
  directory. This directory can be ANY valid drive/directory on the
  system.

  The command session current buffer assumes the current directory at
  NOS startup. When 'cd' is exercised at the net prompt the ACTUAL
  dos drive and or directory are never changed. Instead the path on a
  per drive basis is stored in a structure known to the command session.
  Filenames are built into fully qualified names using the path and supplied
  name.

  This is the same way it is done in the FTPCLI in my previous mods.
  PLEASE advise if there are any other commands that should use this method
  that I may have missed.

  * Option added to MORE  - more <filename> [searchstring]
    If searchstring is specified only lines containing the string are displayed.

    more /spool/log bbs           - display lines in logfile with the text "bbs"
    more /autoexec.nos netrom     - display lines with text netrom
    more myfile "text to display" - if text contains spaces use quotes!

   * Option added to domain - domain look <searchstring>
     This is just a call to the 'more' command with the '/domain.txt' file
     specified.
        domain look 44.80.8
        domain look wa3dsp

- All files in nos now can be on any drive and directory. A 'file-naming'
  configuration file can be named on the command line with the -ffilename
  option. (If filename is not given, the -f option will be ignored)
  Eg:  nos -fnos.cfg

  The format of the config files is as shown in the accompanying nos.cfg.
  Ie. filename = directory-or-file-path, where dir-or-file-path can be any
  valid path or filename.

  This now allows things to be in places that optimize the speed; ie; you
  can copy certain things to ramdrives etc before running nos, and then
  use the much faster access times to improve speed...

  You can still use the -d option to set a new 'root' directory for nos.exe,
  but it is only usefull if used before the -f option. If you use -d,
  then you can use the -f to move some files to non-standard directories
  by simply commenting out the files you don't want moved...
  eg.   nos -d/nos -fnos.cfg    is valid
  but   nos -fnos.cfg -d/nos    causes the -d to be ignored !!!

- XSPAWN library (c) Whitney Software used to allow swapping out of JNOS
  when shelling to dos. This allows shelling out at all times, with a full
  size dos memory available !! Ie. Full applications can be run; JNOS is
  INACTIVE at this point!. Compile time option is XSPAWN. (MULTITASK is NOT
  available when XSPAWN is used !)

  Swapping is to EMS, if available, or to disk. Disk swapping is to the
  current drive. You can set a directory path to try and store the disk image
  with the new command line switch -x. (if you have ems, this isn't usefull)
        eg. nos -xc:\;d:\

  From the manual.doc of the xspawn code:

        " Each separate path specifier in the _swappath string (separated by a
        ;) can contain a drive, a directory, or both.  If you do not specify
        a drive, XSPAWN will use the current drive.  If the directory is not
        specified, XSPAWN will use the directory that is current on the
        target drive.

        You may be wondering why you would ever want to specify multiple
        paths.  To illustrate one use of this feature, let us say your system
        has a ramdrive called D: and a hard drive called C:.  Since writing
        to a ramdrive is many times faster than writing to a hard drive, you
        would naturally prefer to write the swap file to the ramdrive.  The
        problem is that there may not be enough space on the ramdrive to hold
        the swap file.  The _swappath string shown above would cause XSPAWN
        to try the ramdrive first and if there is insufficient space, to try
        the C: drive next.

        If a path does not exist, XSPAWN will skip it.  If XSPAWN can't store
        the swap file on any of the specified paths, it will return -1 and
        set errno to EACCES.  "


  According to the user policy, the complete source for the code is in
  xspawn.zip, inside the jnos107.zip source zipfile... Please read
  license.doc in xspawn.zip for more details.

- 'bulletin check' protected against too many forward bbs's (from Jerry, kd4cim)


1.06B (921124):

- forward bug fixed; netrom forwarding works again

- arp display fixed

- rip now allows advertizing of route to yourself with the '2' flag
  (ala KarnCode) Eg: rip add 44.26.1.255 600 2

1.06A (921121):

- cmdparse fixed to accept both tabs and spaces correctly (debugged from code
  by Mike Gallagher)

- twinvec.asm fixed for BC++3.1, dirutil.c for TC2.0

- screen sizing is now a command line option: -c# for colums, -r# for rows
  the 'stat' display now shows this, instead of 'info'. 'col' and 'row'
  commands are gone.
  IE. If your screen size is not sensed correctly, use:
  Eg: to run with 43x132 screen: nos -r43 -c132
  (note: this does not SET the video mode; your system has to be in that mode
  already !)

- tcp stat bug fixed.

VERSION 1.06 (921119)

- all commands setting interface flags now TOGGLE! Ie. first time the flag is
  set and the feature turned on, next time it is turned off, ad infinitum :)
  They are:
  convers port                  ax25 bport
  mbox mport                    mbox hide
  ax25 digi                     ax25 hport
  arp eaves                     arp poll
  ip hport

- 'tcp access' command added. Good for internet gateways. Defined with
   TCPACCESS switch in config.h

- IP heard logging. Turn on per interface with
  'ip hport <iface>'
  For ax.25 interfaces, logs all ip packets heard on the channel.
  For other interface types, logs ip packets that the system routed.

  'ip hsize' sets size of table. 0 means no limit!  Default is 8.

  Shown with with mailbox 'IH)eard' command, or with
  'ip heard'
  or you can now finger 'iheard' to get the list.

- AX25 heard logging needs to be turned ON per interface !!!
  'ax25 hport <iface>' does this. Use 'ax25 filter' still to set
  options for source or destinations. (1=no source address, 2=no dest. address
  3=no logging at all !)

  'ax25 hsize' sets maximum number of call in the total list (ie. NOT per
  interface !). 0 means no limit, and is the default !

- security hole in mailbox telnet permissions fixed.

- screen handling now senses the screen size correctly. Ie. you can use
  80x25,80x43, etc modes. With help from Ron Henderson, WA7TAS
  I tried to assure this works even with vga drivers that
  do not report correct sizes to the gettextmode() call (due to the fact
  that I work on a system that did this faultily :-). It's been tested
  in 80x25,80x28,80x43,80x50,132x50,132x60 modes.
  'info' will show the detected tty size.

  On some systems this still doesn't detect the screen size correctly;
  if so, set the number of rows and columns on you screen in the autoexec.nos
  file with 'rows #' and 'columns #' commands (this does NOT work from
  the command line !!!)


- new arp subcommands:
  'arp eaves [<iface>]'
  Display or set the 'arp eaves drop' functionality per interface.
  If set, all arp replies overheard on the interface will be logged in the
  arp table. This builds a large table on ethernet interfaces, but speeds up
  arp discovery, and might be usefull on radio interfaces.

  'arp maxq'
  Display or set the max number of packets waiting for an arp resolution
  to finish. Default is 5 packets.

  'arp poll [<iface>]'
  Display or set the 'arp keepalive polling' functionality per interface.
  If set, when an arp entry expires, a query will be sent for the address; this
  keeps the arp table fresh, but possibly retains lots of unneeded entries.

  'arp sort y/n', defaults to yes, to sort the arp display.
  (from Doug Crompton, wa3dsp)

- Added the PACKETWIN driver, for the Gracilis Packetwin Card.
  To use, define the 'PACKETWIN' option in config.h
  (Disclaimer: I have NOT tested this, but others have used it with my code :-)

- Added Doug Crompton's (wa3dsp) mods:
  route sort y/n
  tcp view bytes  - t v b
  tcp view timers - t v t
  icmp trace 0|1|2
  rdate server <ipaddress>
  rdate offset +-n
  'ftp' client commands: ?,help,lcd,ldir, and lmkdir (See w7jmods.txt for more)
  'dir' allows for drive letters.
  'ftp resume/rput' (see wg7jmods.txt)

- mbox 'IP' command shows non-private routes only.

- morecore failures are only logged to disk when 'mem debug' is on

- added nntpserv.c from Doug Crompton, WA3DSP

- fixed fifo setup for 16550's

- increased stack size for finger and ttylink servers to fix overflow problems

- forward connects to unknown netrom nodes now fail.

- fixed arp-calls in ax25aar.c


VERSION 1.05 (921021)

- at command allows events to be killed, and rescheduled. From Ron Henderson,
  WA7TAS.
  'at k <#>' to kill event #, where # is the number shown in the 'at' command
  'at [time] command+' to indicate recursion. Ie. after the command has been
  executed, timed execution will be started again.
  EG: at now+0005 dir+   will show a directory listing every 5 minutes

- fixed mkname.c for compile with tc2.0

- added domain name server fix for CNAME queries, from Don Sandstrom, KG7CP.

- new and improved tipmail.c from Milton Miller and Ben Thornton.

- asy flow control bug fixed in asytimer() (file i8250.c)
  from Milton Miller and Ben Thornton

- made 'Tick' volatile, to avoid problems. From Milton and Ben.

- when netrom routes are dropped, either due to obsolesence counter becoming
  zero or by a manual route drop, netrom connections using that route will
  now be be purged if that route was the only route left to the netrom
  destination.

- 'netrom connect' and 'netrom split' don't accept unknown node destinations
  anymore.

- 'MS' display changed; now has
  Core: 76096                   -> coreleft value in bytes
  Up: 3:19:46:59                -> up 3 days, 19 hours
  Logins: 49                    -> 49 total logins
  Users: 2                      -> currently 2 users
  Count: 19                     -> 19 different users have logged in
  Sent: 43                      -> users sent 36 messages
  Read: 186                     -> users read 186 messages
  Rcvd: 171                     -> got 171 msg forwarded to us
  Fwd: 124                      -> forwarded 124 message to other bbs's

- added 'finger database server'; the finger server now will read info
  from the file '/finger/dbase.dat', if there is no '/finger/username' file.
  Ie. if you finger 'johan@wg7j', and the file '/finger/johan' exists,
  it will be sent; if the file '/finger/johan' does NOT exist, the
  '/finger/dbase.dat' file will be scanned (exists.)
  The first line found in this file that starts with the 'username' requested,
  ie here 'johan', will be sent...
  EG: the '/finger/dbase.dat' file can contain:
  johan: WG7J, Corvallis, OR USA, ph.xxx-xxxx. EXTRA CLASS
  ka7ehk is Jim Wagner, in Tangent, OR. Technician license since 1795 :)
  etc...
  NOTE:
  if you have a line starting with 'johannes', a finger to 'johan' will show
  this line if it's the first !

- added  'copy <file> <newfile>' command.

- added 'timed' support, from Brian K. Teravskis, WD0EFL

- fixed buf in send_ax25() and send_nr4(), not freeing buffer if control
  block is invalid.

- display flowmode doesn't start until after the autoexec.nos file has been
  executed. Avoids lockups on remote systems.

- fixed forwarding with empty subject line in msg; now subject is "none".

- fixed '*** done' interpretation in forward.c (looking for -2 instead of 2!)

- bbs forwarding now can be 'scripted'. Format of forward.bbs file is expanded:

  w0rli                 <- still the bbs to forward to
  ax25 ax0 w0rli        <- still how to forward to
  [ multiples of:
  .send this text
  +continue if this string is received
  @wait_this_long for a reply  ]
  w0rli                 <- the areas to forward...
  pnw
  north
  -----------           <- end of this entry

  Valid connect-script lines are:

  '.' lines are like before. The text following will be sent over the
        connection.  This line doesn't need to contain text. In that case,
        a <cr> only gets send.
        NOTE: This will also reset the '+'  reply search string to null!

  '+' lines set a reply string to search for when a line is being received
        with the @ command.

  '@' lines set a timeout in seconds in wich to receive a line over the
        connection. This is the maximum time the system will
        wait for a reply. At this point, an attempt is made to receive a line
        from the connection in the time specified.
        If nothing is received after the timeout time, forwarding for this
        entry is cancelled.
        If something is received, and a search string set with the + command,
        forwarding will be continued only if the search string appears
        somewhere in the line received.
        If the search string was not set, forwarding is continued.

        NOTE: if the value after @ can not be converted to a number, the
        default is 90 seconds.
        NOTE: the search string is reset if forwarding continues after the
        @ command.


   You can have as many of these lines to establish a connection. They need
   not be in any particular order.

   CAVEAT:
   Replies from the connection need to be full lines; ie they have to be
   terminated by a proper end-of-line sequence. This means you can not wait
   for the login prompt from a NOS system, since those are NOT terminated
   with a end-of-line sequence. (see the examples)
   You need to know the EXACT reply from systems you connect through.
   Each @ command reads only one line of data from the connection (if
   any, offcourse). This means that if a system replies multiple lines
   after a connection is made, you need multiple @ commands. (see the
   examples below). This makes it hard to connect via systems that can
   have varying replies, like NOS systems that do not have your system
   marked as a BBS, and thus will send welcome messages and varying
   message-of-the-day etc...


Some examples:

1- a connection via a netrom neigbour:
        w0rli
        ax25 ax0 k7uyx-1        <- initial connection to netrom node
        .c rlimb                <- ask for a netrom connect from this node
        +Connected              <- if we don't get this, things went wrong
        @60                     <- maximum one minute wait !
        w0rli                   <- forward these areas...
        pnw
        allor
        ---------

2- a connection via a JNOS system .
   This assumes that you are marked as a BBS at the JNOS system, so that
   you only get a '[JNOS...] and '>' prompt...

        n7dxt
        ax25 iposu              <- initial connection to the JNOS system
        +[JNOS                  <- wait for sign-on message from the JNOS box
        @15                     <- don't wait longer then 15 seconds
        +>                      <- wait for the prompt
        @15                     <- wait 15 seconds at the most
        .c ax0 n7dxt            <- next, request a gateway connect
        +Trying                 <- NOS replies it's trying...
        @15                     <- wait 15 secs max.
        +Connected              <- wait for 'IPOSU:WG7J-3} Connected to N7DXT'
        @60                     <- wait 60 secs max
        n7dxt                   <- send these following areas
        pnw
        allor
        ----------

3- A connection to a JNOS system, and from there a telnet to a remote bbs
   (again, assumes your system is marked as a bbs !)

        wg7j
        ax25 con iposu          <- initial connection to JNOS
        +[JNOS                  <- sign-on from JNOS
        @15                     <- shouldn't take too long
        +>                      <- next is the prompt
        @15                     <- not too long either
        .t wg7j.ampr.org.       <- ask for a telnet connect
        +Trying                 <- JNOS is trying
        @15                     <- should come pretty soon
        +connected              <- wait for '*** connected to xxx'
        @45                     <- might take a while
        @30                     <- wait for another (blank) line
        +NOS                    <- now come the telnet sign-on message
        @30                     <- wait for this
        @30                     <- after this is a blank line, wait for it
        .w0rli                  <- now we get 'login:' and "Password:" prompts,
        .whomever               <- but they have no <cr>'s, so just answer
        sysop                   <- we're there, forward these areas.
        allor
        wg7j
        pnw
        nos
        ------

- '/sounds y|n' in convers added. This turns the bells on or off.
  Ie. if you don't want the bell if new users log on, do a '/s n' after
  you logon.

-'mbox hideport [<iface>]'
 Set or show the 'hide' flags on interfaces. If this flag is set, the mailbox
 'P' command will not list this interface for ax.25 connection, unless the user
 has sysop priviledges.  AX.25 gateway connections are also dis-allowed,
 unless the user has sysop privs. (This is good for stuff like forward-only
 ports, etc...)

- fixed scanning of the '/p' command in convers server.

- smtp server accepts messages to areas with sub-directories.
 Eg. you can now receive mail for rec.radio.packet, or
 test/toys, or rec\ham
 These messages will be placed in the right subdirectory under /spool/mail.
 CAVEAT: the subdirectory HAS TO EXIST when the mail is received!! It
 is not created.!!!
 (Ie. int the above, /spool/mail/rec/radio, /spool/mail/test have to exist!)

- mailbox keeps track of new mail in areas since user last logged out.
 If 'mbox newmail on', user will get notified on login wich areas have
 new mail. New mbox 'AN' command gives the same information.
 (default is on)

- the interface flag field, as shown in the 'ifconfig' command,
  has more use. It's bits have the following meanings:
#define CONNECT_MODE    1   /* Send datagrams in connected mode */
#define IS_NR_IFACE     2   /* Activated for NET/ROM */
#define NR_VERBOSE      4   /* NET/ROM broadcast is verbose */
#define IS_CONV_IFACE   8   /* Activated for conference call access */
#define AX25_BEACON     16  /* Send AX.25 beacons */
#define MAIL_BEACON     32  /* Send MAIL beacons */
#define HIDE_PORT       64  /* Don't show port in mbox P command */
#define AX25_DIGI       128 /* Allow digipeating */

- convers configuration is now done with commands, and not the convers.cfg
  file any more. New 'convers' command has subcommands :

  allow [ipaddres|hostname]
        - if set, only hosts in this list will be allowed to link to us
          This does NOT effect regular users.
          Host to allow can be set with multiple 'convers allow' commands
          Typing 'convers allow' shows the hosts to allow.

  hostname [name]
        - set or show the convers host name as announced to users and
          across links. 10 chars max. When the 'hostname' command is
          executed, the 'convers hostname' is automatically set to the
          10 first chars of it, and if '.' are found from the right,
          they terminate the string.

  interface [<iface>]
        - activate interface <iface> for ax.25 convers call connections.
         with no argument will show active interfaces.

  mycall [call]
        - set or show the ax.25 convers call.

  link  [<hostname|ip-address>] [linkname]
        - add a convers link to the system at hostname or ip-address.
          linkname is optional, and sets the name of the link.
          (It will be replaces once the remote systems announces it's
          true name...)

  t4 <seconds>
        - set or show the ax.25 t4 timeout value for conference call
          connections. Default is 7200, ie 2 hours.

- user permission bit to disallow convers access from mailbox or
  from convers call.
  #define NO_CONVERS 32768
  If set, user will not be allowed to give the 'C' command, or connect
  to the convers call.

- fixed double <cr> bug in convers personal data across links. Also fixed
  month display in links-listing.

- 'netrom verbose' is gone. 'netrom interface' now defaults to none-verbose
  and the additional 'v' makes it verbose. EG:
  netrom interface ax0 192      -> non-verbose broadcasting
  netrom interface ax0 192 v    -> verbose broadcasting

- 'ax25 confcall' and 'ax25 ct4' are gone. See above.

- 'ax25 digipeat [<iface>]' now shows or sets digipeating per interface.
  All interfaces default to no digipeating when first attached !

- new 'ax25 bcport [<iface>]' command. Sets or displays the ports that
  ax.25 beacons are sent out on. You need one for each interface you want
  to beacon on. Eg:
  ax25 bcport ax1
  ax25 bcport vhf
  (beacon interval and text are still set with 'ax25 bcinterval' and
   'ax25 bctext')

- new 'mbox mport [<iface>]' command. Sets or displays the ports that
  'Mail for:' beacons go out on. You need one for each interface you want the
  mail-beacon to be sent out. Eg:
  mbox mport ax1
  mbox mport vhf

- new 'mbox sendquery'. If set, the mailbox will send a query to ask users
  if they really want to send the mail after they've type the /ex
  A 'N' or 'n' response will abort the message at that point. The user will
  be notified the message was aborted by a 'Mgs aborted' message.
  (default is on)

- forwarding is now a server-process. Start with 'start forward'.
  Timer is still set with mbox timer command.
  (this and a few other things from Milton Miller, kb5tkf and
   Ben Thornton, wd5hls)

- fixed bug in forward.c that would forward with Mycall as the node call,
  instead of the netrom call. Caused problems if Mycall != Netromcall
  (with help from Milton Miller)

- AX.25 Paclen can now be set on a per-interface basis.
  'ifconfig <iface> paclen <num>' will do the trick.
  (this is good for HF, where you want a small paclen !)
  Default is the 'ax25 paclen' value (ie. 256)

  NOTE: If the interface is activated for NETROM, setting this will also
  effect the 'netrom mtu' value. It will be set to (smallest paclen) - 20.
  If this is > 236, the netrom mtu will be 236 (the protocol maximum!).
  Eg: if you have a HF port with paclen of 64 and active with netrom,
  and another VHF port active with netrom and with paclenof 256, then
  netrom mtu is 44 and 'ifconfig netrom' will show this !
  You can override this automatic assignment with 'ifc netrom mtu <num>',
  but BE AWARE of fragmentation problems that will occur if you run this
  over an interface with a smaller paclen then netrom-mtu + 20 !!!
  (You get ax.25 V2.1 fragmentation, and Thenet, BPQ. MSYS etc can NOT handle
   this! NOS and it's derivatives are the only one that can handle this !!!! )

- Setting the netrom mtu now also works for netrom data! (it was originally
  intended for IP over NETROM use; however, both user data and IP packets are
  just data for the netrom protocol, so who cares :) Previously, everything
  pertaining to NR4 data was hardcoded to 236 bytes max, and would result in
  AX25 V2.1 fragmentation if paclen < 256, NO MATTER what.
  In NR4.C, send_nr4() now chops packets larger then netrom mtu into
  multiple smaller ones, thus preventing ax.25 V2.1 fragmantation.
  (see also 'ifconfig iface paclen' above !)

- AX.25 connection calls are now on a per-interface basis. Ie. you can have
  the same two calls with connection on two different interfaces:
  wg7j-3  <->  ka7ehk  on ax0 , and  wg7j-3  <-> ka7ehk  on ax1 now works.

- 16550 fifo trigger level can be set from attach command. Valid values are
  1,4,8 or 14. If you use this, the 'f' option is now mandatory !
  Add the trigger level following the 'f' or as an additional argument. EG:
  'attach asy 3f8 4 ax25 ax0 1024 256 9600 f8' or
  'attach asy 3f8 4 ax25 ax0 1024 256 9600 f 8'

- bbs forward loop detection added. Ie. when you receive a message that you've
  forwarded already, there is a forward loop. New 'bulletin loophold' command
  shows or sets the number of loops after wich to hold a message. 0 disables
  it, and is the default. Eg. 'bul loop 2' will hold any message that has 2 of
  your R: headers in the message when it is received. Loop-held messages get
  an additional header, 'X-BBS-Hold: Loop'.
  Currently, the sysop is NOT notified of the held message. However, they show
  up with the common 'H' as the type of the message in the List display.
  Messages marked 'H' can only be read by users with sysop priviledges, wether
  that message is in a user's private mail area or not. (This is jumping ahead
  of possible message contents scanning and holding)

- stktrace() from the new KA9Q sources added. This is currently only used
  for invalid free() calls. For each invalid free, it will show a trace of
  where the call came from. This should facilitate debugging.
  The 'test' command demonstrates it. Output is in the file stktrace.out.
  -> You need to have the map-file (nos.map) in the current directory !
  If you have invalid frees showing in the 'mem stat' command, and you have
  stktrace.out output, please send me a copy of that file. That will allow
  me to try and figure out what happened.

- netrom default round-trip-time increased to 45 seconds.
  (15 seconds is pretty unrealistic for a loaded 1200bd network :-)

- minor delinting and convers bug fix by Mike Gallaher, wa3hee

- incoming ttylinks do not create a session if system is unattended

- smtp server checks Message-Id's for possible duplicate BID's
  If found, message is accepted, but not delivered.

- mailbox disconnects on any '***' command, except '*** linked to' (bug fix)
  '*** linked to' should now work with any format, including texnet.

- conference connection sockets are put into no-block mode, this solves
  the data backlog problem that bogs the system down.
  (it will still fill up the tx buffer (even beyond the window size),
  but the send_mbuf() call will not block anymore).

- fixed conference access via mailbox inactivity timeout problem.
  Same with mailbox 'D', and 'W' commands.

- All tcp connections allow verbose ip ports. Currently allowed are
  "convers","telnet", and "ttylink". This is case sensitive, but you don't
  need the whole name. First lettter (for convers and telnet), or first
  two (ie. tt for the ttylink port) is enough.
  Eg. to telnet to the conference server with a split screen, do
  "ttylink <hostname> convers" (this is the same as "ttylink <hostname> 3600").
  This also work from the mailbox: 'T wg7j.ampr.org. convers'

- added split screen options for ax.25 and netrom connects (if compiled in)
  New command "split <iface> <call>" is same as "connect", but with S.S.
  New command "netrom split <node>" is same as "netrom connect" but with S.S.
  (Remember: you can do S.S. telnet's with the 'ttylink' command, by adding
   the telnet port number! (see also above))

- ax25 route commands now takes interface. This allows different digi paths
  per interface ! Eg. MAIL beaconing:
  if you want to digi via different nodes on different interfaces...
  'ax25 route add mail ax0 kf7dq-1'
  'ax25 route add mail ax1 wg7j-3'

- arp add/drop/publish now take interface.
  'arp add wg7j.ampr.org. ax25 wg7j-3 ax0'
  'arp drop 44.26.0.162 ax25 ax2'
  'arp publish gw.wg7j.ampr.org. ax25 wg7j-2 ax1'

- timer process is modified, fixes some timing with PI, SCC and other things.

- mailbox accepts and handles <del> chars (0x08) (from wa7tas).

- mailbox areas with more then maxmsg messages now allow reading of first
  maxmsg messages.

- fingers to the system now show the 'last connected' info for the requeste
  user, if exists. After this, the finger file (if exists) will be shown,
  as usual.

- remote sysop 'dir' and 'more' commands work, but without more-prompting.

- 'netrom hidden [on|off]' enables or disables showing of hidden nodes in
  the N display

- 'netrom interface' allows changing parameters for already active interfaces

- Tracing on AXIP interfaces now also works on receive (ie. input)

- fixed command line expression passing in .asm files for BC++3.1

- new mkname.c and other stuff for BC++3.1 from n1bee.

- nr4 ack bug, kiss-ioctl bug fixes per n1bee.

- netrom bcpoll <ifname>, will poll other systems running jnos1.05(or later)
  or dataengine's running jnos40 to send a routes broadcast. Speeds up route
  discovery...
  Eg. add this to the autoexec file for each activated netrom interface.
  This was primarily written for the DataEngine code, that doesn't have the
  'netrom load' from disk capability.

- tcp retries 0, resets to original KA9Q behaviour, ie no retry max.


VERSION 1.04 (920805)

- at command now takes minutes only too; format 'at mm <cmd>'

- format of /convers.cfg has changed:
  localname             -> still the local convers name
  name moot hostname
  name2 moot hostname2
  etc.
  where 'name' and 'name2' are the names of the convers links to put in.
  'moot' can be anything, but needs to be there for compatibility reasons
  (previously it had to be 'telnet' but that is the only thing accepted and
   is now hard coded (saved code))
  'hostname' is optional, and if defined, it is the hostname that will be used
  first to resolve the ip address of the host to link to. If 'hostname' can
  not be resolved, then 'name' will be used as previously.
  Eg:
  Corvallis whatever jnos.wg7j.ampr.org.
  This will try to link to jnos.wg7j.ampr.org. first, if that isn't a valid
  address, then it will try to link to 'Corvallis'

- added convers '/personal' command to show some info. Up to 30 chars will
  be shown in the users display (/w command).  This info also travels across
  links to compatible servers (ie servers running jnos1.04 or later).
  eg '/p Johan in Corvallis, OR'

- convers hostname can be 10 chars now (instead of 8 previously).
  Be carefull if you link with other server running older, noncompatible
  code; it is wize to keep it down to 8 chars in that case...

- added convers loop detection code, from dl9sau

- bug in convers code that didn't free the socket of a failed link
  attempt is fixed.

- separate ax.25 conference call added, with separate t4 timer.
  If set, connections to this call dump the user directly into the
  conference bridge. New 'ax25 confcall' and 'ax25 ct4' commands.

- new commands 'write' and 'writeall' to send message to users.
  'write' takes either socket # or mailbox username, and message
  and 'writeall' takes message and sends it to all mailbox users
  Eg: 'write 131 test'  'write wg7j "testing messages"' or
  'writeall test'  'writeall "testing messages"'

- socket display (eg. 'so 131') now shows socket creation time

- Added tcp retry timeout from iw0cnb. New 'tcp retries' command.
  Will reset tcp connections after too many retries.

- commented out some non-used code in the socket interface (AX25_UI sockets)
  (saves 1.5k :-) )

- New mailbox rewrite rule:
  mail rewritten to 'refuse' is refused from the mailbox with a 'NO' or
  'Bad host' reply.

- Upped the maximum number of netrom and axip interfaces to 16

- 'netrom interface' shows active netrom interfaces
  (verbose flags: v - yes, n - no, and f - according the verbose setting)

- tcp connect requests (Syncs) are refused if low memory, and
  socket() call will fail if memory low.

- AX.25 source call logging now correctly logs outgoing call, instead
  of interface call. (ie. gateway users will show up in list!)

- conference bridge access from mailbox is not via telnet connection
  anymore, but direct. Is faster and saves 2 sockets, 1 process and
  lots of system overhead. Convers.c has been cleaned up a bit too.

- added check in telnet login procedure for valid (Dos-filename) login name

- all memory address displays have dropped the '0008'. All commands involving
  memory  addresses do not accept the '0008' anymore.


VERSION 1.03 (920701)

- 'mbox tmsg' command. Shows or sets the 'telnet msg', that is
  shown to incoming telnet users before the login: prompt
  eg. mbox tmsg "Please use your call to login. Thank you"

- Domain Name Server code added. Start with 'domain startdns'
  Does not support multiple queries per frame, does not support
  authority and additional rr's in the reply.
  Always gives non-authoritative replies.  Has been tested to
  work with A,CNAME,MX,PTR,HINFO,SOA,NS queries. If other remote servers
  have been configured, if needed they will be used to resolve queries.

- 'netrom interface' changed:
  syntax is now 'netrom interface ifname ### [n|v]'
  where ifname is the interface name to attach
  ### is the route quality, 0-255
  and 'n' or 'v' is optional overriding of the verbose setting.
  If 'n' is given, the route broadcasts on the interface are none-verbose
  if 'v' is given, they are verbose.
  These 2 override the verbose flag !! Ie. if verbose is off, but the
  interface flag is verbose, all routes are broadcast.
  If no option is given, the verbose flag is used...

  This allows verbose broadcasts on axip interfaces, but keeps all the remote
  nodes off the local lan by disabling verbose broadcasts on that interface.

- users don't need telnet-permissions anymore for C,CA, and O

- KU will undelete messages marked for deletion

- 'L<' searches the 'From:' field

- a finger to 'conf' will show the conference bridge users (if configured)

VERSION 1.02 (920615)

- bugfix for recording of telnet session by Ron, vk6zjm added

- POP2 and POP3 from was0206 and gri-2.0j was added.

- userlogging works now also for any mailbox starting with "sys",
  even if not an area; this allows sysops to read sysop-mail from
  private areas, and have the system keep track of last read msg.

- the mailbox 'A' command will show the area names only, NOT
  the descriptions. To show descriptions, type AF
  Comments in /spool/areas now NEED TO START with a '#' char...
  and are only shown in the AF form of the command

- code to restore 16550 fifo status added (from Bill Simpson)

- ftp message of the day, modified from Max (iw0cnb).
  Set/show with 'fmotd' command

- mailbox (L)ist display has been changed a bit to show the To: field
  of messages.

- new mailbox 'L>' command allows searches in the To: field of messages
  (NOT case sensitive!)
  eg: 'L> test' will show messages with To: fields of:
  test@allusa, TEST@somewhere, all@testing.usa, ...

- expanded mailbox 'ML' command :
  'ML'       -  lists all past logins since startup
  'ML n'     -  lists last n logins since startup
  'ML call'  -  gives last login date/time for call

- new mailbox 'Move Message' command for sysops:
  'MM name' moves the current message to mailbox file 'name'
  'MM n[...] name' moves message n to mailobx file 'name'
  eg:
  MM 1 3 4 newarea
  (Moves messages are deleted in current mailbox file)

- 'New mail' messages only print to the command screen

- userlog code now also works during 'R' command

- mailbox 'SR' doesn't generate a Cc: to the original message To: addressee

- user default logging added; keeps track of last time logged-in/out,
  state of XM,XA and XN commands, and how last connection was made.
  gets read at login and restores values that existed at last logoff.

- in mailbox send, the rewrite result 'To:' is only shown to sysops

- new command XN to toggle the netrom id prompt.

- deleted the masking of chars with 0x7f, to allow international
  character sets to pass correctly (in ttydriv.c and telnet.c)

- disallow attaching of axip interfaces with names longer then 6 chars
  This is needed for the gateway code to work correctly (inherent to the
  socket internals)

- fixed bug in the Bye command that would reset the last read message
  to 0, if nothing was Listed in the last area

- netrom inactivity timeout disconnection was not working properly in 1.01
  (wrong timer configured). This is now fixed...

- refusing of new connections when memory is low is now done
  in the protocol modules for netrom (nr4.c) and AX.25 (lapb.c)

- when a nodes-broadcast from a previously unknown netrom
  neighbour is heard, the system send a nodes broadcast too.

- new mailbox 'XA' command; toggles showing of the current area
  with the mailbox prompt. Defaults to on.

- fixed bug that prevented areas in subdirectories from being accessed
  (in mlock() and rmlock() functions). This affected systems using nntp

- modified the nntp client in nntpcli.c to be compatible with my userlog code
  (added a "Received:" line to articles)

- message expiry code can now handle both the 'mailbox' style
  (ie. "Tue, 14 Apr 92 15:11:07") and the 'nntp' style date
  line (ie. "14 Apr 92 15:11:07").
  (so it *should* now work with the nntp client; still NOT tested though!)

- mailbox forwarding: anything that came in with a bid goes out with a bid.
  Thus now 'SP sysop@blah $bid' goes out with $bid unlike before.

- when 'bulletin date' is on, "Date: " now only shows the date,
  no more the  "BBS, ".

- added st_garbage() fix in sockutil.c


VERSION 1.01 (920408)
************

- any user can delete messages in any area that starts with "nts".
  Thus users can delete nts traffic, without having to give them
  permission to delete everything.
  Eg: I rewrite all nts stuff i can deliver to the area 'ntslocal'
  User's can now delete these messages after delivery.
  All other traffic (ie. not for my area) i rewrite to 'nts' to
  be forwarded elsewhere. However, 'nts' is NOT an area, so regular
  users can't touch it (You could also use 'traffic' or whatever
  else suits you...)

- plain 'netrom route info' gives info for all routes
  mailbox 'N *' does the same; from Doug Crompton.

- telnet login's get 3 tries max to be validated; ctrl-d as the first
  char will exit the login-procedure.

- support for the BuckMaster CDRom ham-call database has been added;
  it compiles just fine, but this has NOT been tested !!
  (check the compile switches in config.h; not in the standard
  distribution)
  The commands for this are 'callbook','callserver2','cdrom',
  'start callbook' and 'stop callbook'
  This code comes from KB7YW, taken out of SS_NOS sourcecode,
  and is provided as is...

- fixed memory leak with mailbox finger, and overwrite problem
  with the 'whereto' variable.

- mkname.c now works with tc2.0, bc2.0 and bc3.0, from Ron Henderson, wa7tas

- smtp lzw is a more robust; from pa0gri 2.0f

- tipmail.c timer problem fixed; from ke9yq

- Function key session switching ! (modified a bit from WNOS3 sources)
  If the function keys F1-F8 are not defined, they will switch you to
  the session of that number; eg F3 will switch to session 3 !

- tracing to a session. Function key F-9, if not re-defined with an fkey
  command, switches to it from any other session. (it actually toggles;
  ie you can switch between trace and current session by pressing F9)
  Session tracing defaults to on.
  Trace output is only printed in this session when it is the active one.
  Tracing to file currently disables output to the session.
  Tracing can be set to go to the command screen with 'strace off' command.
  (Sometimes you want to see what's going on while you're typing some
  commands at the console)

  To save memory (about 4 kb.) session tracing can be disabled with a
  commandline option. Invoking nos with '-n' will not setup tracing
  to session, but always trace to the command window.
  (the 'strace' command is disabled aswell)
  (eg 'nos -n -s40' will give 40 socket and tracing to the command window)

- the bid's in history file now have a timestamp with them to allow
  for automatic expiry. Format is "%s %ld\n", where %s is the bidstring,
  and %ld is the number of seconds since 1970 (ie. standard time long-integer)

- BID and MESSAGE expiry built in.
  command 'oldbids <timer> [age]' or 'oldbids now'
    <timer> is in hours and sets the interval that the bid file ('history')
    will be scanned for old ones to delete. Old file is renamed to
    'history.bak' and a new one created. This will also transform old style
    bid's (without timestamp) to new style with timestamp.
    [age] is the optional age in days, and defaults to 30 days.
    'oldbids' will show current values, 'oldbids now' will expire old bids
    immediately, with previously set age value (or default if not set)

  command 'expire <timer>' or 'expire now'
    <timer> again is in hours, to set the interval to check for expired
    messages. The expiration in controlled by the file '/spool/expire.dat'
    This file is a list of fields like
    area age
    where area is the area-name WITHOUT the '.txt' extension. Area CAN
    have subdirs denoted by either '.', '/' or '\' . Thus is *should*
    work with NNTP articles as well (see note 2). Age is the age in
    days of the message. If age is omitted, default is 21 days
    Area and age are separated by one space character !
    On expiry, any area.txt file is renamed to area.bak, and then all
    messages are checked for their age. Age comes from the 'Date: ' header.
    Thus with the 'bulletin date yes' command, BBS style messages can
    be properly expired.
    Some valid formats of the '/spool/expire.dat' file:

    #This is a comment
    #expire the allusa bulletins after 7 days
    allusa 7
    #assume the default for allor (ie 21)
    allor
    rec.radio/amateur\packet 10

    NOTE 1: the use of the mktime() function in the age calculations
    now forces the use of BCC instead of TCC. There is a sort-of working
    replacement of mktime() in expire.c for those that want to keep using
    tcc

    NOTE 2: I have tested the subdir expiration with mail files; NOT with
    NNTP originated messages. If this doesn't work, please let me know !

- mbox mailfor exclude. You can set a list of private mail areas to exclude
  from the mail-beacon. Same syntax as 'mb jumpstart exclude'.
  (mailfor code has been rewritten to be more efficient, less hd access)

- a user does NOT need TELNET_CMD permissions anymore to do the 'CALL'
  command. This is so that we can disallow telnet's and still allow
  connections to the call-server.

- included the latest PI driver in the sources (dated 920329)

- mailbox.c is now split into mailbox.c and mboxcmd.c

- mailbox subcommand 'mbox tdisc' sets the inactivity timeout value.
  If not zero, if mailbox user has not given any input for the timeout
  period, the mailbox connection is closed. This prevents idle users.
  Default is 0 seconds, ie off.
  (can be compiled out with MBXTDISC switch in config.h)

- ftp server inactivity timeout. Command 'ftptdisc'. Again, if not zero
  ftp connection will be closed after no data has flown for the timeout
  period. Defaults to 0 seconds, ie. off.
  This gets deactivated during file transfers in either direction;
  this is to avoid looong slooow transfers to cause a timeout.
  (can be compiled out with FTPTDISC switch in config.h)

- netrom subcommand 'netrom tdisc'. Sets a timer similar to the 'ax25 t4'
  timer. If there has been no incoming data over a level 4 circuit for the
  timeout period, the circuit is reset.
  Default is 0 seconds, ie. no timeout.
  This is usefull with idle forward sessions etc.
  (can be compiled out with NR4TDISC switch in config.h)

- mailbox 'SR' command works again (sending replies...)

- 'LL' command was broke since addition of 'LA'. Fixed again.

- mailbox 'RH' command, to read with all headers (same as 'V')

- R: header interpretation now allows both '@:bbs' and '@bbs' format
  as well as '?:bbs' and '?bbs' (for aplink etc.)

- mailbox 'SC' command to send one message to multiple people
  'Send Carboncopy'; it asks for a list of Cc:-addresses. A user can
  answer with one or more addresses, separated by comma's
  eg: 'Cc: johan@ece.orst.edu, ka7ehk@wg7j.ampr.org,test@nowhere.usa'

- mailbox 'XM n' to show or set (XM n) the number of lines for
  more-prompting. Telnet default is 23, others 0 (same as previously)
  MORE now works for ALL connection types, instead of only for telnets.
  MORE also works with all the 'L' commands (as well as R/V commands)
  (this is NOT logged(yet), so at each login, the defaults are set)

- smtp bactch processing fixed ala VK6RJM

- 'info' command now shows compile date/time.


VERSION 1.00 (920318)
************

- New commands 'bulletin <check|date|return>'
  (Can be compiled out by undefining 'MAILFOR' in config.h)

  'bulletin date on/off' (DEFAULT: OFF)
  if on, the original message date from the last R: line will be
  used in the message 'Date:' line. Off acts as plain ka9q code.
  This allows a more correctly indication of the age of the message
  and improves automatic expiry of messages
  (with the 'at hhmm "shell expire..." ' command !)
  (NOTE: due to the lack of the mktime() routine in the TC2.0 libraries,
   the weekday field in the ARPA-date header is set to "BBS"; as soon
   as i get around rewriting that routine (it is in BC2.0 and above)
   that will be fixed. This causes no grief :-), just shows something like
   'Date: BBS, 12 Mar 92 11:21:00 UTC'
   the presence and length of this field are imperative, since at several
   places the string is scanned for the ',' (smtp) or the lenght (forward) )

  'bulletin return on/off' (DEFAULT: OFF)
  if set, when a message is received via bbs-forwarding
  a 'valid bbs-style return address' will be taken from the
  last R:-line, if one is present. This works with any message
  type that starts with R:-headers (so personal mail as well).

  the 'true from-address' is made as 'user@last-R:line-bbs'
  ie. the from-address is set to come from the user, as send
     with the 'S bla@blah < USER' line, and the 'home' bbs will
     be extracted from the last R: line found
     This allows a correct 'from' the be shown, and allows
     the SR (Send Reply) to work normal, however....
     eg. If the message is forwarded as 'SP W7ABC < W6XYZ'
     and the last R:-header is
     R:920312/1200z @:N7PQR.AB.CD.EF [TEST] #:0 Z:1
     then the 'From:' line will read:
     'From: w6xyz@n7pqr.ab.cd.ef'

     NOTE !!!!
     Since in most of these occasions, the from-hosts will NOT
     be tcp/ip hostnames (eg. wg7j.ampr.org) but rather
     bbs H-addresses (eg. WG7J.OR.USA.NA)
     YOU (ie. the sysop) HAVE TO MAKE SURE your system can handle
     these new addresses by setting up the ALIAS and REWRITE files
     to handle these, and then setup bbs-forwarding (if needed)
     as well with FORWARD.BBS

  'bulletin check on/off'
  When turned on, the forward.bbs file is scanned to build a list
  of bbs's we forward to. If on, 'bulletin check' will give this list.
  When a bbs connects, each time a bulletin or any message send with BID
  is forwarded the R: trail (if present) will be read for comparison
  to the list. If an R: line from a BBS we forward to is found,
  an 'X-Forwarded-To' header is added to the smtp headers of the messages.
  (They are written as the very first thing, to speed up the scanning
   of the headers during forwarding...)
  This 'X-Forwarded-To' header is lateron used by the
  forward code to realize that those bbs-es already have the
  message, and we don't have to try to send it,
  only to get a 'NO' reply. Thus not as much time and network
  bandwith is wasted...

- mailbox 'read' only sets the 'READ' flag when the area is the
  users private mail area. This prevents users with sysop privs
  that read other private areas to mark stuff as read.
  eg. I rewrite lots of private mail into two private mailboxes,
  north.txt and south.txt, to be forwarded in those directions.
  I don't want regular users to be able to read this, so they can't be areas.
  I want to be able to read them myself (sysop privs), but doing so would
  previously set the 'READ' status and cause a message not to be forwarded!
  Thus the fix...
- When a message originates here, and goes out over bbs-forwarding,
  after our R: header, a blank line is inserted followed by the message text.
  (previously the text followed immediately)
- when forwarding a message out of a private area, when the message is a
  bulletin, the message does not get deleted (previously it would). Reason:
  i rewrite certain buls to a private area, so that regular users can't read
  them (eg. 'sb sysop@allor'). I also forward these, and thus might miss the
  message if it gets killed after forwarding... (now 'sp sysop@allor' still
  get killed after forwarding :-( )
- by changing the subject-prompt G3ZZC's LANLINK's auto-upload
  is supported (some of my users run this).
- mailbox 'MS' shows mail-status; number of received,forwarded msgs. etc.
  also shown with 'mbox mailstat' command
- userlogging does NOT work for area names 'help' This allows new users
  to list help messages over and over with a simple L command, without
  having to know the 'internals' of the L-subcommands. Suggested by
  my local users
- user is only notified of new received private mail if user is currently
  in his own mail area. Prevent users from doing RM upon new mail nofication
  and getting the new messages in a different area. Suggested by my local
  users

- remote-sysops 1-packet pings are allowed.


VERSION 0.99 (920310)
************

- Mailbox command 'RM','VM' and 'KM' to read-mine, verbose-mine and kill-mine
  This will read at the most the first 19 unread messages, or
  kill (ie. delete) the first 19 read messages IN THE CURRENT AREA.
  (19 is inherent to the cmdparser routine)
  Also 'LA' to list all messages, and LM same as L for compatibility
  (ie. list unread messages)
- A commandfile, ~/onexit.nos, if present, will be parsed when the 'exit'
  command is given, and after this the system exits. (from iw0cnb)
- When the remote-listener receives a valid 'exit' or 'reset' command,
  the same stuff is done as when 'exit' is typed on the keyboard
  ie. processes are notified, onexit.nos parsed etc...
  then if 'reset' a system reset occurs, otherwize a regular exit()
- Mailbox user display ('M' or 'mbox') is enhanced, showing
  detailed state of all users
  (users in sysop mode will only show to others with sysop privs,
   regular users will see that user to be 'Idle')
- New mbox command 'mbox mailfor <interval>'
  (Can be compiled out by undefining 'MAILFOR' in config.h)
  <interval> is in seconds. A 'Mail for:' beacon will be send
  every <interval> seconds to the address 'MAIL'.
  It contains a list of all private mailfiles
  (ie. none-areas) that have unread mail.
  The beacon is also send when the timer is set,
  and can be forced (ie. kicked) with 'mbox mailfor now'
  Simple 'mbox mailfor' will show the timer value and the current
  users that have mail waiting...
- 'netrom load' now works !

VERSION 0.98 (920303)
************
- LZW compression in smtp now works (thanks Gerard!(pa0gri))
- Mailbox minimal tcp negotiation added (thanks Bob!)
- (hopefully) fixed the last incompatibilities with BID's when
  forwarding.
- Made the 'R:' line "bulletproof" for certain fields not set (from iw0cnb).
- fixed bug that reset number of new messages when new mail was received
  in current public area
- made 'domain translate' work correctly again (from g1emm)
- fixed jumpstart problem (actually ax.25 spec 'problem') when a second
  SABM frame is received. (from Ron Murray, vk6zjm)
- trace only outputs to command session or files; ie. doesn't garble
  other sessions anymore (from iw0cnb)
- added a 'call' command to mailbox.
  (code is optional via the CALLBOOK switch in config.h)
  This is an automatic telnet connect
  to a host and port set with the 'callserver' command.
  Format is 'callserver <host> <port>' where the callbook server
  resides on tcp-port <port> on <host>
  This is mainly useful for gateway systems on Internet.
  It allows users to use the callbook-server at buffalo.edu in an easy way.
  Note: User needs to have telnet permissions
  eg: 'callserver marvin.cs.buffalo.edu 2000'
  then the mailbox 'call' command will try to telnet to this host/port
- added the 'at' timed command execution, from IW0CNB's code
  (this can be compiled optionally with the ATCMD switch in config.h)
  The "at" command with no arguments shows the list of events that are to
  be executed.
  at yymmddhhmm <command>
    Executes <command> at specified date,expressed in Year-Month-Day-Hour-Min.
    If specified date is past, the command is not executed.
  at hhmm <command>
    Executes <command> at specified hour and minute of the current day, or of
    the next day if the specified time is past.
  at now+hhmm <command>
    Executes <command> hh hours and mm minutes from now. hh and mm can be up
    to 99.

  Notes and examples:
  <command> may be any valid NOS command, possibly enclosed in quotes,
  as well as a DOS shell command.
  If you want multiple commands to be executed, use the "source <filename>"
  command.
  The third mode of operation requires the exact writing "now+" in lower case
  and without spaces between hhmm.

  Single command execution examples:
  at 9202150900 exit   /* Shuts off on 15 Feb 92 at 9:00am */
  at 2245 "! /c pkzip oldmail \spool\mail\*.*"
  at now+0500 "smtp kick"

  Multiple command execution examples:
  at now+0859 "source cleanup.net"

(VERSION 0.97b)
- fixed little incompatibility with texnet '*** linked' stuff
- added check for console on all session-invoking commands.
  (ie. you can not do 'dir',etc. from remote sysop anymore!)

VERSION 0.97 (920220)
************

- User status keeping.
  The mailbox now keeps track of the last listed message
  in each area for each user. Next time the area is listed, by default
  only newer messages are listed. 'L start# stop#' and 'LL #' will
  still list all messages.
  This info is kept in a file 'areaname.USR' in \spool\mail .
  eg. the area 'amsat' has it's info in \spool\mail\amsat.usr
  The content is simply a list of user names, followed by the id-number
  of the last message listed in this area.
  The content is updated when the user switches areas, or logs out.
  The .usr files are build completely automatically, there is nothing
  you need to do to get things started.
  This feature can be turned of by undefining USERLOG in config.h
  It currently DOES NOT work in areas in subdirectories under ~spool/mail .

- The expanded bbs-forward R: line gets only send if all of
  mbox haddress, fwdinfo, qth and zip are set. Otherwize a simplified
  R: line gets send with only time, @-bbs and message-#

- the mailbox '*** linked to' handling is a bit more robust.
  Every user has permission to do this now, but if sysop-password is not
  set, SYSOP_CMD priviledges are reset.
  It will not allow some one to reset the NO_SENDCMD, NO_READCMD or
  NO_3PARTY protection, if they were disallowed in the original login.
  It now also sets the new call for outgoing gateway connects.
  Handles the TEXNET 'linked to' message, but doesn't use the ssid
  from this (i see no need for this)
  If 'linked to' is done, this logged to the logfile

VERSION 0.96
************

- requested by wb5bbw: logging of mailbox telnet/netrom/ax25 gateway connects

- 'mbox expert' command is gone. Instead default state can be set for each
  user in ftpusers database. Use value of 16384 to set user as expert.
  X command from mailbox will still toggle, but NOT update the default in
  ftpusers.

- hidden ML mailbox command to show previous users,
  also shown with 'mbox past'

- lzw compression in smtp (same as in gri2.0d)
  (disabled in the distribution .exe, since there are reportedly bugs!)

VERSION 0.95
************

- jumpstart has been ruggidized. Lapb now sets a flag in the ax.25 control
  block to indicate wether jumpstart was used. If not used, the first line
  to trigger the mailbox is eaten again.
  Also, a list of calls to excluded from jumpstart can be set (or shown) with:
  mbox jumpstart exclude <one or more call>
  eg:
  'mbox jumpstart exclude wg7j-4 kb7bhf-5 pa3dis'
  Now when either one of those connects, jumpstart will not be used.
  You can show the list of excluded calls with 'mbox jumstart exclude'
  or add more with additional 'mbox jumpstart exclude call call call...'
  lines

- added Jerzy Taraziuk's ksubr mods  (main-process stack checking)

- added code in lapb.c to drop non-local ax.25 routes when a connection closes
  (ie. routes coming from gateway users using digis etc.) Inspired by K4TQL
  Changed routes added in the mailbox gateway and in doconnect() from AX_LOCAL
  to AX_AUTO, such that these routes are only temporary.
  The only permanent ax.25 route entries are now those entered with the
  'ax25 route add' command.

- added Mike Billow, N1BEE's minheap trick in pc.c to (hopefully) resolve
  memory problems when shelled out with the multitasking shell on

- additional config.h switches to undefine multitasking shell code,
  ax.25 ip autoroute, shell-command and some unneeded sessions
  (for switch setup)

- dropped autoroute in the distribution because it causes problems
  when using vc for ip links. It still can be added by changing config.h
  and recompiling


VERSION 0.94
************

- bbs flag in ftpuser:
  IS_BBS     -	the user should be treated as a bbs
  (#define IS_BBS      8192    /*This user is a bbs*/)

- node list in mailbox 'N' command is sorted, per Doug Crompton's code
  Sort can be done by alias or call, set by 'netrom route sort' command
  default: by ALIAS

- netrom neighbours can be listed with 'NR' from mailbox
  this also shows if a route has been used in the last 60 seconds
  (an '>' shows up in front)

- better protection for mbox password and lock commands
  (only access via keyboard, suggested by Gerard, pa0gri)

- fixed a longtime bug with loosing the BID when forwarding bbs mail
  that was received with a bid from someone else

- little bug fixed that would show multiple paths in the ftpserver pwd command

- when jumpstart is off, the line that triggers the mailbox (ie. the CR)
  will be eaten again, like in plain KA9Q (instead of being taken as a
  command, as in previous versions)

- ala PA0GRI:
  mailbox chat is now 'operator'
  mailbox users is now 'mboxusers'
  mailbox upload is back !

VERSION 0.93 (920126)
************

- anonymous permission ala pa0gri's 'univperm'

- Additional mailbox user permissions:
NO_SENDCMD -  disallow all mail, except to 'sysop' or 'SYSOP'
NO_READCMD -  disallow reading of any mail
NO_3PARTY  -  disallow 3rd-party mail to be send
These bits need to be set in order to disallow those actions,
such that ftpusers need not be modified if you don't want to mess
with them

Thus permissions are now:
#define AX25_CMD        8       /* AX.25 gateway operation allowed */
#define TELNET_CMD	16	/* Telnet gateway operation allowed */
#define NETROM_CMD	32	/* NET/ROM gateway operation allowed */
#define SYSOP_CMD	64	/* Remote sysop access allowed */
#define EXCLUDED_CMD	128	/* This user is banned from the BBS */
/* 256 and 512 are used in PPP*/
#define NO_SENDCMD  1024    /*Disallow send command*/
#define NO_READCMD  2048    /*Disallow read command*/
#define NO_3PARTY   4096    /*Disallow third-party mail*/

- additional 'cls' command to clear the command-session screen

- mailbox command to set offset between computer's time and UTC.
  this is used with forwarding ax.25 bbs mail such that the R: line
  indicates correct UTC time with the 'z'.
  ie. if you don't have your computer running with UTC time,
  set this parameter.

  eg: on the west coast, local time is UTC - 8 hours.
      if your computer runs with local time, issue the following
      command:
      'mbox utc -8'
      The default value is 0, ie computer time = UTC .

      Both positive and negative offsets (for those outside the US :-))
      are supported. The code will automatically account for jumps into
      the next or previous day, or year and checks for leap-years on
      february 28/29

- Netrom Level 4 problem (not sending data queueud up)
  is fixed (ala Dave Perry, VE3IFB)

- Remote Sysop password protection
    Set the password with 'mbox password your_password'
    Maximum password lenght is 30 chars.
    NOTE: Users still need sysop premission in the ftpusers file !
    (this is easy to change in the soures)
    If the password is not set, users with sysop priviledges don't get to
    pass the query, but jump into sysop-mode right away. (the old way!)
    If it is set, 5 numbers are prompted. The user then needs to answer
    with the correct 5 characters from the password. The first char is number
    zero !
    You can give as many lines answering the query, to mislead people
    listening in :-). End with a blank line, and if one of the answers you
    gave was correct, sysop permission is granted!

    eg: 'mbox password *12345abCDE'
    you give the '@' command:
    system prompts: '3 7 2 9 0'
    you answer:     agk4e
                    thier
                    3b2D*           <--- the right answer !
                    9qPr&
                    <blank line>    <--- just hit <CR>

    Sysop permission is now granted !

-Forced NS16550 attaching
    optional 'f' parameter in 'attach asy' forces the presence of the 16550.
    eg: attach asy 0x3f8 4 slip sl0 2012 1006 2400 vf
    sets VJHeader compression ( the 'v') and forces the 16550 ('f')

VERSION 0.92 (920114)
************

-Some additional configuration switches in config.h
These save lots of memory (MBFWD and ALLCMD undef'd save about 50k!)
MBFWD  - if not defined, excludes mailbox forwarding code
         and related commands
ALLCMD - if not defined, excludes a bunch of rarely used commands
         (I this did for the internet-slip server we run here)
    Excluded are:
    delete,rename,more,tail,dump,status,motd,cd,dir,finger,fkey,info,mail,mkdir
    pwd,record,rmdir,watch,test,upload,bbs
ALLSERV - if not defined, only the basic servers are included
    Excluded are:
    discard,echo,tip,ttylink servers,
    the ttylink command and the split screen code
Along with these are some fixes regarding NRS and TRACE. Main.c and scc.c
had a few things not properly ifdef'd such that modules needlesly were pulled
in at link-time.

-Kicking or stats of sockets made easier :
1-'tcp|ax25|netrom kick' or 'tcp|ax25|netrom stat' commands
    can be given just the first 4 numbers.
    The '0008' is automatically appended when a lenght of 4 is detected.
    eg: 'tcp kick 76ea' is the same as 'tcp kick 76ea0008'
    (this is ala N1BEE)

2- New command 'skick <socket#>' to automatically kick whatever type the
    socket is. This kicks valid sockets of type TCP, AX25 and NETROM.
    Use 'socket' command to get a list of used sockets.

-AX.25 forwarding is changed.
1) the R: line is ALWAYS sent.

2) some additional R: line fields can be set with
    -mbox zip <your zip>           : sets zip code to be used
        eg. 'mbox zip 97330'             will show 'Z:97330' in R: line
    -mbox haddress <your Haddress> : sets Hierarchical address
        eg. 'mbox haddress #CRV.OR.USA' (note NO leading period!)
                will show '@WG7J.#CRV.OR.USA' in R: line (assuming Mycall
                is set to WG7J)
    -mbox fwdinfo <your info>      : sets [info]
        eg. 'mbox fwdinfo "BCARES BBS"'  will show '[BCARES BBS]' in R: line
        eg. 'mbox fwdinfo Testing        will show '[Testing]' in R: line
    -mbox qth <"qth, St">          : sets your qth (and state)
        eg. 'mbox qth "Corvallis, OR"'   will show 'Corvallis, OR' in R: line
        eg. 'mbox qth Corvallis          will show 'Corvallis' in R: line

3) A message number is sent.
   The message number sent in the '#:' segment comes from the 'id AA####'
   part of the smtp header.

    The R: line looks as follows:
R:date/time @:MYCALL.HADDRESS [your info] your-qth-st #:IDNUM Z:your-zip

4) Optionally sending of the smtp headers.
    Sometimes a message will come in over SMTP and go out via AX.25 forwarding.
Normally the SMTP headers of the message are NOT sent. Thus there is no trace-
back trail beyond your system, since the only trace is your R: line.
If you want to include most of the SMTP headers from all previous
delivery hops, then use the command :

'mbox smtptoo on|yes|1'     (default: OFF)

(This does not send some duplicate line line Subject: etc. that already have
been sent)

VERSION 0.91 (920103)
************
These mods originated in my work on the V25/V40 port of NOS. Version number
is taken from that code-version.

Several NET/ROM changes:

One netrom call, different from any other interface call can be set with
'netrom mycall <nrcall>'   (or 'ifconfig netrom linkaddress yourcall')
This is the call used in netrom route broadcasts !

Netrom alias setting:
Either the 'old' way can be used:
netrom interface <label> <alias> <pathqualilty>
or the alias can be set with 'netrom alias <myalias>'.

If 'netrom alias' has not been set when the old 'netrom interface' command
is given, the alias will be taken from this.
If 'netrom alias' has been set, the 'netrom interface' alias is ignored.
If the alias is set with the 'netrom interface' command, later
'netrom alias' commands will override the alias !

Thus there is only ONE alias for the system
This alias is used for ALL active netrom interfaces, wether you set
different aliases in the 'netrom interface' commands or not !

This alias is also used in netrom route broadcasts.
(
The 'netrom interface' commands doesn't need the alias in it anymore
You can use a simlified version of the netrom interface command:
'netrom interface <ifname> <quality>'
)

Connects (and digi's) to this netrom call and to the alias (with ANY ssid)
are accepted.

If not running netrom, you can still set the netrom alias, and thus
allow connections to the alias...
(digipeating also works then, with any ssid)

SOME EXAMPLES:
******
eg. 1
if you have the following configured :

netrom mycall WG7J-11
netrom alias WGJBOX
netrom interface ax0 192     #assuming ax0 and ax1 are valid interfaces
netrom interface ax1 191

then netrom broadcasts on both ax0 and ax1 will announce you as WGJBOX:WG7J-11
users can connect (or digi's via (if enabled)) WG7J-11, WGJBOX-x, where x=0-15
Connects to the regular ax25 mycall, or other valid interface calls
set with ifconfig are accepted as well.
******
eg. 2
if you don't run netrom but still want an alias for your system
(and netrom-support is compiled in your executable :-))
then simply set the alias:

netrom alias WGJBOX

This allows connections and digi's (if enabled) to WGJBOX-x, where x=0-15
Connects to the regular ax25 mycall, or other valid interface calls
set with ifconfig are accepted as well.
******

-LOTS of MAILBOX changes:

- mailbox outgoing connects use the user call !
  If a user logs in over telnet, the login name will be used as call,
  if:
  A -  there is at least 1 digit (0-9) in the name
  B -  the name can successfully be set to a call
    (ie, 'anonymous' won't work !)
  If the above 2 rules don't work, ax.25 and netrom permission are
  denied, no matter what they we're set to in ftpusers
  Be careful, this still allow someone with '4us' as login and
  permissions set, to go out on ax.25 or netrom with call '4us-15' !!


JUMPSTART:
The mailbox is jump-started when:
the remote address connecting to us is not a known netrom neighbour and
the interface mode is not VC. If both these are true, it is assume to be
a user connecting to the mailbox, and the mailbox is jump-started
upon the SABM frame is received and answered. Thus NO ADDITIONAL cr or whatever
is needed to trigger the mailbox...

In Yeoman's terms: regular users get the prompt IMMEDIATELY upon connecting!!

The above is on by default, but can be changed (ie. turned off) with
'mbox jumpstart on/off' (default: ON)

MAILBOX PROMPT:
'mbox expert on/off'  (default: OFF)
Start user in Expert mode; ie short prompt. This can be toggled from
the mailbox with the (X)pert command.

'mbox nrid on/off'    (default: OFF)
If on, the prompt is 'ALIAS:CALL} ' followed by the whole list of
commands when not in expert mode.
If off, the prompt is as normal in none-expert mode, and '> ' in
expert mode. BBS prompt is unchanged.

Thus,
With nrid OFF and expert OFF, the system looks like 'normal':
Msg #0: A,B,.....,Z,?>

With nrid OFF and expert ON, you get a short prompt :
>

With nrid ON and expert ON, it looks like a 'standard netrom' switch:
WGJBOX:WG7J-11}

With nrid ON and expert OFF, it looks like :
WGJBOX:WG7J-11} Msg #0: A,B,.....,Z,?>

USER COMMAND-CHANGES
No separate pseudo-netrom interface (the old N command) exists anymore.
(N)odes has taken its place, giving the regular list of nodes

New mailbox user commands are:
(X)pert: toggle expert status
(P)orts: gives port/interface description
(N) nodename : gives more descriptive information
(U)sers: shows all users and outbound link with type (ie. telnet,netrom,ax25)
    (the Upload command has been sarificed for this, since no-one around here
     uses that)
(C)onnect:
'c' is the old chat with sysop.
'c name' is a netrom connect, accepting BOTH ALIAS and CALL. Gives error
         and help if name isn't either one.
'c port call' is an ax25 connect. Uses the USER's call with inverted SSID !
        gives help on error.


-KEYBOARD LOCKING
'lock password <your unlock password>' sets the password
typing this DOES NOT clear the screen, so set it in the autoexec file
or type lots of CR's to clear the screen after this
then typing 'lock' will disable any command from being executed
until the password is type. During this input echoing is disabled,
so that your password will not be echoed to the console.
This only works form the keyboard, so that remote sysops cannot lock you
out !

-MINOR COSMETIC CHANGES:

-'ifconfig <iface> description "your description"'
This shows up in the new (P)orts command in the mailbox,
as well as the ifconfig list

- G4JEC's ax.25 ip autoroute code is added.
  This code automatically adds a temporary ip route to the target
  (if none exists) when ip packets are received.
  Configurable with:
  'autoroute on/off'. (default: OFF)

  As suggested by Mike Billow, this only works when RSPF is not active.
  Attaching the first rspf interface automatically turns it off, and
  autoroute can not be turned on anymore after that.

-mailbox sysop (@) is protected against 'exit'. This now simply returns
 you to the mailbox, instead of exiting net.exe!

-kiss attach checks for asy interface type (such that you cannot attach
 kiss ontop of the netrom interface etc.)

-mbuf.c interrupt allocation fixed per hb9rwm


