                   P I N E   M A I L E R   F O R   V M S
                   =====================================

			University of Washington

                          Version 3.91-A for VMS
                             Final Release

                              Andy Harper
                          Kings College London

                        with contributions from

                            Claudio Allocchio
                        INFN & Sincrotrone Trieste


			---   C O N T E N T S  ---

		0. FOREWORD

		1. OVERVIEW

		1.1 Introduction  . . . . . . . . . . . . . . . .
		1.2 Restrictions  . . . . . . . . . . . . . . . .
		1.3 Pre-requisites  . . . . . . . . . . . . . . .
		1.3.1 Software  . . . . . . . . . . . . . . . . .
		1.3.2 Essential documentation to read first . . .
		1.3.3 First-time or upgrade installation  . . . .
		1.4 Building  . . . . . . . . . . . . . . . . . .
		1.4.1 Common VMSBUILD options . . . . . . . . . .
		1.5 Installation  . . . . . . . . . . . . . . . .
		1.5.1 Installing for the first time . . . . . . .
		1.5.2 Installing upgrades or new releases . . . .

		2. MAIL SERVERS AND THE NETWORK CONFIGURATION

		2.1 General considerations  . . . . . . . . . . .
		2.2 TCP stack-specific setup  . . . . . . . . . .
		2.2.1 NETLIB  . . . . . . . . . . . . . . . . . .
		2.2.2 MULTINET  . . . . . . . . . . . . . . . . .
		2.2.3 UCX . . . . . . . . . . . . . . . . . . . .
		2.2.4 CMU . . . . . . . . . . . . . . . . . . . .
		2.2.5 Other stacks  . . . . . . . . . . . . . . .
		2.3 Third party mail systems  . . . . . . . . . .
		2.3.1 MX  . . . . . . . . . . . . . . . . . . . .

		3. AVAILABLE SERVERS

		3.1 IMAPD . . . . . . . . . . . . . . . . . . . .
		3.2 IPOP3D  . . . . . . . . . . . . . . . . . . .

		4. CONFIGURATION NOTES

		4.1 Sending mail out with PINE  . . . . . . . . .
		4.1.1 Using a local mail router . . . . . . . . .
		4.1.2 Using a local mail delivery agent . . . . .
		4.1.3 Using VMS callable mail . . . . . . . . . .
		4.2 Mailbox format specifications . . . . . . . .
		4.3 PINE Configuration files  . . . . . . . . . .
		4.3.1 Minimum configuration settings  . . . . . .
		4.3.2 Configuration file restrictions . . . . . .
		4.3.3 Example PINE.CONF-FIXED file  . . . . . . .
		4.3.4 Example PINE.CONF file  . . . . . . . . . .
		4.4 Server configuration file . . . . . . . . . .
		4.5 Effect of Inbox-Path variable . . . . . . . .
		4.6 VMS MAIL address rewriting  . . . . . . . . .
		4.6.1 DECnet transport  . . . . . . . . . . . . .
		4.6.1.1 Standard DECnet addresses . . . . . . . .
		4.6.1.2 DECnet address conversion mechanisms  . .
		4.6.1.3 Default DECnet address conversion . . . .
		4.6.1.4 Site-defined DECnet address mapping . . .
		4.6.2 SMTP transport  . . . . . . . . . . . . . .
		4.6.2.1 Standard SMTP addresses . . . . . . . . .
		4.6.2.2 SMTP address conversion mechanisms  . . .
		4.6.3 X.400 transport . . . . . . . . . . . . . .
		4.6.3.1 Standard X.400 addresses  . . . . . . . .
		4.6.3.2 X.400 address conversion mechanisms . . .
		4.6.4 Other address formats . . . . . . . . . . .
		4.7 Automatic INBOX filing  . . . . . . . . . . .
		4.8 Logging and debugging . . . . . . . . . . . .
		4.9 Mailbox subscription files  . . . . . . . . .
		4.10 Mail prototype logical name  . . . . . . . .
		4.11 Placement of RFC822 headers  . . . . . . . .
		4.12 Automatic purging  . . . . . . . . . . . . .
		4.13 Time Zone setting  . . . . . . . . . . . . .

		5. KNOWN BUGS AND PROBLEMS

		5.1 Corrupt mail files  . . . . . . . . . . . . .
		5.1.1 Empty folders . . . . . . . . . . . . . . .
		5.1.2 Long records  . . . . . . . . . . . . . . .
		5.2 Parallel PINE and VMS MAIL sessions . . . . .
		5.3 Message deletion  . . . . . . . . . . . . . .
		5.4 Notification of new INBOX mail does not work

		6. REPORTING A PROBLEM

		7. SUMMARY OF LOGICAL NAMES

		7.1 C-CLIENT logical names  . . . . . . . . . . .
		7.2 PINE logical names  . . . . . . . . . . . . .
		7.3 IMAPD logical names . . . . . . . . . . . . .
		7.4 IPOP3D logical names  . . . . . . . . . . . .

		8. RELEASE NOTES AND CHANGE DETAILS

0. FOREWORD
===========

PINE is a screen based mail and news program. Originally written for unix
systems, by the University of Washington, it has been ported to a number of
others. This implementation is for the Digital Equipment Corporation's OpenVMS
operating system. PINE on VMS uses the VMS callable routines for most mail
related functions.

Yehavi Bourvine ported version 3.91 of the PINE code and the IMAPD server to
VMS. His last release was known as 3.91 Beta 5. However, this port was
incomplete. Andy Harper progressed the port to a workable state and upgraded 
the code since then; This note summarizes the changes. Andy Harper version 
starts at 3.91 Beta 6. Most of the work for this version was performed at
KCL. Since 3.91 Beta 10 Claudio Allocchio (within the PANTOMIME Multimedia Mail 
Project of TERENA) conrtibuted a number of changes, especially in the support 
for Mail-11 (VMSmail addresses) and X.400 addresses. Beta 13 version was
prepared within the PANTOMIME project.

Note - the changes here have been tested ONLY with the NETLIB and MULTINET
TCP/IP stacks. NETLIB support provides an alternative for users of other stacks
(UCX, CMU, pathway etc.) If anyone wishes to contribute the relevant mods to
make direct support for these stacks work properly, please let us know. PINE
for OpenVMS is mantained within the PANTOMIME project, and we'll try to 
integrate changes and contributions as much as we can. However no time 
guarantee can be given for this.

The code will compile with GNU C 2.7.1, VAX C 3.2, DEC C 5.5 and DECC 5.3 and
works on both VAX and ALPHA with NETLIB 2.x and/or Multinet 3.5B or later.

Andy Harper
Kings College London						  28 Jul 1997
E-Mail: A.Harper@kcl.ac.uk

Claudio Allocchio
INFN & Sincrotrone Trieste                                        04 Aug 1997
E-mail: Claudio.Allocchio@Elettra.Tireste.it

Pantomime Project
c/o Sincrotrone Trieste
SS 14 Km 163.5 Basovizza
I 34012 Trieste (TS) - Italy
E-mail: Pantomime@Elettra.Trieste.it

1. OVERVIEW
===========


1.1 Introduction

This kit contains all you need (except for a C compiler) to build a working
PINE mailer, also a POP3 server and an IMAP server, for OpenVMS. The code has 
been tested with the following:

    VAX C 3.2 on VAX and OpenVMS 6.2, using NETLIB 2.0J and MULTINET 3.5B
    DEC C 5.3 on VAX and OpenVMS 6.2, using NETLIB 2.0J and MULTINET 3.5B
    DEC C 5.5 on Alpha and OpenVMS 6.2, using NETLIB 2.0J and MULTINET 3.5B
    GNU C 2.7.1 on VAX and OpenVMS 6.2, using NETLIB 2.0J and MULTINET 3.5B

The code has also been tested with MULTINET 4.0B without any problem.

Other combinations are LIKELY to work. It's just that they've not been tested.

See below for details of bug fixes and history.


1.2 Restrictions
 
The PINE software was originally written with unix systems in mind. Converting
it to OpenVMS has thrown up some features that cannot (easily) be implemented
because of the way the OpenVMS MAIL.MAI file is organised. As such, the 
following restrictions are currently imposed on PINE and the IMAPD server:

  * Multiple simultaneous access to the same mailbox may cause unexpected
    behaviour.

  * Deleting/expunging messages may not be instantly visible to PINE or a
    remote IMAP client.

  * Mail-11 (DECnet MAIL) addresses are supported in OpenVMS PINE, but they
    need to be enclosed into double quotes, i.e.:

      To:  "VAXROM::SYSTEM"


1.3 Pre-requisites




1.3 Pre-requisites

1.3.1 Hardware

PINE utility for OpenVMS runs both on VAX and AXP processors. The binary kit
contains elements to build PINE on both of them. PINE, as any other MIME
conformant User Interfaces, requires some memory to process easily large
multimedia messages. A minimun of 12 MB of memory is suggested for good
performance.

1.3.2 Software

Before building and installing PINE and the various supporting utilities, you
will need the following software:

  *  A C compiler.  The software has been tested with VAX C 3.2, DEC C 5.3 /
     5.5 (both VAX and Alpha) and GNU C 2.7.1. Other compiler versions may work
     but there are no guarantees.

     NOTE: the C compiler is NOT needed of you install from the binary kit.

     IMPORTANT NOTE:  Due to a change in the contents of the DEC C RTL and
     STARLET under certain combinations of DEC C and OpenVMS, you find that the
     link fails due to missing definitions of the symbols SYS_NERR and
     SYS_ERRLIST. Digital have provided a patch for this called ALPACRTxx_vvv or
     VAXACRTxx_vvv where 'xx' is the version of the path and 'vvv' is your VMS
     version number. Contact DEC support for details.

  *  A TCP/IP network stack.  The recommended interface is NETLIB (version 2.0
     or above) which provides a stack independent interface to all of the
     popular VMS TCP/IP stacks, such as UCX, MULTINET, CMU, Pathway etc. NETLIB
     is available as freeware from:
	ftp://ftp.madgoat.com/madgoat/netlib020.zip

     and should be installed first.


If you have a version of NETLIB that is supplied as part of another Madgoat
product, such as MX, you may find that a required header file "NETLIBDEF.H" is
missing. If it is not there, please obtain the separate NETLIB product, noted
above, and ensure that this file is present before starting to build the
software.

In the absence of NETLIB, there is direct support for MULTINET. If you have no
TCP stacks at all, then there is a null stack available which restricts PINE to
local mailboxes only and prevents any of the network servers from functioning.

If your underlying stack is MULTINET 3.5A or 3.5B then you should possibly
upgrade to MULTINET 4.0B (or later). If this is not possible, the you should
or install the patch to the multinet header files available from CISCO if you 
plan to compile with DEC C. Otherwise, there are problems with this that may 
prevent compilation.


1.3.3 Essential documentation to read first

You should read certain documentation files and command procedures before
attempting to build or install. At the very least, these are essential:

        (for a complete install from sources)

	  * AAAREADME.TXT	(this file) for build/install/config 
                                instructions
	  * PINE_SETUP.COM	for the logicals/directory structure of PINE
	  * IMAPD_SETUP.COM	for the logicals/directory structure of IMAPD
	  * IPOP3D_SETUP.COM	for the logicals/directory structure of IPOP3D
	  * CCLIENT_SETUP.COM	for the logicals to configure C-CLIENT library
	  * INSTALL.COM		for the commands to copy files in place.
	  * USER_SETUP.COM	To create users for the servers
	  * SERVICE_SETUP.COM	To create the tcp/ip servers (IMAPD/IPOP3D etc.)

        (for a complete install from binary kit)

	  * AAAREADME.TXT	(this file) for build/install/config 
                                instructions
          * 00BINARIES.TXT      the quick guide for binary installation

        with additional details into:

	  * PINE_SETUP.COM	for the logicals/directory structure of PINE
	  * IMAPD_SETUP.COM	for the logicals/directory structure of IMAPD
	  * IPOP3D_SETUP.COM	for the logicals/directory structure of IPOP3D
	  * CCLIENT_SETUP.COM	for the logicals to configure C-CLIENT library

Other files, giving technical info on PINE etc. can be found in the [.DOC]
subdirectory. May be useful for setting up PINE.CONF files and gaining an
understanding of PINE and IMAP concepts.

If you will be using the IMAP or POP servers, then be sure to read the notes on
setting up the underlying stack, later in this document.


1.3.4 First-time or upgrade installation

If upgrading from a previous release (starting from sources) where the 
directory structure is in place already AND the recommended logical names 
have been used, then the new code can be installed (after building) simply 
by running the INSTALL.COM procedure in the top level directory. This copies 
the .EXEs to the right place based on the logical names and instantly updates 
your system with the new version. If your .EXEs files were INSTALLED at system
startup using the INSTALL utility, then you also need to replace them with an
INSTALL REPLACE xxxx.EXE command (or you need to reboot your system in order
to have the new images installed correctly). Remember to save the old 
*_SETUP.COM procedures for eventual modifications you might have done there,
and remember to restore such modifications into the new procedures.

If upgrading from a previous release (starting from binary kit) where the 
directory structure is in place already AND the recommended logical names 
have been used, then follow the same procedures as above, skipping the
compilation sections. After linking, the new code can be installed simply 
by running the INSTALL.COM procedure in the top level directory. This copies 
the .EXEs to the right place based on the logical names and instantly updates 
your system with the new version. If your .EXEs files were INSTALLED at system
startup using the INSTALL utility, then you also need to replace them with an
INSTALL REPLACE xxxx.EXE command (or you need to reboot your system in order
to have the new images installed correctly). Remember to save the old 
*_SETUP.COM procedures for eventual modifications you might have done there,
and remember to restore such modifications into the new procedures.

Otherwise, read on for details of setting up the software.


1.4 Building from sources

   NOTE: if you have a binary kit building is NOT needed. Skip to section 1.6
         for instruction of a binary installation.
         More over, a simplified installation manual for binary kit is 
         available as 00BINARIES.TXT

   1.	Create a directory for the code and unpack to create a directory tree
	into it, preserving the directory structure.

   2.   From the top level of this tree, execute the VMSBUILD.COM procedure
        with zero or more parameters to select the build options. With no
	build options supplied, the procedure will autoconfigure itself for
	the appropriate C compiler and network stack. This is recommended for
	the first build. Later, you can tailor the build by supplying a list of
	options; the table below describes the options available.

	Important options are:
	  * Choice of compiler:  GNU C, VAX C and DEC C are all supported.
       	    The default is to use whichever is installed on your system.
	    Due to GNU C being quite fastidious about checking, you may find
	    that it throws up compile warnings which the others do not. DEC C
	    could, but is run in VAX C compatibility mode. The warnings do not
	    affect performance and can be ignored.

          * Choice of network support:  NETLIB (recommended) or MULTINET.
	    NETLIB will support all of the major VMS TCP/IP stacks.

   3.	The top level procedure builds all of the modules that make up the PINE
	distribution. This includes the PICO library (and stand-alone PICO
	editor), the C-client library (and the IMAPD and IPOP3D servers) and
	finally the PINE mailer itself. Each module can be built separately if
	required by simply moving to that directory and running the VMSBUILD
	procedure found there. Note that PINE requires the other modules to be
        built first.
   

1.4.1 Common VMSBUILD Options

Each of the main modules (PICO library, C-CLIENT library and PINE) contains a
separate VMSBUILD procedure in the relevant directory. The master VMSBUILD
procedure at the top level calls these in the right order (PICO, then C-CLIENT,
and finally PINE) to build the modules. A series of options are passed to each
by the master procedure, which in turn receives them as parameters.

These are the parameters common to each of the VMSBUILD procedures. They must
be specified in full (no abbreviations) and a comma-separated list is allowed.
Misspelled options are ignored without comment.

-------------------------------------------------------------------------------
Parameter	Effect					Default
-------------------------------------------------------------------------------

COMPILE-ONLY	Skip link stage, just compile      )	Compile, then link
LINK-ONLY	Skip compile stage, just re-link   )

NETLIB		Select the NETLIB TCP interface	   )	Auto-detect [note 1]
MULTINET	Select the MULTINET TCP interface  )	... or use null stack
NOTCP		Select null TCP interface          )

VAXC		Use VAXC compiler in preference    )	Auto-detect. [note 2]
GNUC		Use GNUC compiler in preference    )

DEBUG		Include debugger in each application	No debugger

OPTIMIZE	Specify compiler optimization		No optimization
		Turned off if DEBUG also specified	[Note 3]

NOTRACEBACK	Specify link with /NOTRACE		Link with /TRACE
							[Note 4]

-------------------------------------------------------------------------------

NOTE 1:
  If none of NETLIB, MULTINET or NOTCP are supplied as a parameter, the
  procedure will auto-detect the stack and use whichever is found. If more than
  one are found, then the 'best' is selected (NETLIB, then MULTINET, then
  NOTCP). If no stack is found, NOTCP is used. This prevents any of the servers
  functioning but allows manipulation of local mailboxes through PINE; sending
  of mail through is only possible via the sendmail or foreign mail interface.
  The NOTCP option specifically selects the NULL stack (this allows building an
  image for another system that has no TCP support).

NOTE 2:
  If no compiler option is specified, the procedure will examine the system
  to see which C compilers are installed from the set [DEC C, VAX C, GNU C].
  If one is found, it will be used. If several are found, then the 'best' will
  be selected in this order of priority:  DEC C, VAX C, GNU C.
  One of the options VAXC or GNUC may be specified to override the default
  selection and force the use of a particular compiler. Selecting both options
  is an error, as is selecting a compiler that is not present.

NOTE 3:
  Optimization by the compiler is turned off by default. This is because
  bugs in the optimizer sometimes cause erratic behaviour. No problems have
  been detected compiling without optimization so this is the default. Use at
  your own risk. This option is ignored if DEBUG is also selected.


NOTE 4:
  It may be required to INSTALL some images to give enhanced privileges or to
  make them shareable for more efficient operation. This may require that the
  images be linked with /NOTRACEBACK.  Selecting the NOTRACEBACK option does
  just this.  This option is ignored if DEBUG is also selected.


Examples:

  @VMSBUILD
	Build with all defaults; autodetect compiler and stack

  @VMSBUILD GNUC,OPTIMIZE
	Build using the GNU C compiler and select compiler optimization

  @VMSBUILD MULTINET,VAXC,OPTIMIZE
	Build using the direct MULTINET support (even if NETLIB installed),
	using the VAX C compiler and select compiler optimization.


1.5 Installation

Once the software has been built, producing a number of executables, it should
be installed into the production system. This requires that a directory tree is
created, logical names are assigned, and configuration files are set up.

If this is the first time the software has been installed, see section 1.5.1,
otherwise, if this is an upgrade, see section 1.5.2


1.5.1 Installing for the first time

   1.	Create a directory for the production system. You can have one
	directory for the PINE files and another for the IMAP server files, or
	they can be combined into the same directory. In either case, reference
	to the various places should be through logical names (see
	PINE_SETUP.COM, IMAPD_SETUP.COM and IPOP3D_SETUP.COM for more info).

   2.	The directory structure that is recommended is:
	
	  PINE_ROOT:[000000]	-- Top level for pine files
		[.BIN_VAX]		For VAX architecture executables
		[.BIN_ALPHA]		For Alpha architecture executables
		[.CONFIG]		For configuration files
		[.LOGS]			For log files

          IMAPD_ROOT:[000000]   -- Top level for IMAPD files
		[.BIN_VAX]		For VAX architecture executables
		[.BIN_ALPHA]		For Alpha architecture executables
		[.CONFIG]		For configuration files
		[.LOGS]			For log files

          IPOP3D_ROOT:[000000]  -- Top level for IPOP3Dfiles
		[.BIN_VAX]		For VAX architecture executables
		[.BIN_ALPHA]		For Alpha architecture executables
		[.CONFIG]		For configuration files
		[.LOGS]			For log files

	Note -- PINE_ROOT, IMAPD_ROOT and IPOP3D_ROOT can be defined to the
	same thing if preferred.

        The rooted directories are defined by commands similar to these:
	  $ define/system/exec/tran=concealed pine_root   dev:[disk.]
	  $ define/system/exec/tran=concealed imapd_root  dev:[disk.]
	  $ define/system/exec/tran=concealed ipop3d_root dev:[disk.]

	[ note the trailing '.' and the /tran=concealed qualifier]

	The command procedures PINE_SETUP.COM, IMAPD_SETUP.COM and
	IPOP3D_SETUP.COM define these logicals for you. See below.


   3.   Define some system level logical names to the directories:
	  $ arch = f$getsyi("ARCH_NAME")
	  $ define/system/exec pine_dir		pine_root:[bin_'arch']
	  $ define/system/exec pine_conf_dir	pine_root:[config]
	  $ define/system/exec imapd_dir	imapd_root:[bin_'arch']
	  $ define/system/exec imapd_conf_dir	imapd_root:[config]
	  $ define/system/exec ipop3d_dir	ipop3d_root:[bin_'arch']
	  $ define/system/exec ipop3d_conf_dir  ipop3d_root:[config]


	And some logical names for various files:

	  $ define/system/exec pine_exe		pine_dir:pine.exe
	  $ define/system/exec imapd_exe	imapd_dir:imapd.exe
	  $ define/system/exec ipop3d_exe	ipop3d_dir:ipop3d.exe

	  $ define/system/exec imapd_alertfile	imapd_conf_dir:alerts.txt

	  $ define/system/exec cclient_mailprototype imapd_conf_dir:mail.mai

	And various (mainly optional) configuration logicals:

	  $ define/system/exec pine_mail_protocol mx  [see note below]

	  $ define/system/exec imapd_log	imapd_root:[logs]
	  $ define/system/exec imapd_logfile	imapd_log:imapd.log
	  $ define/system/exec imapd_loglevel	2
          $ define/system/exec imapd_timeout    1800
	  $ define/system/exec imapd_logtry	3

	  $ define/system/exec cclient_node_xxx	yyy
	  $ define/system/exec cclient_autofileinbox "MAIL"
	  $ define/system/exec cclient_mailfile_purge_reclaim "any value"


	See the files PINE_SETUP.COM, IMAPD_SETUP.COM, IPOP3D_SETUP.COM and
	CCLIENT_SETUP.COM for further details of the logical names and their
	function. You should tailor these procedures to local requirements and
	ensure that they are executed at each system startup by adding them to
	SYSTARTUP_V5.COM or SYSTARTUP_VMS.COM.


    4.	Set up the configuration files for PINE and the IMAPD server. There are
	several configuration files that should be set, all should be world
	readable:
	   * PINE_CONF_DIR:PINE.CONF-FIXED
		The fixed configuration file for PINE. Configuration values in
		this file may not be overridden by the user and should be used
		to define things that are constant, such as system name, smtp
		servers etc.

	   * PINE_CONF_DIR:PINE.CONF
		The system default configuration for PINE. Configuration
		settings in this file are default values that may be overriden
		by settings in a user's personal .PINERC configuration file.

	   * IMAPD_CONF_DIR:IMAPD.CONF
		The configuration file for the IMAPD server

	The general PINE documentation describes the content of these files but
	please take note of some specific points detailed below.

	 
  5.	Copy the .EXE files, once built, into the directory structure. The
	procedure INSTALL.COM is supplied to do this for you.

  6.    If you intend to use PINE for all users on your system, then 
        execute at system startup (SYSTARTUP_V5.COM or SYSTARTUP_VMS.COM or
        wherever appropriate) the IMAPD_SETUP.COM, IPOP3D_SETUP.COM,
        CCLIENT_SETUP.COM and PINE_SETUP.COM in order to define properly the 
        PINE environment; for example:

                $ @dev:[directory]IMAPD_SETUP.COM
                $ @dev:[directory]IPOP3D_SETUP.COM
                $ @dev:[directory]CCLIENT_SETUP.COM
                $ @dev:[directory]PINE_SETUP.COM

        If you also need to install PINE image on your system, then also
        add the installation command here; for example:

                $ INSTALL:==$SYS$SYSTEM:INSTALL/COMMAND_MODE
                $ INSTALL ADD PINE_EXE -
                          /PRIV=(OPER,SYSPRV,CMKRNL) -
                          /SHARED/OPEN/HEADER_RESIDENT

  7.    Finally, arrange for the users to be given access to the PINE
        executable by some means, perhaps by defining a symbol thus:

                $ PINE :== $pine_exe


1.5.2 Installing upgrades or new releases

If the current version being installed is an upgrade to an existing
installation then very little work needs to be done.

If the recommended logical names have been used and the directory structure is
also as recommended, the simplest way to install the code is to run the
INSTALL.COM procedure from the top level directory. This checks the logicals
exist and copies the relevant .EXE images to the right place.

If a different structure has been used, then all the .EXE files built by the
VMSBUILD procedure must be copied to the right place by hand. Make sure that
they are given the right protections where necessary.

It is not necessary to change any configuration files or reconfigure TCP etc.
unless specifically stated in the release notes for this version.

1.6 Building from binaries

   NOTE: if you have a source kit return to section 1.5 for correct building
         and installation instructions.

   **** Follow instructions described into 00BINARIES.TXT ****


1.7 Post-Installation

Once the software has been built, producing a number of executables, a small
number of actions remains to have it in production.

1.7.1 Configuration

There are two possible methods: guided configuration using PINE_CONFIG.COM
procedure or manual configuration, editing manually the relevant files.

The suggested method (expecially for the first time) is guided configuration.

1.7.1.1 Guided Configuration with PINE_CONFIG.COM

The PINE_CONFIG.COM procedure can be executed whenever you need to change
the main PINE configuration parameters: you can recall it with

	$ @PINE_CONFIG

The procedure produces as output the following configuration files:

	PINE_ROOT:[000000]PINE_SETUP.COM,
        IMAPD_ROOT:[000000]IMAPD_SETUP.COM,
	IPOP3D_ROOT:[000000]IPOP3D_SETUP.COM,
	IMAPD_ROOT:[000000]CCLIENT_SETUP.COM
	PINE_CONF_DIR:PINE.CONF-FIXED
	PINE_CONF_DIR:PINE.CONF
	IMAPD_CONF_DIR:IMAPD.CONF


 *** WARNING *** The procedure tries to propose existing settings as default
 values and saves eventual previous configuration files. However if you created
 special configuration values, or added new settings into the configuration
 files, you them must re-align the newly created configuration files, applying
 your old modifications to them.
    
The procedure asks you some questions, proposing the suggested default
answers for you site. Below is the list of questions and their meaning.

Whenever PINE_CONFIG procedure can determine a suitable default, then this
value is suggested; However, at least the first time, you should be careful
in answering correctly to all answers.

  - RFC822 local default domain? [elettra.trieste.it]:

    This is the local domain name which will be attached to all local
    addresses in outgoing messages.

  - RFC822 address of Mail-11 (DECnet) gateway? [elettra.trieste.it]:

    This is the RFC822 address of an host which runs an SMTP/Mail-11
    gateway and can handle correctly RFC1405 style ("node::user"@domain)
    addresses. Usually hosts with MULTINET installed are suitable for
    this purpouse. If you have a local trusted mailer, check with the
    mailer administrator if it can handle correctly Mail-11 addresses
    before inserting here its host name.

  - RFC822 address of X.400 gateway?  [synw06.elettra.trieste.it]:

    This is the RFC822 address of an host which runs a MIXER (SMTP/X.400)
    gateway. If you do not have one available, the cosine-gw.infn.it
    gateway can be defined as such.

  - RFC822 address of SMTP Server?  [LOCAL]:

    If you configure PINE to send out messages via a remote SMTP trusted
    mailer (like your local domain mailer), then insert here its host name.

    If you have available on the local host where you are installing PINE
    a VMS-Sendmail (including cluster installation) or a MULTINET SMTP, then
    it is suggested to answer LOCAL, and then select a local queue at the next
    question.

  - Local SMTP queue for outgoing messages?  [GV2$SMTP_SYNW06]:

    This is the name of the local VMS-Sendmail or MULTINET SMTP queue to be
    used for outgoing messages submission. This question is skipped if you
    define a remote SMTP mailer as outgoing server.

  - VMSmail SMTP interface prefix?  [smtp]:

    Usually SMTP to Mail-11 (VMSmail) interfaces prefix incoming messages
    in RFC822 format with "smtp%" or similar strings. Insert here the
    appropriate string.

  - Use Standard (RFC1405) encoding for Mail-11 addresses?  [YES]:

    Mail-11 addresses are encoded by default using RFC1405 standard syntax.
    If you want to disable this feature, and encode Mail-11 addresses using
    an old style unreplyable mapping, answer NO to this question.

  - Default incoming messages folder?  [NEWMAIL]:

    Incoming messages are usually delivered by OpenVMS mail utilities into
    NEWMAIL folder. However, if your local utility delivers incoming messages
    into a different folder, then you can select here a different folder name.
    PINE will open the folder defined here as its standard INBOX folder.

  - Move messages out of NEWMAIL after reading?  [NO]:

    VMSmail, by default, moves read messages out of NEWMAIL (or equivalent)
    folder into "MAIL" folder. If you wish to have PINE to behave in the same
    way, then you need to answer "YES" to this question, and define the
    folder name where messages are moved answering to the next question.

    However most of the IMAPD servers actually do NOT move read messages out
    of INBOX (NEWMAIL) folder automatically. For a wider compatibility it is
    suggested to answer NO to this question, leaveing read messages into 
    INBOX folder.

  - Default folder for read messages?  [MAIL]

    If you answer YES to the previous question, the the procedure ask you then
    name of the default folder where messages read from INBOX folder will be 
    moved after reading. If you answer NO to the previous question, then this
    question is skipped.

  - Purge deleted messages from folders?  [YES]:

    PINE usually deletes messages "marked for delete" when closing a single
    folder (PINE does NOT use WASTEBASKET folder like VMSmail). If you want
    not to delete these messages when exiting a folder, then answer NO.

  - Default folder for copies of sent messages?  [SENT-MESSAGES]:

    PINE store a copy of sent messages into a default folder. While VMSmail
    uses NEWMAIL for this function, within PINE you can explicitly choose
    a specific folder name.

  - IMAPD Log level (0=no log)?  [0]:

    The IMAPD server of PINE can log its activity, at different levels. If you
    choose level 0, then no log file is created. Maximum log level is 10.
    The eventual log file is named 

            imapd_root:[logs]imapd-'node'.log

    where 'node' is the decnet node name of local node where you are installing
    PINE and its IMAPD server.

  - IMAPD Server timeout (seconds)?  [1800]:

    This is the timeout aftwer wich inactive IMAPD sessions are dropped by
    the IMAPD server. If you answer 0, then there is NO timeout.

  - IMAPD Max Login attempts?  [3]:

    This is the maximum number of failed login attempt (via user's password) 
    after which the IMAPD server disconnects.

  - External Image Viewer Utility?  [xv]:

    PINE can automatically call an external image viewer utilty to display
    GIF and JPG attachments. If the xv utility is installed, then it will
    try to use it. Any other utility which can handle a command like

        $ utilityname imagefile.ext

    can also be configured successfully.


Now go to section 1.7.1.3 for final system installation.


1.7.1.2 Manual Configuration editing configuration files

If you do not use PINE_CONFIG.COM or you wish more advanced options, then
you can proceed with the following points.

  1.    Edit and configure for your local installation the PINE_SETUP.COM,
        IMAPD_SETUP.COM, IPOP3D_SETUP.COM and CCLIENT_SETUP.COM procedures.
        They contain logical names which should be adapted to your local 
        environment.

  2.    Set up the configuration files for PINE and the IMAPD server. There are
        several configuration files that should be set, all should be world
        readable:
           * IMAPD_CONF_DIR:IMAPD.CONF
                The configuration file for the IMAPD server

           * PINE_CONF_DIR:PINE.CONF-FIXED
                The fixed configuration file for PINE. Configuration values in
                this file may not be overridden by the user and should be used
                to define things that are constant, such as system name, smtp
                servers etc.

           * PINE_CONF_DIR:PINE.CONF
                The system default configuration for PINE. Configuration
                settings in this file are default values that may be overriden
                by settings in a user's personal .PINERC configuration file.

        The general PINE documentation describes the content of these files but
        please take note of some specific points detailed below.

1.7.1.3 System Installation

  1.    Execute at system startup (SYSTARTUP_V5.COM or SYSTARTUP_VMS.COM or
        wherever appropriate) the IMAPD_SETUP.COM, IPOP3D_SETUP.COM,
        CCLIENT_SETUP.COM and PINE_SETUP.COM in order to define properly the 
        PINE environment; for example:

                $ @dev:[directory]IMAPD_SETUP.COM
                $ @dev:[directory]IPOP3D_SETUP.COM
                $ @dev:[directory]CCLIENT_SETUP.COM
                $ @dev:[directory]PINE_SETUP.COM

        Add the installation command into the system startup, too:

                $ INSTALL:==$SYS$SYSTEM:INSTALL/COMMAND_MODE
                $ INSTALL ADD PINE_EXE -
                          /PRIV=(OPER,SYSPRV,CMKRNL) -
                          /SHARED/OPEN/HEADER_RESIDENT


  2.    Install also the IMAPD (and eventually the optional POP3) server(s):
	refer to section 2 for specific setup needed.

  3.    Finally, arrange for the users to be given access to the PINE
        executable by some means, by defining a symbol into the system
        wide login file:

                $ PINE :== $pine_exe


1.7.1.4 Users First Time run of PINE

For each single user, PINE will create at first run the default .PINERC
personal configuration file in SYS$LOGIN. It will also propose the user
to receive a simple tutorial document, and apparently create some default
empty folders like "mail" in the folders list.

For these reasons, each user should run PINE a first time for personal
configuration only, then quit and start using PINE for production again.

1.7.1.5 Compatibility with old message formats

PINE for OpenVMS is compatible with the following message formats:

  - RFC822 (via any interface existing on OpenVMS)
  - MIME (via any interface existing on OpenVMS)
  - Mail-11 (DECnet Mail)
  - X.400 (via DEC MRGATE and MRX interfaces, and via GIVEME2 gateway)
  - NBS (via DEC MRGATE and MESSAGE ROUTER interfaces)

However older message formats like those coming via obsolete RFC987
(like GIVEME) gateways are likely to be incompatible with PINE, producing
unexpected results, including PINE crash. If users have in their mailboxes
or folders such old messages it is reccommended to move these old messages
into a different mailbox or folder collection. A good quick method is
selection by date within VMSmail utility:

  $ MAIL
  MAIL> select/before=dd-mmm-yyyy foldername
  MAIL> copy/all
  _Folder: newfoldername
  _File: OLDMAIL.MAI


1.7.2 Post-Installing upgrades or new releases

If the current version being installed is an upgrade to an existing
installation then very little work needs to be done.

If the recommended logical names have been used and the directory structure is
also as recommended, the simplest way to install the code is to run the
PINEINSTALL.COM procedure from the top level directory. This checks the
logicals exist and copies the relevant .EXE images to the right place.

If a different structure has been used, then consider this as a new instal-
lation, and eventually update the configuration files using the old ones
as a template.

It is not necessary to change any configuration files or reconfigure TCP etc.
unless specifically stated in the release notes for this version.

2. MAIL SERVERS AND THE NETWORK CONFIGURATION

PINE, in conjunction with remote IMAP and POP3 servers, can access mailboxes on
any remote system.  A POP3 server and an IMAP server are provided with the PINE
distribution

The servers are designed to be started by a master server process rather than
as a permanently running process that 'listens' for connections. Thus, although
they are directly supported to run over any stack, the stack must have an
ability to act as a master server, accept connections, start the server process
and then pass the connection on to the server process.

This section contains details of how to set up your network software to run the 
network servers. Unless otherwise stated, all examples show the IMAPD server
but apply equally to all servers. Specific details for each server are given
later.



2.1 General Considerations

Before setting up a network server, you should consider the following:

   * Under what username should the server run? SYSTEM is the default in most
     cases but may be inappropriate in some high security installations,
     although there are no known security holes in the server.

   * What privileges should the username have? At least TMPMBX, NETMBX and
     SYSPRV are needed to access the network and the mail files. Some stacks
     may require additional privilege for network access.

   * What quotas are needed by the username?  The most important is PGFLQUO as
     this determines the maximum size of mailbox that can be handled. The
     server will crash if it runs out of virtual memory when pulling the whole
     mailbox into memory, so a user with a large mailbox may require that a
     large PGFLQUO is set.

   * What sysgen parameters should be changed?  The CMU stack requires the
     MAXBUF parameter to be set to at least the size of the constant BUFLEN in
     the TCP_VMS.H module (currently 8192). If PGFLQUO's are set high, then
     the VIRTUALPAGECNT parameter may need to be adjusted upwards.



2.2 TCP Stack-Specific Setup

A number of procedures are provided to perform much of the initial stack and
system set up for you. See:

    USER_SETUP.COM	[Optional]	Create a user under which to run
					servers. If you want to run as SYSTEM,
					you do not need to run this.

    SERVICE_SETUP.COM	[mandatory]	Create a configuration for a network
					service (EG IMAP or POP server).

The work can be done manually if required and the following descriptions define
what needs to be done.


2.2.1 NETLIB

NETLIB is a freeware stack independent network interface that allows a single
image to be run over any of the popular stacks available for VMS. This is
useful in clusters where different nodes run different TCP/IP stacks as only
one image is required.

   *  Make sure that NETLIB 2.0 or greater is installed before building the
      product. NETLIB 1.x is not suitable. NETLIB is freeware and is available
      from ftp://ftp.madgoat.com/madgoat/netlibNNN.zip [NNN=highest available
      version number]

   *  NETLIB requires a supported TCP/IP stack; please refer to the stack
      specific setup information below.



2.2.2 MULTINET

MULTINET is a commercial TCP/IP stack available from Cisco.

    * Information required:
	- Service name
	- Port number
	- Service type (TCP/UDP)
        - Image Name (or logical name)
	- Username under which to run the server
	- Page file quota to be allocated to the server

   *  NOTE: If you are building with direct MULTINET support (i.e. not via
      NETLIB) and using DEC C to compile everything, then it is important that
      you obtain and install the MULTINET patch to the header files, as there
      are some incompatibilities with existing DEC C 5.x header files. Without
      this patch, the software may not build! This patch is ONLY needed if you
      run MULTINET earlier than 4.0A, as the bug was fixed since Multinet 4.0A.
      Contact TGV/CISCO for details.

   *  The master server should be configured to start up the server image on
      the specified port. The following sequence of commands illustrates this
      for the IMAPD server on port 143:
         $ MULTINET CONFIGURE/SERVER
         SERVER-CONFIG> add imapd
         Protocol [TCP]: tcp
         TCP Port Number: 143
         Program to run: imapd_exe
         SERVER-CONFIG> save
         SERVER-CONFIG> restart

   *  By default, this will start up the server under the SYSTEM username,
      which has all privileges. While this should not cause a problem (the
      server is careful not to allow access to another user's mailbox), some
      sites may want to start up the server under a different username that
      has a restricted set of privileges. After ensuring that the user account
      exists, the following sequence of commands may be used:
         $ MULTINET CONFIGURE/SERVER
         SERVER-CONFIG> select imapd
         SERVER-CONFIG> set username xyz
         SERVER-CONFIG> save
         SERVER-CONFIG> restart

      "xyz" is the desired username.

      The selected username must have at least SYSPRV, NETMBX and TMPMBX
      privilege in order to access the SYSUAF file and an arbitrary user's
      mailbox.
         
    *  You may need to increase the virtual memory allocation of the detached
       process if users have particularly large messages or mailboxes, in
       order to prevent malloc calls from failing and causing a server crash.
       You can use the commands:
          $ MULTINET CONFIGURE/SERVER
          SERVER-CONFIG> select imapd
          SERVER-CONFIG> set pql-pgflquota xxxxx
          SERVER-CONFIG> save
          SERVER-CONFIG> restart
    
       The exact value of 'xxxxx' will be dependent on the users and their
       messages.

    * Much of the setup may be performed automatically by using the
      SERVICE_SETUP.COM procedure found in the top level directory:
          $ @service_setup MULTINET IMAPD 143


2.2.3 UCX

UCX, or Digital TCP/IP services for OpenVMS, is a commercial TCP/IP stack from
Digital Equipment Corporation.

    * Information required:
	- Service name
	- Port number
        - Image Name (or logical name)
	- Name of procedure to be started by master server
	- Username under which to run the server
	- Process name to be given to server
	- Maximum number of simultaneous sessions
	- Name of startup log file to be created

    *  The master server must be configured to start up a command procedure
       that runs the server image, when an incoming call is received on the
       specified port. The following sequence of commands will configure this
       for the IMAPD server:
           $ UCX set service IMAPD /process=IMAPD /port=143 /user=UCX_IMAPD -
               /file=IMAPD_ROOT:[000000]UCX_IMAPD.COM -
               /limit=20 -
               /log=(FILE=IMAPD_LOG:IMAPD_STARTUP.LOG,ALL)

           $ UCX set config enable service IMAPD

           $ UCX enable service IMAPD


    *  The file UCX_IMAPD.COM should contain a line like:
           $ RUN IMAPD_EXE

    *  The example above runs the procedure as the user "UCX_IMAPD", which
       must exist with at least the following attributes:
	       /network
               /priv=(netmbx,tmpmbx,sysprv)
               /defpriv=(netmbx,tmpmbx,sysprv)

    *  The quotas on the "UCX_IMAPD" account, particularly PGFLQUO, should be
       adjusted as appropriate to handle the largest mailbox likely to be kept
       in memory by the server.
               /pgflquo=xxxx

    *  For security purposes, if the account is dedicated to server use, it is
       probably wise to also have these attributes on the account:
               /flag=(disctly,defcli,restricted)
               /nobatch /nolocal /nodialup /noremote
          

    *  The mail delivery agent must be configured to place the RFC822 mail
       headers at the top of the message, rather than at the bottom of the
       message. The servers will not recognize them otherwise. You can use
       the command:
             $ UCX SET CONFIGURATION SMTP /OPTIONS=TOP_HEADERS

       Then restart the SMTP server.


    * Much of the setup may be performed automatically by using the
      SERVICE_SETUP.COM procedure found in the top level directory:
          $ @service_setup UCX IMAPD 143


2.2.4 CMU

CMU is a public domain TCP/IP stack available free of charge. It is for VAX
only and is available through DECUS or from various archives on the network.

    * Information required:
	- service name
	- port number
        - Image name (or logical name)
        - Privileges allocated to server

    *  The configuration file INET$CONFIG should be updated to add a definition
       for the server. Here's a typical entry for the IMAPD server:

           WKS:143:IMAPD:IMAPD_EXE:NETWRK:NETMBX,TMPMBX,PHY_IO,SYSPRV:::::4:5

       IMAPD_EXE is the logical name that points to the IMAPD executable image.
       Note that CMU applications require PHY_IO to access privileged ports.

    *  CMU is sensitive to the value of the SYSGEN parameter MAXBUF as this
       determines the maximum size of a message that can be sent in a single
       network write operation. It MUST be set to a value at least as large as
       that of the constant BUFLEN in the TCP_VMS.H module (currently 8192).
       The recommended minimum for CMU generally is 8300.

       MAXBUF is a dynamic parameter so it can be changed on the fly using
       this sequence:

       $ MC SYSMAN
       SYSMAN> PARAM USE ACTIVE
       SYSMAN> PARAM SET MAXBUF 8300
       SYSMAN> PARAM WRITE ACTIVE

       For permanent changes, use the AUTOGEN facility.


    *  Following the above change, the CMU IPACP process must be shutdown and
       restarted (which will interrupt network activity and close existing
       network connections) using the following commands:
          $ IPNCP NETEXIT
          $ IPNCP STARTUP/IPACP

    * Much of the setup may be performed automatically by using the
      SERVICE_SETUP.COM procedure found in the top level directory:
          $ @service_setup CMU IMAPD 143



2.2.5 TCPWARE

TCPWARE is a commercial TCP/IP network interface available from Process
Software.

    * Information required:
	- service name
	- port number
	- service type (TCP/UDP)
        - Image Name (or logical name)
	- UIC under which to run the server
	- Pagefile quota to allocate to the server

    * The services configuration file TCPWARE:SERVICES. should be updated to
      add a definition for the service. Here is a typical record describing the
      IMAPD service:
          IMAPD   143/TCP

    * The following commands may be used to add a definition for the server:
          $ NETCU
          NETCU> add service 143 tcp IMAPD_EXE /uic=[1,3] /page_file=60000

      Adjust the values of the parameters as required.


    * Much of the setup may be performed automatically by using the
      SERVICE_SETUP.COM procedure found in the top level directory:
          @SERVICE_SETUP TCPWARE IMAPD 143


2.2.6 Other stacks

    *  No information currently available.


2.3 Third party mail systems

There are a number of third party mail systems which may be in use to handle
the delivery of SMTP mail, rather than any SMTP delivery agent that is part of
the TCP/IP stack software. It is important that this delivery agent is
configured to place the RFC822 headers at the start of the message. Some may
place them at the end; this will prevent the servers from correctly locating
them and they will instead be treated as part of the message body.

If it is not possible to configure the mail delivery agent to place the headers
in their normal position (at the top) then see also section 4.11


2.3.1 MX

MX is a popular freeware mail system, available from madgoat software at
ftp://ftp.madgoat.com/mx/mxNNN.zip  (NNN = version).

To configure MX to place the RFC822 headers at the top, use this command
sequence:
     $ mcr mx_exe:mcp
     MCP> set local/headers=top:all
     MCP> save
     MCP> reset/cluster



3. AVAILABLE SERVERS

Both a POP3 server and an IMAP server are provided.

3.1 IMAPD

The IMAPD server provides the user with the ability to access their mailbox
over the network. Any client that uses the IMAP2bis protocol standard may
access any of their mail folders through this server.

IMAPD should be set up to listen on port 143 and start the IMAPD_EXE image when
a call is received.


3.2 IPOP3D

The IPOP3D server provides the user with the ability to access their INBOX over
the network. Any client that uses the POP3 protocol standard may access mail
through this server.

IPOP3D should be set up to listen on port 110 and start the IPOP3D_EXE image
when a call is received.

-----------------------------------------------------------------------------

4. CONFIGURATION NOTES

There are some problems with the linker being unable to correctly resolve
global variables from an object library, when the software is built with either
VAX C or GNU C on the VAX.  DEC C appears to be fine on both VAX and ALPHA. As
a result, we have to link modules explicitly rather than take them from an
object library.


4.1 Sending mail out from PINE

PINE can send mail in several ways:

  * By using SMTP protocols to send mail to a nearby intelligent mail
    router.

  * By placing the job in a local 'sendmail' queue and invoking a mail delivery
    agent to process them. Two agents are supported here - MULTINET's own SMTP
    agent and the freeware package VMS-SENDMAIL

  * By invoking VMS callable mail and using a nominated mail transport image
    that handles SMTP mail.

You must select one of the methods (see below). It is not possible to send mail
if none are selected.



4.1.1 Using a local mail router

PINE will send mail to a local mail router, which should know how to route mail
to the end address, only if an intelligent mail router is configured. This is
done by including a line similar to this in the PINE.CONF or PINE.CONF-FIXED
file (the latter is recommended):

  smtp-server=xxxx

All outgoing mail is sent to the named host for onwards routing. Note that the
named host is contacted directly. No attempt is made to use MX records.

NOTE: You can specify a comma-separated list of smtp-servers and they will be
tried in the order listed. It is recommended that the current system name is
listed last, with general mail routing gateways listed first.



4.1.2 Using a local mail delivery agent

If no smtp-server definition is provided in any of the PINE configuration
files, then PINE can be configured, using logical names, to try using a local
mail delivery agent, either MULTINET's own SMTP agent or the freeware package
VMS-SENDMAIL.  If neither are available, then this method is not functional.
The method used here is similar to that used on unix when PINE is configured to
invoke the sendmail daemon.

To enable this functionality, define the logical name PINE_SENDMAIL_QUEUE to
the name of the local queue used by the SMTP delivery agent. For example:

  * To use VMS-SENDMAIL:
	$ define /system /exec PINE_SENDMAIL_QUEUE "GV2$SMTP_AXP1"
		Note that VMS-SENDMAIL queues always start with "GV2$SMTP_".


  * To use MULTINET SMTP
	$ define /system /exec PINE_SENDMAIL_QUEUE "MULTINET_SMTP"
		Note that MULTINET_SMTP is the name of the MULTINET SMTP
		processing queue and is usually a logical pointing to another
		queue.

If this logical name is defined, then it is also necessary to define the mail
transport shareable image prefix with one of the logical names
PINE_MAIL_PROTOCOL or MAIL$INTERNET_TRANSPORT (the latter is often defined in
OpenVMS 6.2 or above).  The value of the logical name should be the prefix used
when sending mail from VMS MAIL. For example, if you would normally send mail
using an address of the form SMTP%"user@site" then the prefix is "SMTP".

Note: if this method is selected, it will likely be necessary to install the
PINE executable image with CMKRNL and SYSPRV. This is because the sendmail
queues and the spool directories are normally restricted to the background
system processes. Take some care here as every installed image should
be protected to avoid leaving the user with enhanced privileges. PINE for
OpenVMS does NOT have a shell escape mechanism, but ... you never know.

Note: the freeware package VMS-SENDMAIL is available from:
  * ftp://cnaf43.infn.it/mailing/VMSSENDMAILNNN.BCK [NNN=highest available
    version number].

Which can interface either to NETLIB or to MULTINET.


4.1.3 Using VMS callable mail

If none of PINE's configuration files contain an 'smtp-server=' definition, and
the logical name PINE_SENDMAIL_QUEUE has not been defined (see above) then PINE
will attempt to use VMS callable mail to send the message. To tell PINE which
of the shareable mail transports to use, a logical name must be defined with
the name of the transport.

PINE examines the logical names:

    * PINE_MAIL_PROTOCOL

and * MAIL$INTERNET_PROTOCOL	[usually defined in OpenVMS 6.2 and later]


For example:

If you normally send network mail within VMS MAIL using addresses of the form
SMTP%"....", you should define the logical name to the string "SMTP":

    $ define /system /exec PINE_MAIL_PROTOCOL "SMTP"

NOTE: With this method, the message that PINE sends out has TWO sets of RFC822
mail headers separated by a blank line. One is generated by PINE itself; the
other by the foreign mail protocol. Currently there is no way around this. The
only practical effect is to mess up any MIME encoded attachments.



4.2 Mailbox format specifications

Both PINE and the IMAPD server recognize a standardized format for a mailbox
specification. Note the following:

  *  All mailbox names are case-sensitive. "TEST", "test" and "TeSt" all
     refer to different folders. The exception is the special name INBOX which
     is always case insensitive.

  *  The name of the mail file which holds a folder is ALWAYS "MAIL.MAI". It is
     not possible to access mail folders held in any other file.

  *  Specifying just a folder name implictly assumes the user's normal default
     MAIL.MAI file in the default mail subdirectory.

  *  An explicit directory path for the enclosing MAIL.MAI file can be
     specified by using the syntax:
         ~/folder		MAIL.MAI is in SYS$LOGIN:
         ~/path/folder		MAIL.MAI is in the path relative to SYS$LOGIN:

  *  The special name "INBOX", defined in the IMAP standard, is recognized
     and maps to the folder NEWMAIL in the default MAIL.MAI file.


Here are some examples of valid mailbox specifications:

  *  INBOX		file: default MAIL.MAI, folder: NEWMAIL

  *  TEST		file: default MAIL.MAI, folder: TEST

  *  ~/TEST		file: SYS$LOGIN:MAIL.MAI, folder: TEST

  * ~/mail/nickel	file: [.MAIL]MAIL.MAI, folder: nickel


When the IMAP protocol specification was originally drawn up, it was clearly
influenced by the syntax of unix mail folders. As such, the interpretation of a
similar mailbox specification between unix and VMS is somewhat different. The
VMS version tries to mimic the unix format as much as possible but the
underlying meanings are different. For example:

   * ~/mail/sentmail

     On unix: specifies the text file called 'sentmail' in the directory ~/mail

     On VMS: specifies the folder "sentmail" in the file MAIL.MAI in the user's
     [.MAIL] subdirectory (relative to SYS$LOGIN).

4.3 Configuration Files

PINE gets its configuration information from a combination of configuration
files:

   * PINE_CONF_DIR:PINE.CONF-FIXED
	Defines a set of fixed configuration information that may not be
	overridden by the user. This is most useful for defining items such as
	the local host name and the smtp-servers to be used.

   * PINE_CONF_DIR:PINE.CONF
	Defines a default configuration for the remainder of the PINE setup.
	The user may override anything defined here. Normally set to give a
	basic workable system tailored to the majority of users.

   * SYS$LOGIN:.PINERC
	Each user's personal configuration file. Entries here override anything
	specified in the PINE.CONF file but not entries specified in
	PINE.CONF-FIXED. This file may be updated from within the PINE
	setup/configure menu.

Any setting not specified by any configuration file has an internal default
that should produce a workable, though not necessarily optimum, system.

All configuration files are simple text files and may be edited with a text
editor if required.

Both PINE.CONF and PINE.CONF-FIXED must be world readable.



4.3.1 Minimum configuration settings

At the very least, the following settings and defaults should be configured in
the appropriate configuration files:

   * Name of local host (user-domain=xxxx)

   * Name of SMTP server (smtp-server=xxxx) (unless a local mail agent is used)

   * Location of default INBOX (inbox-path=xxxx)

   * A folder collection for all the folders in the default MAIL.MAI file
     (folder-collection=[]). If this is not specified, PINE will only display
     the INBOX folder. All non-INBOX folders, and that includes all the other
     folders in the default MAI.MAI file, will only be visible if specified
     here ( [] is a wildcard pattern that specifies all folders in the default
     mailbox).



4.3.2 Configuration file restrictions

PINE was originally written for a non-VMS environment and some of its concepts
are alien to the way in which VMS MAIL works. As such, there are a few
restrictions on what can be done/configured. Principally these:

   * The WASTEBASKET folder is not used directly.  Messages marked for deletion
     are deleted when the folder is closed and immediately expunged from the
     WASTEBASKET.

   * The files .PINE-DEBUGx, .PINERC and .ADDRBOOK are fixed to the user's
     login directory and cannot be defined to be elsewhere (the definition is
     ignored). The subscription registration database .MAILBOXLIST is also
     fixed to SYS$LOGIN.



4.3.3 Example PINE.CONF-FIXED file

This file contains configuration settings that should not be modified by the
user.

      # ------------- EXAMPLE PINE.CONF-FIXED ----------
      # local host name
      user-domain=vms.huji.ac.il
      # SMTP server
      smtp-server=vms.huji.ac.il
      # ------------ END OF EXAMPLE PINE.CONF-FIXED ----


4.3.4 Example PINE.CONF file.

This file contains default configuration settings. Users may override these
settings with entries in their personal .PINERC configuration file.


      # ------------- EXAMPLE PINE.CONF -----------------
      # viewer for image attachments
      image-viewer=xv
      # Default INBOX location
      inbox-path=INBOX
      # Specify a folder collection for the default local mailbox
      folder-collections=[]
      # Specify where we want copies of outgoing mail to be saved
      default-fcc=SAVED-MSGS
      # ---------- END OF EXAMPLE PINE.CONF -------------


4.4 Server configuration file

The IMAPD and IPOP3D servers read an initial configuration from an optional
configuration file called:

    IMAPD_CONF_DIR:IMAPD.CONF

Currently, there are no specific entries required in this file.


4.5 Effect of Inbox-Path variable

The name INBOX is interpreted in two different places. Officially, it is the
name of the mailbox which receives new mail. Under VMS, new mail is always
delivered to the NEWMAIL folder of the default MAIL.MAI file. The special
mailbox name INBOX (which is case-insensitive) is recognized by the C-CLIENT
mailbox parsing routines and translated into the appropriate NEWMAIL folder.

The INBOX-PATH variable defines the name of a folder to be permanently opened
by PINE. It defaults to the word INBOX if not specified.  By setting it to a
non-existent folder, there will be no permanently open mailbox during a PINE
session. What it does NOT do is change the way that the vms mailbox parser
interprets the name INBOX.


4.6 VMS MAIL address rewriting

Messages may be delivered to a VMS mailbox by several different means. Some
examples include:

  * DECnet
  * SMTP mailer, such as UCX MAIL
  * MAILBUS/X.400

Each message generates its own format of address in the VMS MAIL FROM:, TO: and
CC: fields which are usually incompatible with the RFC822 format addresses used
by PINE and the IMAPD/IPOP3D servers. While this causes no particular problem
if a message is merely being read, it renders any reply impossible.

In order to provide the ability to reply, the various forms of non-RFC822
address are taken apart and rewritten in a format that is RFC822-compatible
where it is possible to do so. Other addresses are left alone and an attempt is
made to write them as an RFC1405 compatible local format address.


4.6.1  DECnet transport

DECnet addresses have a relatively straightforward format that can be easily
mapped into an RFC822-compatible format.


4.6.1.1 Standard DECnet addresses

Messages delivered via DECnet, or delivered locally to the same system, have
FROM: addresses in one of these formats:

  *  username				No DECnet present
  *  node::username			DECnet IV present
  *  namespace:.node::username		DECnet/OSI present



4.6.1.2 DECnet address conversion mechanisms

There are several options for converting a DECnet address in an RFC822
compatible format:

   * Specify logical names which map a specific node or namespace/node
     combination into a domain name.

   * Map the DECnet address into RFC1405 compatible local address format.
     [This is the default if no nodename mapping can be found]

   * Map the nodename and username into an older format "username@nodename".
     [This is the default if no nodename mapping can be found AND the logical
     name CCLIENT_NORFC1405 is defined].



4.6.1.3 Default DECnet address conversion

By default, the local format DECnet addresses are mapped into a local format
address as specified by RFC1405.

If the logical name CCLIENT_NORFC1405 is defined, then the local format DECnet
addresses are mapped according to an algorithm used in earlier releases of this
software.

The following table shows the default mappings applied.

-----------------------------------------------------------------------------
VMS MAIL Address	RFC1405 Standard			"Old" format
-----------------------------------------------------------------------------

namespace::.node::user	"namespace::.node::user"@domain		user@node

node::user		"node::user"@domain			user@node

user			user@domain				user@node
			user					user

-----------------------------------------------------------------------------

NOTES:
  The domain name is derived from the current system host name, or from the
  logical name CCLIENT_GW_MAIL11 if it is defined.

  In the simple case of a local format address that is just a username, then
  the nodename is added only if it can be determined, otherwise it will be left
  just as the username.

The resulting RFC822 compatible address then appears as the FROM field of the
read message, which can then be used as the target of a reply (assuming, of
course, that the system has SMTP capability).


4.6.1.4 Site-defined DECnet address mapping

Logical names may be used to provide alternative nodenames for the converted
DECnet address. If no matching logical name is found, then the converted
address remains as shown above.

First, the namespace, node and username parts of the address are extracted and
used to build a logical name which may contain an alternative node
specification. The logical name has one of these forms:

  * CCLIENT_NODE_namespace_node	For a DECnet/OSI format address

  * CCLIENT_NODE_node		For a DECnet Phase IV address

  * CCLIENT_NODE		For a non-DECnet (username only) address


If the generated logical name exists, its value is used to replace the node
specification in the converted RFC822 address.

Example:
  If the following address is found in the From: field:
       From:  MOONY::SUNG

  Then, with no logicals defined, the translation maps to:
       From: "MOONY::SUNG"@domain	! default
    or From: SUNG@MOONY			! If CCLIENT_NORFC1405 defined

  Otherwise, if CCLIENT_NODE_MOONY is defined to "BEZERK.COM", then the
  translation maps to:
       From: SUNG@BEZERK.COM


4.6.2 SMTP transport

Messages delivered by an SMTP compatible transport generate addresses which,
broadly, are already in the correct RFC822-compatible format. Only a little
conversion is needed.


4.6.2.1 Standard SMTP addresses

Messages delivered by an SMTP compatible transport have addresses in this
format:

  *  username@system			Raw RFC822 address (allowed in OpenVMS 
					6.2 MAIL or above)

  *  tsp%"username@system"		Pre-VMS 6.2 MAIL syntax for network mail
					addresses. 'tsp' is the name of the
					mail transport (EG SMTP or MX).


4.6.2.2 SMTP address conversion mechanisms.

To convert to the RFC822-compatible form, all spurious information is stripped
away, leaving just the 'username@system' part. There are no site-defined
options for controlling this.

  * Any leading transport name prefix 'tsp%' is stripped away

  * Surrounding quotes, if any, are removed

  * Embedded, but unprefixed (by backslash) quotes are removed

  * The local part is re-quoted if it contains any 'special' characters

  * Backslash quoting (as per RFC822) of characters is preserved



4.6.3 X.400 transport

Messages delivered via the MRGATE X.400 messaging system generate addresses
that are in a pseudo-DECnet format. Although they resemble DECnet in many
respects, they are actually encoded X.400 addresses.


4.6.3.1 Standard X.400 addresses

Messages delivered via MRGATE/X.400 have an address in this format:

  * MRGATE::"x=abc::y=def::z=ghi .."



4.6.3.2 X.400 address conversion mechanisms

X400 addresses are mapped into their more usual form as a quoted local
format address, with the addition of a domain name that can handle SMTP to
X.400 routing:

  * "/x=abc/y=def/z=ghi ../"@X400-GW

The X400-GW is obtained from the logical name "CCLIENT_GW_X400", but defaults to
the string "X400-GW" if no such logical name exists.

There are no other site-configurable address mappings.



4.6.4 Other address formats

Messages delivered by another mail transport will have addresses in a format
that matches none of the above. Such messages cannot be mapped into an SMTP one
without in-depth knowledge of the form of the address. Even if it were
possible, there is no guarantee that such addresses would be deliverable.

Therefore, no attempt is made to convert such addresses into an RFC822
compatible format and such addresses will be unreplyable.



4.7 Automatic INBOX filing

The INBOX is a special folder that receives all new mail delivered to an
account.

Under VMS MAIL, this is the NEWMAIL folder in the default mail file. When mail
is read from this folder, VMS MAIL automatically transfers it to the MAIL
folder in the default mail file.

With IMAP, and with PINE, messages are NOT automatically transferred; a user
must request explicit filing of a message to another folder. This is
incompatible with VMS MAIL.

To provide compatibility with VMS MAIL, a logical name may be defined to force
automatic filing of such messages if required. The logical name:

  CCLIENT_AUTOFILEINBOX

may be defined to the name of a VMS MAIL folder (EG "MAIL") and messages will
be automatically filed to this folder when the inbox is closed, exactly as VMS
MAIL would do.

For example:
  $ define /system /exec cclient_autofileinbox "MAIL"


4.8 Logging and debugging

Several logicals control the amount of information written to log and debug
files.

   IMAPD_LOGFILE
		Defines a file to which the IMAPD daemon writes basic logging
		information.

   IMAPD_LOGLEVEL
		Controls the amount of detail written to the logfile; higher
		values write more info. A zero value causes no logging info
		to be written. Currently causes info generated by the main
		IMAPD program and the TCP_VMSx modules to be logged.
		(TCP_VMSx is only logged if compiled with the NETTRACE
		define and, if it is, cannot be linked with the PINE
		main program).

		Currently, these levels are recognized for IMAPD logging:

		  0		No logging at all

		  1-10		Standard logging
				1: basic logging of commands/responses
				2: additional info

		  11-20		Detailed logging of I/O (only with NETRACE
				option)
				11: trace calls to network

    CCLIENT_LOGLEVEL
		This logical controls the c-client library debugging output,
		as shown by the levels listed below. This debug output is
		displayed via the mm_dlog callback function and applies only
		to c-client modules compiled with the LOGTRACE option.
                Compilation with this option slows execution significantly in
                the affected modules.

		At present, these logging and debugging levels are recognized:

		  <20		No debugging (but reserved for future use)

		  21-99		Debugging on
				21: trace entry/exit, parameters/exit status
				23: trace status of system calls
				25: additional debugging trace

		Currently, the only c-client module containing debug code is
		the VMS_MAIL module, and then only if it has been compiled with
		the LOGTRACE option. [ I would have added tracing for the TCP
		modules here but as these may be used to write the debug output
		I would end up in a recursive output loop; thus they log with a
		different method].
		
		For the IMAPD application, the debug info is written out as
		unsolicited (*) NO responses to the client and, if
		IMAPD_LOGFILE is defined, is also written to the logfile.

		For the PINE application, the debug info is added to the pine
		debug file if one is being maintained.


4.9 Mailbox Subscription Files

The IMAP functions 'SUBSCRIBE MAILBOX', 'UNSUBSCRIBE MAILBOX' and 'FIND
MAILBOXES' use and maintain a list of mailboxes in the VMS file
SYS$LOGIN:.MAILBOXLIST. This is not a configurable filename.  It is a simple
text file that can be manually edited if required.


4.10 Mail file prototype logical

The c-client CREATE function allows the user to create an empty MAIL.MAI file.
The VMS callable mail routines provide no facility to do this so it has been
implemented manually. It works by getting the FDL specification of an existing
MAIL.MAI file and then creating a new file using that FDL specification. This
ensures that the format of the file is always correct for the current version
of VMS.

The software will first try to obtain the FDL of the user's default MAIL.MAI
file. If this fails, it will try to obtain the FDL of the file specified by the
CCLIENT_MAILPROTOTYPE logical name. If neither file can be accessed, then the
create operation will fail. Therefore, it is necessary for the system manager
to set up a dummy MAIL.MAI file somewhere in the system and point this logical
at it. It is suggested that the following steps be followed:

   * Set the CCLIENT startup file to define the CCLIENT_MAILPROTOTYPE logical
     name to point to:
       IMAPD_CONF_DIR:MAIL.MAI

   * Login as SYSTEM

   * Copy SYSTEM's MAIL.MAI file to CCLIENT_MAILPROTOTYPE

   * Go into MAIL, select the CCLIENT_MAILPROTOTYPE file and delete all messages
     in it. Then purge and compress the mail file.

   * Make sure that the prototype mail file is World readable

Do NOT point CCLIENT_MAILPROTOTYPE st a live MAIL.MAI file. This is because the
operation will fail should that file be open by someone else.


Creation of an empty folder within VMS MAIL is not supported. As such, it
becomes necessary to 'pretend' to create a folder under certain circumstances
without actually doing it. If we don't, operations like APPEND will fail.
here's what we do:

  *  If the mailfile does not exist, create it and return success

  *  If the mailfile exists, but the folder doesn't, do nothing and return
     success.

     In both of the above cases, note the mailfile/folder combination in a
     separate list so that subsequent validity/existence checks can 'find' it.
     This works because VMS MAIL will automatically create a non-existent
     folder when needed.

  *  If both mailfile and folder already exist, return failure status.

So far, this has not been found to cause any unexpected behaviour. If it does,
please report it.


4.11 Placement of RFC822 headers

Mail delivery agents will usually place the message into the mailbox with the
RFC822 headers at the beginning of the message, separated from the body of the
message by a single blank line.

Some will, or can be configured to, place the headers at the end of the message
body, separated by a special separator line.  This is presumably intended to
make it easier for simple mail clients to access the body of the message
without first wading through all the headers.

By default, the headers are expected to be found at the head of the message.
However, the logical name  CCLIENT_HEADERS_ATEND  may be defined to indicate
that the headers can instead be found at the end.  The value of the logical
name should be the complete separator line.

Should this logical name be defined but the separator line not be found within
the message, then the original VMS MAIL headers will be returned.

NOTE:
  Should the separator line appear as part of the message body legitimately,
  then the headers will likely get confused. It is STRONGLY recommended that
  mail delivery agents be configured to place headers at the beginning.


4.12 Mailbox Purging

A VMS mailbox stores messages in a complex way. When messages are deleted, they
are moved to the WASTEBASKET folder. Later, when the mail file is closed the
wastebasket folder is (optionally) emptied by a PURGE operation. The deleted
bytes of the messages stay around until a special RECLAIM operation is forced
or until the system thinks there are too many and forces an automatic RECLAIM.

By default, the C-CLIENT library uses the mail default behaviour and only
purges messages and reclaims the space occasionally. This makes things
generally more reliable but eats up space.

If the logical name CCLIENT_MAILFILE_PURGE_RECLAIM is defained to any value,
then the PURGE and RECLAIM operations are performed each time a mailbox is
closed.


4.13 Time Zone Setting

When a message is sent, a date field is added in the standard format. This
includes the time zone setting as an offset from Universal Time (UTC) in the
format:

     +nn00      EAST of Greenwich
     -nn00      WEST of Greenwich


The timezone setting is determined by examining the system wide logical name
SYS$TIMEZONE_DIFFERENTIAL. This is defined in OpenVMS 6.x and above but it must
be configured using the procedure SYS$MANAGER:UTC$CONFIGURE_TDF. On earlier
versions of VMS, the logical name should be defined by hand in the system
startup procedure.

The format of this logical name is as an offset from UTC in seconds. For
example, 1 hour EAST would be "+3600", two hours WEST would be "-7200". The
offset should take into account any current daylight savings time.

5. KNOWN BUGS AND PROBLEMS
==========================

There are probably loads left (please tell us !  Code fixes wanted too..) but
this release fixes all those that we have been able to determine.


5.1 Corrupt Mail Files

Although not strictly a PINE related bug, problems can arise if the MAIL.MAI
file is corrupted in some way. A number of potential corruptions have been seen
that can cause problems which PINE cannot handle (VMS MAIL will likely also
crash in a a similar manner). Some known ones are briefly described here.



5.1.1 Empty Folders

It is not supposed to be possible to have an 'empty' folder in MAIL.MAI but it
is possible to create one by exploiting a bug in callable MAIL (at least it is
at version 6.2 of VMS). This causes PINE and IMAPD to get confused and may
crash or otherwise misbehave shortly afterwards.


5.1.1.1 Detecting the empty folders corruption

You can detect this sort of corruption quite easily. Simply go into VMS MAIL
and SELECT the suspect folder. The message:
   'selected 0 messages'

rather than
   'no such folder'

indicates corruption.


5.1.1.2 Fixing the empty folders corruption

You cannot delete this empty folder at all. What has to be done is to copy all
messages to a completely new mail file and then delete the old corrupt mail
file. This sequence should deal with the problem

  1. Go into VMS MAIL

  2. For each folder in the mail file

	*  SELECT folder
	*  MOVE/ALL folder  newmailfile

  3. Ensure that the mail file is completely empty of messages. If not, repeat
     step 2.

  4. Rename the 'newmailfile' to the next highest version of the mail file
     being fixed up.

  5. Delete the lower version of the mail file

You should take care if new mail arrives between steps 3 and 4 as it will go
into the original mail file.



5.1.2 Long records

The documented limit on a mail message record is 256 bytes. However, mail is
capable of delivering longer lines into a mailbox and will under certain
cirumstances. If this happens, PINE and IMAPD (and VMS MAIL) will crash when
trying to read the long record into a buffer. There is no known way to read the
whole record so the best course of action is to delete the message in
question.


5.2 Parallel PINE and VMS MAIL sessions

Use of PINE (or the IMAPD server) implictly assumes exclusive access to the
mail folder. Unfortunately, it doesn't have this. If another PINE, IMAPD or VMS
MAIL session is also accessing the same folder and messages are deleted, this
may result in unexpected PINE or IMAPD crashes.



5.3 Message Deletion

When PINE, or a client using the IMAP/POP servers, deletes a message from a
folder, the display still shows the message as being there.  It will only
disappear from the display when the folder is closed and re-opened.  This is a
limitation on the c-client routines which access the mailbox and is primarily
due to the way in which VMS MAIL handles folders.

It is possible that this limitation may be removed in a future release but it
is unlikely.



5.4 Notification of new INBOX mail does not work

For similar reasons to those outlined in 5.3 above, no 'new mail' notifications
are issued while the INBOX remains open.  To see new mail, you must close, then
re-open INBOX.  PINE, unfortunately, keeps the INBOX permanently open during a
session so you will need to exit then re-enter PINE to see them.

6. REPORTING A PROBLEM
======================

If you encounter a problem with PINE, first be certain that it is NOT simply a
setup or configuration problem. For example:

   * Read the documentation on setup to make sure everything has been done
     correctly.

   * Check all logical names are correct

   * Check contents of configuration files are correct.

   * Check access to configuration files is correct

   * Check quotas and privileges where relevant.


When reporting a problem, it is important to give sufficient details to allow
that problem to be reproduced. Typically, you should include:

   * System config (machine, VMS version, Which C compiler)

   * Logical name definitions

   * All configuration files

   * What you did to create the error (exactly)

   * A copy of the message (if any) that PINE was trying to read at the time.

   * Copies of all error messages and trace/debug logs.

Try enabling all debugging (using the -d9 switch on the PINE startup command
and defining the IMAPD_LOGLEVEL logical name to 20 and CCLIENT_LOGLEVEL logical
to 30). The .pine-debugx file and the IMAPD_LOGFILE will then contain useful
pointers.

If you can, build a DEBUG version of the utility that fails and display the
following items at the point of failure:

   * Call stack

   * The current line in each active module on the stack

   * Values of any variables relevant to the current line at each level (ensure
     that they are displayed in a format appropriate to the type of the
     variable.

All information about the specific problem can be sent to me and I'll try to
fix it. However, please try to send problem reports only if they appear to be a
bug in PINE. I'm not keen on simply debugging a duff configuration
unless it actually results in a crash of the software.

Requests for enhancements to PINE should not be sent to me unless they are
specifically related to the VMS port; otherwise send them to the developers at
the University of Washington.

7. SUMMARY OF LOGICAL NAMES
===========================

Several logical names are used to control the actions of the software.


7.1 C-CLIENT Logical Names

These logical names affect any application which makes use of the C-CLIENT
library.

  * CCLIENT_AUTOFILEINBOX
		Controls whether messages in the INBOX are automatically
		filed to another folder once read. If defined to a folder name,
		they will be moved to that folder.

		Acceptable values: Any mail folder name. The name "MAIL" will
		provide compatibility with VMS MAIL.

		Default: Messages are not auto-filed.

  * CCLIENT_GW_MAIL11
		Defines the 'local-domain-name' to use when a DECnet address is
		mapped into RFC1405 format.

		Acceptable Values: Any valid internet host name

		Default: The local internet host name


  * CCLIENT_GW_X400
		Defines the 'x400 gateway' host name to use when mapping an
		X.400 address into SMTP.

		Acceptable value: Any valid internet host name

		Default:  "X400-GW"


  * CCLIENT_HEADERS_ATEND
		Controls the placement of RFC822 headers. If defined, headers
		are assumed to have been placed at the end of the message,
		separated from it by a fixed line of text.

		Acceptable values: the text delimiting the headers from the
		body of the message.

		Default: Headers exist at the start of the message.

  * CCLIENT_INBOXFOLDERNAME
		Defines the name of the folder in the default mail file to
		which the reserved name "INBOX" maps.

		Acceptable values: A mail folder name

		Default: NEWMAIL

  * CCLIENT_LOGLEVEL
		C-client library debug level. Debugging output applies to
		modules compiled with the LOGTRACE option and is written to the
		applications debug log using the mm_dlog() callback.

		Acceptable values:  0-30

		Default: No debug output


  * CCLIENT_MAILFILE_PURGE_RECLAIM
		If defined, causes mail to purge the wastebasket and reclaim
		deleted messages bytes each time a mail folder is closed.

		Acceptable Values: Any string

		Default:  No purge or reclaim is performed.

  * CCLIENT_MAILPROTOTYPE
		Defines a file whose format will be copied when creating a new
		(empty) mail file.

		Acceptable values: name of a non-open mail file

		Default: MUST be defined


  * CCLIENT_NODE
		The address of the local system used when mapping a VMS MAIL
		address that consists of just a username

		Acceptable values: Any valid internet host name

		Default: The current host name if possible otherwise nothing


  * CCLIENT_NODE_node
		The host name to use when converting a DECnet IV address of the
		form 'node::user' to SMTP.

		Acceptable Values: Any valid internet host name

		Default: uses the name 'node'


  * CCLIENT_NODE_namespace_node
		The host name to use when converting a DECnet/OSI address of
		the form 'namespace:.node::user' to SMTP.

		Acceptable Values: Any valid internet host name

		Default: uses the name 'node'


  * CCLIENT_NORFC1405
		Controls how DECnet addresses are converted to SMTP. If defined
		(any value) then addresses which do not have a translation
		specified by the 'CCLIENT_NODExxx' logicals are mapped to:
		'user@node'. Otherwise, they are mapped according to the
		RFC1405 standard: '"node::user"@local-domain-name'.

		Acceptable values: Anything (value is ignored)

		Default: Map using the RFC1405 standard


7.2 PINE Logical Names

These logicals control the PINE applications

  * PINE_ROOT
		The root of the tree containing the PINE executables and
		configuration files. REQUIRED.
  * PINE_DIR
		The directory containing the pine executables for the current
		system architecture. REQUIRED.

  * PINE_EXE
		The PINE.EXE image for the current system architecture.
		REQUIRED.

  * PINE_CONF_DIR
		The directory containing the PINE configuration files.
		REQUIRED.


  * PINE_SENDMAIL_QUEUE
		Used only if no 'smtp-server=...' definition is found in the
		configuration files.

		If defined, PINE will use the local sendmail facility to post
		messages by creating a batch job and submitting it to the queue
		define by this name. A separate process is required to take
		jobs from the queue and process them. Supported ones are
		MULTINET's own SMTP delivery agent and the freeware package
		VMS-SENDMAIL.

		Acceptable values:	Any batch queue used by the mail
		delivery agent.

		Default: Mail is delivered using the foreign mail
		interface in callable mail.

  * PINE_MAIL_PROTOCOL
		Defines the foreign mail transport name E.G. "SMTP" or "MX"
		overrides MAIL$INTERNET_TRANSPORT if this is also defined.

		Acceptable values: The prefix of the shareable image used
		to send mail via the foreign mail interface.

		Default:  Mail cannot be sent via the foreign mail interface
		(unless MAIL$INTENET_TRANSPORT is defined).

  * MAIL$INTERNET_TRANSPORT
		As for PINE_MAIL_PROTOCOL. This logical name, new with OpenVMS
		6.2, performs the same function but is often already defined
		as it is used by VMS MAIL.

		Acceptable values:	Same as for PINE_MAIL_PROTOCOL

		Default: Mail cannot be sent via the foreign mail interface
		(unless PINE_MAIL_PROTOCOL is defined)


7.3 IMAPD Logical Names

These logicals control the IMAPD server applications

  * IMAPD_ROOT
		The root of the tree containing the IMAPD executables and
		configuration files. REQUIRED.

  * IMAPD_DIR
		The directory containing the IMAPD executable for the current
		system architecture. REQUIRED.

  * IMAPD_EXE
		The IMAPD.EXE image for the current system architecture.
		REQUIRED.

  * IMAPD_CONF_DIR
		The directory containing the IMAPD configuration file.
		REQUIRED.

  * IMAPD_ALERTFILE
		The name of a file containing text messages. If defined, the
		server will output the contents of this file when the IMAPD
		server starts (as an unsolicited response) and thereafter
		whenever the modification date of the file has changed,
		indicating new or updated information is available.

		Acceptable value: name of a readable text file

		Default: No alert messages are output


  * IMAPD_LOGFILE
		If defined, specifies the name of a log file created for each
		IMAPD session.

		Acceptable values: Name of a file that should be created. The
		directory must be writeable by the server.

		Default: No log file is created


  * IMAPD_LOGLEVEL
		Specifies the level of logging information written to the log
		file. The higher the value, the more information is written.
		  0 - no logging
		  1 - log only received commands
		  2 - log status responses to commands.

		Acceptable values: An integer value

		Default: 0


  * IMAPD_TIMEOUT
		Specifies a time, in seconds, after which the IMAPD server
		should auto-logout the user if no commands have been issued.

		Acceptable values: An integer value, specifying the number of
		seconds to wait.

		Default:  No auto-logout


  * IMAPD_LOGTRY
		Specifies the number of failed attempts at login to accept
		before exiting.

		Acceptable values: An integer value.

		Default: 3

7.4 IPOP3D Logical Names

These logicals control the IPOP3D server applications

  * IPOP3D_ROOT
		The root of the tree containing the IPOP3D executables and
		configuration files. REQUIRED.

  * IPOP3D_DIR
		The directory containing the IMAPD executable for the current
		system architecture. REQUIRED.

  * IPOP3D_EXE
		The IPOP3D.EXE image for the current system architecture.
		REQUIRED.



8. RELEASE NOTES AND CHANGE DETAILS
===================================           

This section details major changes since the previous release and a history of
specific changes to the software. Later changes may supercede earlier changes.


3.91-A FINAL RELEASE - CHANGES SINCE 3.91 BETA 13
-------------------------------------------------

Summary of new features in this release
=======================================

  * PINE can now read and process correctly also messages delivered to
    VMS Mail mailboxes via DEC MRGATE, DEC MRGATE/MRX and RFC1327/MIXER
    gateways: if messages contain MIME type bodyparts, now these bodyparts
    are correctly interpreted also in these special cases

  * Timezone details are now added to the Date field (as an offset from
    UTC/GMT)


General Changes
---------------

  * IMAPD_SETUP.COM, IPOP3D_SETUP.COM and PINE_STUP.COM procedures modified 
    to fix a possible problem with concealed logical names. (C.A.)
								18-JUL-1997

  * VMSBUILD.COM (all) procedures modified to enable correct build from
    binary kit on any platform and supported network stack. (C.A.)
								18-JUL-1997

  * PINEINSTALL.COM procedure added to facilitate installation from a
    binary kit. (C.A.)
								18-JUL-1997

  * Made sure documentation now refers to the final release instead of beta
    where relevant.
								28-JUL-1997

  * AAAREADME.TXT : Added information about the time zone setting and how it
    should be configured.
								28-JUL-1997

C-CLIENT Changes
----------------


  * [.IMAP.ANSI.C-CLIENT]RFC822.C : rfc822_parse_content_header routine,
    rfc822_parse_word routine and rfc822_quote routine modified to fix a
    bug in handling boundary specification strings enclosed in 'single quotes'
    instead of "double quotes". (C.A.)
								04-AUG-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.H : Added a set of RFC822 field flags in oder
    to enable correct recognition of real RFC822 headers, X.400 P2 headers and
    RFC1327/MIXER additional RFC822 headers. (C.A.)
								01-AUG-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : __read_message routine modified to enable
    correct recognition and processing of read RFC822 headers, X.400 P2 headers
    and RFC1327/MIXER additional RFC822 headers. Now a set of flags is used to
    distinguish these 3 cases, and to avoid header parse to be messed up by 
    some strange combinations inside the VMS Mail message text. New routines
    __set_headerFields and __set_headerSpecials added to enable/disable new
    flags. (C.A.)
								01-AUG-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : __is_rfc822_header routine modified to 
    enable accurate recognition of possible start of a real RFC822 header.
    Also a minor bug fix to correctly handle "X-like" extensions. (C.A.)
								28-JUL-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : __fmt_x400 routine modified to handle
    also complex "Personal Name" (X.400) cases, where Surname, Givenname and
    Initials are merged into a single field. __fmt_x400_keys new routine added
    to translate numeric X.400 labels to canonical format. (C.A.)
								28-JUL-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : routines __rfc822_quote, __fmt_decnet,
    __fmt_smtp and __to_rfc822 modified to handle correctly complex RFC822
    addresses special characters quoting. (C.A.)
								24-JUL-1997


  * [.IMAP.ANSI.C-CLIENT]ENV_VMS.C : The Date field generated on an outgoing 
    message now has correct timezone details included. Previously, due to 
    restrictions in VAX C, the code has been written to always assume GMT.  
    Now, the timezone is determined from the system wide logical name
    SYS$TIMEZONE_DIFFERENTIAL. This is defined if OpenVMS 6.x or greater is
    running and if it has been configured via @sys$manager:utc$configure_tdf;
    Otherwise it should be defined manually as the number of seconds offset from
    GMT (prefixed by + for east and - for west). E.G. "+3600" = GMT + 1 hour.
								18-JUL-1997

  
PINE Changes
------------

  * [.PINE]PINE.H : Modified the version string to reflect the final release
								04-AUG-1997

  * [.PINE]INIT_VMS.C : Modified to apply a patch from washington.edu.
								17-JUL-1997


3.91 BETA 13 - CHANGES SINCE 3.91 BETA 12
-----------------------------------------

Summary of new features in this release
=======================================

  * DELETEing a mailbox is now implemented. All messages in the specified
    folder are removed but the containing MAIL.MAI is left.

  * RENAME of a mailbox now implemented. This allows the automatic monthly
    rename of the sent-mail folder to work



Summary of major bugs fixed in this release
===========================================

  * Fixed source of crash when appending or sending mail

  * Fixed bug in handling of multiple postponed messages.

  * Fixed some bugs in header address rewriting.


General Changes
---------------

  * CCLIENT_SETUP.COM : Added a missing definition for DEFSYS to the
    CCLIENT_SETUP.COM procedure.
								9-MAY-1997

  * SERVICE_SETUP.COM : The MULTINET CONFIGURE line written to the config was
    incorrect in two places. Also added missing close quote.
								24-APR-1997


C-CLIENT Changes
----------------

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the DELETE mailbox functionality
								16-JUL-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed up another little bug in the
    address rewriting routine _-fmt_smtp. It was not searching for an '@'
    purely outside of brackets. Fixed this by using the stritem routine rather
    than strbreak.
								28-MAY-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Before PINE calls OPEN, CREATE or APPEND
    it calls the ISVALID routine to see whether the folder exists. We also do
    this within the OPEN and CREATE routines and these calls are unnecessary.
    They were removed. Strictly they are also unnecessary in the APPEND command
    but PINE presses ahead with an append operation even if the folder does not
    exist This causes a later 'imap append validity confusion' error. SO the
    check has been left in APPEND. At some stage, I'll try to work out why this
    happens (may be a bug in the original PINE code).
								23-MAY-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed up a formatting bug in the
    __fmt_smtp routine. A counter was off by one and resulted in the @ sign
    being included within quotes and the address truncated.
								23-MAY-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed up a bug in the __fmt_smtp address
    rewriting routine. It failed to detect the prescence of '@' in the address
    due to calling the wrong function. As a consequence, it added the host name
    in again.
								21-MAY-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed up a bug in the code that deletes
    an item from the linked list of 'empty' mailboxes. It was in fact deleting
    all subsequent mailboxes in the list rather than just the current one.
								21-MAY-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Incorporated the scanning of the list of
    'empty' mailboxes into the routine that scans the folders in a mailfile so
    that the calling routines need not take special action to deal with thim.
    As a consequence, simplified some of the other scanning routines and
    changed the format of the folder pattern structure by adding a new field.
								21-MAY-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Made the FIND ALL.MAILBOXES * command
    search the special list of 'empty' mailboxes so that the list of mailboxes
    so returned is consistent with the one that the 'mailbox_exists' routine
    checks. Previously, this could cause trouble if a CREATE'd mailbox was
    deleted and then recreated in the same session.
								21-MAY-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Implemented the rename mailbox function
    so that monthly saving of the sent-mail folder works.
								16-MAY-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Selection of transport name was faulty.
    Corrected the operation of the __transport_name() function. Thanks to Ian
    Miller for spotting this.
								29-APR-1997

3.91 BETA 12 - CHANGES SINCE 3.91 BETA 11
-----------------------------------------

Summary of new features in this release
=======================================

  * Support for sending mail via MULTINET SMTP and via the freeware package
    VMS-SENDMAIL.

  * Support for RFC822 headers at the end of the text body, via the new logical
    name "CCLIENT_HEADERS_ATEND".

  * Support for TCPWARE in the SERVICE_SETUP.COM procedure.

  * Support for RFC1405 local format addresses, when DECnet addressare mapped
    to internet format.

  * New IPOP3D_SETUP.COM procedure to define logical names for the IPOP3
    server.

  * New CCLIENT_SETUP.COM module to define logical names that control the
    C-CLIENT operation.

  * New VMSBUILD option (NOTCP) to specifically select NO TCP support

  * New VMSBUILD option (COMPILE-ONLY) to specifically select compilation only
    (no link phase). Link may be done separately with LINK-ONLY option

  * New logical name CCLIENT_MAILFILE_PURGE_RECLAIM; if defined, each mailbox
    close operation will perform a purge of the WASTEBASKET folder and a
    reclaim of deleted messages/bytes.

  * Additional RFC822 headers recognized

  * Where VMS MAIL headers are rewritten, continuation lines are inserted if
    necessary for long lines.

  * Separate directories for VAX and ALPHA objects and executables during the
    build. Building for VAX no longer destroys the objects/executables for
    ALPHA, and vice versa.


Summary of changes that may affect configurations
=================================================

  * INSTALL.COM has been modified to expect new logical names IPOP3D_DIR and
    IPOP3D_DIR. The IPOP3D executable is now copied to this location rather
    than to IMAPD_DIR.

    Implications:
	* Check that the IPOP3 logicals are defined before running INSTALL.COM
          to update the system.

  * A FIND ALL.MAILBOXES command no longer displays the true folder name to
    which the INBOX name maps. This is to prevent clients from displaying
    the same folder under two different names.

    Implications:
	* Check the .MAILBOXLIST file for all users and remove any reference
          to the real name of the INBOX folder (which is NEWMAIL unless
          redefined via the logical name CCLIENT_INBOXFOLDERNAME).

  * A mailbox close does not now perform an automatic purge/reclaim on the
    mailfile. Define the new logical name CCLIENT_MAILFILE_PURGE_RECLAIM (any
    value) to restore this behaviour.

  * A number of the IMAPD_xxx logical names which were not exclusive to the
    IMAPD daemon have been renamed to CCLIENT_xxx to more accurately reflect
    the fact that they affect anything using the C-client library.

    Implications:
	* Check configuration logical names and convert to the new names
	* Check IMAPD_SETUP.COM and (new) CCLIENT_SETUP.com procedures
 	* Ensure CCLIENT_SETUP.COM is called at system startup


  * DECNET Addresses are now mapped according to the RFC1405 standard and
    an optional DECnet-to-SMTP relay address may be included. A new logical
    name "CCLIENT_GW_MAIL11" optionally defines this relay. The new logical
    name "CCLIENT_NORFC1405" can be used to restore previous behaviour.

    Implications:
	* Ensure that the new address syntax is correct for your SMTP server.
	  if not, consider using the old syntax or defining the
          CCLIENT_NODE_xxx logicals to perform mapping.


  * Due to PINE (and VMS MAIL) being picky about the case of folder names, the
    case-insensitivity of folder names has been removed. Folder names ARE now
    case-sensitive. The special name INBOX remains case insensitive.

    Implications:
	* Check that subscribed folder names in the .MAILBOXLIST file for each
	  user match the case of the folder name in the corresponding mail.mai
	  file. Any that do not should be converted by manually editing the
	  .MAILBOXLIST file.



Summary of major bugs fixed in this release
===========================================

  * The potential for ACCVIO's during PINE startup has been reduced.

  * Spaces around VMS MAIL addresses are now stripped off before rewriting them
    into RFC format. Separators between addresses are also properly handled.

  * Rewriting of non-SMTP addresses better handles the various formats found
    in VMS MAIL.

  * The append routine no longer aborts when a NULL flags specification is
    passed.

  * Creation of a mailbox in a non-existent subdirectory now properly creates
    the subdirectory first.

  * Use of an empty mailbox no longer causes an IMAPD or PINE crash when
    the mailbox is pinged. Instead, it correctly returns zero messages.

  * When setting new mail count, make sure we don't go negative to avoid
    large newmail counts caused by wraparound.

  * Address rewriting of some DECnet addresses no longer aborts when compiled
    with VAX C or GNU C.



Change History
==============

General Changes
---------------

  * INSTALL.COM : Source of executables now taken from the architecture
    specific executable directory.
								17-APR-1997

  * AAAREADME.TXT : Added a new section summarizing all logical names used
    by the software.
								17-APR-1997

  * AAAREADME.TXT : Added a nore about the COMPILE-ONLY option to VMSBUILD
								17-APR-1997

  * BUILDKIT.COM : New procedure added which will build a binary-only kit for
    distribution. A number of options are provided to control how the kit is
    built. Thanks to Claudio Allocchio for the procedure.
								16-APR-1997

  * AAAREADME.TXT : New NOTCP option documented; this specifically selects a
    build without TCP support.
								16-APR-1997

  * INSTALL.COM : Now copies the IPOP3D server to the place specified by the
    IPOP3D_EXE logical; MTEST is copied into PINE_DIR rather than IMAPD_DIR.
								16-APR-1997

  * IPOP3D_SETUP.COM : Added this procedure to define the logicals for the
    IPOP3 server. It needs to be tailored for local use and then called from
    system startup.
								16-APR-1997

  * PINE_SETUP.COM : Added example of the PINE_SENDMAIL_QUEUE logical name for
    supporting the direct interface to MULTINET_SMTP or VMS-SENDMAIL.
								16-APR-1997

  * AAAREADME.TXT : Added details of configuration for use with MULTINET
    SMTP and VMS-SENDMAIL.
								16-APR-1997

  * CCLIENT_SETUP.COM : Added details of the new logical name
    CCLIENT_MAILFILE_PURGE_RECLAIM.
								14-APR-1997

  * AAAREADME.TXT : Re-organised descriptions of mail servers to be more
    geenric, with specific server details in separate sections.
								14-APR-1997

  * CCLIENT_SETUP.COM : new module which contains new logical names (more
    precisely, those renamed from the IMAPD_xxx suite) which control the
    actions of any application using the c-client library.  These logical names
    have the form CCLIENT_xxx. Configurations should be changed to use these
    new logical names!
								20-MAR-1997

  * IMAPD_SETUP.COM : Removed those logical names which were not specific to
    the IMAPD daemon, renamed them to CCLIENT_xxx, and placed them into the new
    setup file CCLIENT_SETUP.COM.
								20-MAR-1997

  * IMAPD_SETUP.COM : Added example of the IMAPD_GW_X400 logical.
								21-FEB-1997

  * AAAREADME.TXT : Revised section on address conversions to bring it into
    line with new X400 stuff and new parsing code.
								21-FEB-1997

  * AAAREADME.TXT : Added a section on reporting problems and what sort of
    detail is required.
								21-FEB-1997

  * AAAREADME.TXT : Updated with details of RFC1405 conformance and add info
    about the IMAPD_HEADERS_ATEND logical name.
								14-FEB-1997

  * IMAPD_SETUP.COM : Updated examples on address mappings to be clearer and to
    include detail on the IMAPD_GW_MAIL11 logical.
								12-FEB-1997

  * AAAREADME.TXT : Added note about need for DEC patch to C RTL for certain
    combinations of DEC C compiler and OpenVMS versions.
								6-FEB-1997

  * VMSBUILD.COM : Add a new build option NOTRACEBACK to allow the generation
    of images that may be INSTALL'ed with privileges. Thanks to Claudio Allocchio
    for the suggestion.
								30-JAN-1997

  * AAAREADME.TXT : Rewrote section on configuration files.
								30-JAN-1997

  * AAAREADME.TXT : Added a new section describing how to set up the network
    servers over the TCPWARE stack. Thanks to Curtis Williams for the
    information.
								30-JAN-1997

  * AAAREADME.TXT : Added a note about the required header file NETLIBDEF.H if
    building with NETLIB support. It's not necessarily there if NETLIB was
    installed as part of another MADGOAT product. Thanks to Clive Mcdowell for
    spotting this.
								29-JAN-1997

  * AAAREADME.TXT : Added info about potential problems when the same folder is
    opened by two different sessions at the same time. Essentially, this is not
    allowed!
								29-JAN-1996

  * AAAREADME.TXT : Added more info on folder-collections, showing how to
    display all folders in the default MAIL.MAI file rather than just INBOX.
								28-JAN-1998

  * SERVICE_SETUP.COM : Now includes rudimentary support for the TCPWARE
    network stack. Thanks to Curtis Williams for the information.
								28-JAN-1997

  * SERVICE_SETUP.COM : Miscellaneous changes to clean up
								28-JAN-1997

C-Client Library Changes
------------------------

  * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Object modules and executables are now
    placed in an architecture specific directory to avoid problems when the
    software is built for multiple architectures in the same cluster.
								17-APR-1997

  * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Added the COMPILE-ONLY option to
    suppress the link phase. Incompatible with the LINK-ONLY option.
								16-APR-1997

  * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Added the NOTCP option to build without
    TCP support.
								16-APR-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the match_folders routine to
    suppress the display of a folder name if it is actually the real name
    of the INBOX folder. This is to prevent clients displaying the same folder
    under two different names and causing confusion.
								16-APR-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed a bug in the DECnet nodename
    mapping routine which failed under VAX C or GNU C but was fine under DEC C.
    The problem was caused by a NULL pointer passed to sprintf in a situation
    similar to this:
        sprintf(output,"%.*s", n, string)
    if string is NULL and n is ZERO, nothing should be output and sprintf
    should not try to access the NULL parameter. In DEC C it doesn't but in VAX
    C and GNU C it does. Changed the NULL pointer to be a pointer to a NULL
    string instead.
								15-APR-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Improved parsing of local-part addresses
    when rewriting an SMTP format address to better handle embedded quotes that
    are not \ prefixed.
								15-APR-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added checks for additional RFC822
    headers to the __is_rfc822 routine. Also added a more general check for
    extension headers. Thanks to Claudio Allocchio for the updated list of
    headers and code fragments.
								12-APR-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Updated the mailbox close routine to
    perform a purge/reclaim only if the logical name
    CCLIENT_MAILFILE_PURGE_RECLAIM exists. This is a change to previous
    behaviour.
								12-APR-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Changed some logical names from IMAPD_xx
    to CCLIENT_xx where the function is specific to the c-client library (and
    hence affects all appications) rather than specific to the IMAPD server.
								21-MAR-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Updated the address rewriting mechanisms
    to better handle addresses containing quotes and quoted characters.
								20-MAR-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Updated the 'stritem' routine to allow
    the specification of a set of terminating characters.
								19-MAR-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the 'strbreak' routine, similar to
    strpbrk, which searches a string for one of a set of characters.
								19-MAR-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Extensively restructured and debugged
    the address rewriting code. It now seems to deal correctly with a wide
    range of different address styles that can appear in FROM:, TO: and CC:
    fields of VMS MAIL (though it's still a long way from being perfect).
    Thanks to Claudio Allocchio for a useful testbed of x400 and other
    messages.
								20-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the address scanning routines
    to deal with embedded quotes and '\' quoted characters.
								20-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Discovered a major problem with the
    'search' function. It doesn't work for all strings. rather than rely on it
    further, added a new routine 'strfind' which is similar to 'strstr' except
    that (a) it is case-insensitive and (b) the string being searched is not a
    null terminated string (length is a separate parameter). Changed all
    references to 'search' into 'strfind' in VMS_MAIL.C where feasible.
								20-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : First attempt at adding support for
    X.400 syntax received via the MRGATE. Thanks to Claudio Allocchio for the
    basic idea and code fragments.
								18-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Updated the address parser to handle
    properly spaces and commas as address separators, allowing for the
    presence of quotes around all or part of the address.
								18-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : First attempt at adding support for
    RFC822 headers appearing at the end of the text body. The new logical name
    "IMAPD_HEADERS_ATEND" may be defined to the EXACT line used to separate
    these headers from the preceding text body. If this is defined and no
    headers are found, then we revert to the VMS MAIL headers.
								14-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Replaced a number of string concatenation
    operations by using the sprintf routine to do it more cleanly.
								14-FEB-1997
								
  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added a check on the length of an address
    line so generated when rewriting VMS MAIL headers. If it's getting too
    big, use a continuation line in the RFC approved manner.
								14-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added a new logical name
    "IMAPD_NORFC1405" to cause nodename mappings in the default case (no node
    mapping logicals defined) to revert to the old format.
								14-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added code to strip leading and trailing
    blanks form each VMS MAIL address before rewriting to RFC format. This
    prevents spurious spaces appearing in the converted address.
								14-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Restructured the VMS MAIL headers address
    rewriting code. The old way was getting messy and hard to follow.
								13-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Small bug was detected in the parsing of
    the VMS MAIL FROM: field, which resulted in an extra space appearing after
    the name. caused by over-zealous pointer auto-incrementing. Now fixed.
    Thanks to Claudio Allocchio for spotting this.
								12-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Encoding of DECnet address is now in
    RFC1405 format, if no other node mapping can be determined from logical
    names. The name of the mail relay is determined from the new logical
    name IMAPD_GW_MAIL11. Thanks to Claudio Allocchio for the suggestion and
    code modification.
								12-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Previous attempt to fix up the problem
    of negative new mail counts had a comparison reversed. Corrected this.
								10-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Simplified the building of the TCP
    support module. We now name the TCP modules to include the name of the
    stack they support (TCP_VMS_NETLIB.C, TCP_VMS_MULTINET_C, TCP_VMS_NO.C).
    This greatly simplifies the build procedure.
								7-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : In a few places, strncpy and strncat
    had been used without being followed by the addition of a null byte. This
    lead to some unterminated strings being used and was (part of) the cause of
    mysterious aborts.
								6-FEB-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Discovered that the main PINE routine
    is fussy about folder name case. Our attempt to lowercase everything was
    incompatible with this. As a result, the code to lowercase all mailbox
    names has been removed to avoid conflict. This now means that all mailbox
    names will be mixed case. The foldername part will be in the case in which
    VMS MAIL stores it (and you CAN have separate upper and lower case
    foldernames in VMS MAIL).  This will make it more likely that a folder
    specification error will be made by a user, but what IS specified will
    behave consistently.
								4-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The APPEND function was not handling the
    case where the flags specification was a NULL pointer, which it can be if
    you look at the call from the mail_append routine in MAIL.C ! As a result,
    it aborted. Since we don't actually use this variable (VMS mail provides no
    way to action the flags anyway), all references were removed thus avoiding
    the problems associated with dereferencing a null pointer.
								3-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The CREATE function failed to properly
    create the subdirectory if it did not exist. This was due to a fault in the
    parsing of the mailfile to extract the directory specification; the NULL
    byte was not added to the end, leaving an unterminated string. Thus the
    directory name was bad.
								3-FEB-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The PING routine was not prepared to
    deal with a non existent mailbox and would crash. This would happen if a
    mailbox was empty or if it had just been created. Fixed up the code to
    handle it somewhat better.
								29-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added a check to the set new mail count
    routine so that the count is never decremented below zero. Because VMS MAIL
    keeps the count as an unsigned 16 bit number, this could result in large
    message counts around 65535.
								29-JAN-1997



PICO Changes
------------

  * [.PICO]VMSBUILD.COM : Object modules and executables are now placed in an
    architecture specific directory to avoid problems when the software is
    built for multiple architectures in the same cluster.
								17-APR-1997

  * [.PICO]VMSBUILD.COM : Added the COMPILE-ONLY option to suppress the link
    phase. Incompatible with the LINK-ONLY option.
								16-APR-1997

  * [.PICO]VMSBUILD.COM : Added the NOTCP option to build without TCP network
    support.
								16-APR-1997


PINE Changes
------------

  * [.PINE]VMSBUILD.COM : Object modules and executables are now placed in an
    architecture specific directory to avoid problems when the software is
    built for multiple architectures in the same cluster.
								17-APR-1997

  * [.PINE]VMSBUILD.COM : Added the COMPILE-ONLY option to suppress the link
    phase. Incompatible with the LINK-ONLY option.
								16-APR-1997

  * [.PINE]VMSBUILD.COM : Added the NOTCP option to build without TCP network
    support.
								16-APR-1997

  * [.PINE.OSDEP]SENDMAIL_VMS. : included modifications from Claudio Allocchio
    to support sending mail out via his VMS-SENDMAIL package and also via
    MULTINET SMTP, in addition to the existing methods.
								16-APR-1997

  * [.PINE]OS_VMS.C : In build_path, there was the possibility of a
    negative array subscript. Restructured the code to ensure this does not
    happen and cause an ACCVIO.
								17-FEB-1997

  * [.PINE]INIT.C : Applied official patch from U of W. Thanks to Claudio
    Allocchio for passing this on.
								14-FEB-1997

  * [.PINE]VMSBUILD.COM : Simplified the network interface selection code due
    to renaming of c-client network modules.
								7-FEB-1997

  * [.PINE]PINE.H : Updated the version string to reflect B12.
								29-JAN-1997

3.91 BETA 11 - CHANGES SINCE 3.91 BETA 10
-----------------------------------------

Summary of new features in this release
=======================================

  *  IMAP CREATE of an empty mailbox now works.

  *  IMAP APPEND to a mailbox now works correctly; with the limitation that the
     flags settings are not actioned. This allows messages to be copied between
     different systems.

  *  IMAP SUBSCRIBE/UNSUBSCRIBE mailbox commands are now fully implemented and
     maintain a mailbox subscription file which the FIND MAILBOXES command
     interrogates.

  *  Message flags (SEEN, ANSWERED, FLAGGED) are remembered across sessions as
     they are stored in the mailfile with each message. In particular, SEEN is
     no longer set based on whether or not it's in the INBOX folder.

  *  Full mailbox names are now properly supported (I.E. ---  ~/... format)

  *  Wildcard patterns are now supported on IMAP 'FIND' commands. Wildcard
     characters are '*' (match any string), '%' and '?' (both match any single
     character).

  *  PINE's FCC (File Carbon Copy) option and the postponed messages option are
     implemented.

  *  Improved caching of messages; access to messages is significantly faster
     now.

  *  Significantly less memory used to access messages.

  *  New logical names:
	IMAPD_INBOXFOLDERNAME	Defines an alternative to "NEWMAIL" for the
				name of the INBOX folder.

	IMAPD_AUTOFILEINBOX	If defined, seen messages in the INBOX are
				automatically filed (moved) to the folder named
				by this logical when the mailbox is closed.
				Leave undefined for compatibility with previous
				releases or with standard PINE/IMAPD
				functionality; define to "MAIL" for
				compatibility with VMS MAIL.

        IMAPD_MAILPROTOTYPE	Defined to a dummy mail file so that the CREATE
				function can 'borrow' its FDL description for
				the new file. Accessed if the user's own
				default mail file cannot be used. If neither
				can be accessed, the CREATE function will fail.

  * Support for CMU in the SERVICE_SETUP.COM procedure.

  * Many internal debugging and tracing facilities now incorporated into the
    VMS MAIL driver. At log levels above 20, these write detailed info to the
    logfile and also to the application's debug output). Note, use of this MAY
    generate invalid IMAP output so it is not advisable to set the debugging
    globally. Modules MUST be built with the LOGTRACE option otherwise the
    debug output is ineffective. For the network module, the option NETTRACE
    must be used.

  * Additional keywords recognized as the start of RFC822 headers in the VMS
    MAIL message.


Summary of changes that may affect configurations
=================================================

  * Prior to this release, FCC and postponement of messages did not work. This
    turned out to be because of the complexities of folder creation and
    validity checking. Now that this has all been fixed up, FCC and postponed
    messages work correctly. If these have been defined as recommended in
    versions B10 and earlier, the configuration may now be changed to specify
    any arbitrary folder(s).


  * Previously the IMAP FIND commands would ignore the wildcard mailbox
    pattern and just list all folders in the default mail file. Now, this
    pattern is not ignored and only matching folders are listed. Any client
    using the IMAP server should be checked to make sure that it specifies the
    appropriate wildcard mailbox format, otherwise a different set of mail
    folders may be displayed from before:

	FIND MAILBOXES pattern		Examines the contents of the mailbox
					subscription file, maintained by the
					SUBSCRIBE MAILBOX and
					UNSUBSCRIBE MAILBOX commands.

					NOTE that INBOX is always listed.


	FIND ALL.MAILBOXES pattern	Lists the folders contained in the
					specified MAIL.MAI file.

  
    The above may alter the list of folders which PINE displays by default.


Summary of major bugs fixed in this release
===========================================

  * PINE can now open multiple mailboxes (EG INBOX and the currently selected
    folder) without clashing in their use of global variables.

  * The IMAP SEARCH function now works properly.

  * Handling of updates to new mail count now more reliable.

  * IMAP MOVE/COPY function no longer returns inverted status

  * Crash dumps now get copied to SYS$LOGIN:.PINE-CRASH

  * PINE now works in a subprocess. Previously it would hang.


GENERAL CHANGES:
================

  * SERVICE_SETUP.COM : Added some fixes for the UCX stack setup. Thanks to
    Clive Mcdowell.
								23-JAN-1997

  * IMAPD_SETUP.COM : Updated with an example of IMAPD_INBOXFOLDERNAME logical.
								22-JAN-1997

  * AAAREADME.TXT : Rewrote some sections of the install and configuration
    notes to make them clearer.
								21-JAN-1997

  * AAAREADME.TXT : Added notes on the .MAILBOXLIST file maintained by the
    subscribe and unsubscribe mailbox commands.
								16-JAN-1996

  * AAAREADME.TXT : Added section numbering and a contents table.
								9-JAN-1997

  * AAAREADME.TXT : Updated some details on the restrictions and bugs that have
    been removed/fixed.
								8-JAN-1996

  * AAAREADME.TXT : Added note about how INBOX-PATH variable affects the
    handling of the INBOX folder.
								6-JAN-1996

  * AAAREADME.TXT : Added documentation on the IMAPD_AUTOFILEINBOX logical
    name.
								3-JAN-1997

  * AAAREADME.TXT : Added additional notes on CMU.
								2-JAN-1997

  * SERVICE_SETUP.COM : Add a rudimentary section for the CMU stack.
								2-JAN-1997

  * IMAPD_SETUP.COM : Updated with example of IMAPD_AUTOFILEINBOX logical name.
    Also added a note to each logical that can also affect either PINE or
    IPOP3D.
								20-DEC-1996

  * AAAREADME.TXT : Added info on MAXBUF sysgen parameter, more on debugging,
    info on upgrading an existing setup, and info on various considerations
    needed before setting up a network service.
								20-DEC-1996

  * AAAREADME.TXT : Updated info on CMU configuration
								11-DEC-1996

  * AAAREADME.TXT : Added some details on nodename mapping via logicals
								11-DEC-1996

  * AAAREADME.TXT : Added some notes on the debugging facilities
								10-DEC-1996

  * SERVICE_SETUP.COM : Fixed a silly bug caused by writing the wrong filename
    into the configuration procedure created. Also fixed missing 'file= ' spec
    in the UCX command.
								10-DEC-1996

  * VMSBUILD.COM : removed extra ']' from a directory spec.
								26-NOV-1996

C-CLIENT LIBRARY CHANGES:
=========================

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The append function was writing the
    message into the mail folder but not adding the transport prefix (EG
    "SMTP%.."). Added the ability to determine the prefix from the logical
    names and write the address in this format if one is found. Otherwise write
    the address as is.
								24-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : According to the callable mail
    documentation, a mail file may not contain more than 256 characters in a
    single record. However, recently encountered a message where one record was
    over 4000 bytes long. Can't handle this properly but added extra checks in
    the read routine to at least detect it when debugging is on (so we can see
    which message it is). Discovered that the mail status returns are not
    defined anywhere so, by trial and error, determined the status codes and
    defined them manually.
								24-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : A few cleanup changes to make the module
    compile without error on GNU C. Mainly mismatched parameter declarations.
								22-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]ENV_VMS.C : Added a cast to a use of cuserid() in
    order to make it compile error free under GNU C (the include files do not
    seem to define it as a function returning (char *) anywhere !
								22-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed a bug in the append routine that
    was writing out data beyond the stored headers. Corrected the code to use
    the size counter rather than expect the null string terminator (which isn't
    there!).
								22-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Changed the flag that says 'have been
    pinged' from an int to a bit and changed its name to 'pinged' rather than
    TotalMessagesCount.
								22-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Many minor cleanup changes.
								22-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The create/append functions were not
    behaving when the folder did not exist. This was because VMS has no concept
    of an 'empty' folder. Added some stuff to fake empty folders. Following
    this change, postponed messages and FCC work properly even when the folder
    does not exist.
								22-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : renamed a number of routines.
								22-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Added a long-standing missing /define
    for the name STDPROTO. This allows the higher level driver function to know
    that the standard prototype driver is the VMS_MAIL one. Without it, there
    is no prototype driver and things nose-dive. This particularly affected the
    mail_create routine; but seems to affect nothing else. Creating an empty
    mail file now works at long last.
								17-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added a 'vms_mail_folder_exists' routine
    to simplify various places where we want to know if the folder exists.
								17-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.H : Reduced the constant that determines the
    initial size of the mail stream LOCAL buffer. No real need to do so but it
    saves memory for smaller mailboxes.
								17-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the 'vms_parse_mailbox' routine
    to accept NULL for output buffers (for cases where we don't actually need
    the result).
								17-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the find_all routine to remove
    the specific check for 'POSTPONED-MSGS'. Matching changes to PINE have
    made it look for this folder using the standard find mechanisms so no need
    for a special check.
								16-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Combined routines to get information
    about the current message into a single general 'get message info'
    routine. This is faster and cleaner than having a separate routine for each
    item needed.
								16-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added single character wildcarding to the
    matchwild routine. Both '%' and '?' now match any single character.
								16-JAN-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Implemented the subscribe mailbox,
    unsubscribe mailbox, find mailboxes (which was previously equal to find
    all.mailboxes) commands. These maintain and use a mailbox subscription
    database file called SYS$LOGIN:.MAILBOXLIST (a simple text file).
								15-JAN-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Implemented the code to CREATE an empty
    MAIL file. This works by using FDL$GENERATE to get the format of an
    existing mail file (either the user's default mail file, or the file
    specified by the new logical name IMAPD_MAILPROTOTYPE) and then using
    FDL$CREATE to generate a new one. However, for some reason (not yet
    determined), the vms_mail_create routine never seems to get called by the
    application, and the status of a CREATE command is always OK.
								14-JAN-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Restructured VMS MAIL header parsing
    routines to be cleaner and work better.
								14-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMSIO.C : Removed the single character tracing code
    from the VMSIO.C module. It's too verbose for real debugging.
								13-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added 'chrcasecmp' and 'strcasecmp'
    function to allow case independent character and string equality tests.
								13-JAN-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the vms_mail_append routine. This
    implements the IMAP APPEND function and allows messages to be copied into a
    mailbox from the network.
								10-JAN-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Now that the message flags are picked up
    from the mail file itself, the NEW status of a message cannot be determined
    by its presence in an INBOX. This causes some confusion about whether the
    new mail count can be updated. Now, the new mail count is updated
    immediately that the message is read based on whether it's now seen but was
    not previously seen. This is handled within the vms_mail_update_status
    routine. It is folder independent.
								9-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : I believe that implementation of full
    mailbox name specifications is now complete so the ALLOWFULLMBXSPEC option
    has been removed and such specifications are always allowed everywhere now.
								9-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the ability to define the
    folder name to which INBOX maps. By default it is "NEWMAIL". An alternative
    folder may be specified by defining the logical name IMAPD_INBOXFOLDERNAME.
    Note that this controls only how the VMS_MAIL interface interpretes the
    mailbox name INBOX and has nothing to do with the setting of the PINE
    variable 'Inbox-Path'.
								9-JAN-1997

  * [.IMAP.ANSI.IMAPD]IMAPD.C : Removed the call to mm_exists() added to the
    IMAPD application a long time back since it was only added to compensate
    for what now turns out to be a missing call to mail_exists on the open
    routine (see below).
								9-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added a missing call to mail_exists()
    in the mail stream open routine, so that the application is correctly
    notified of the number of messages. 
								9-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Reworked the message caching yet again.
    Both headers and text body are now cached after the first read of a message
    from the mail file. Subsequent reads of the message (headers or text body)
    are taken from the cache. The cache is only flushed when the mail stream
    is closed.
								9-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed up a major bug in the SEARCH
    subfunctions. Each routine assumed that the message information had already
    been read into memory. It hadn't, so erroneous results were returned. Fixed
    this by ensuring that a fetchstructure is done before starting the search.
    A side effect of this is to introduce a long pause on the first search
    while the whole folder is read in. If no search is done, the closing of
    an INBOX takes longer because this reads in all messages in order to search
    for SEEN UNDELETED messages.
								8-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Sorted out some bugs with the message
    status flags maintenance. It now remembers the flags across sessions by
    using callable mail's flags field (marked and replied). Also pick up the
    new mail flag from the same place, so that messages can be truly flagged as
    new or seen, regardless of whether they are in the INBOX or not. Note that
    the documentation for callable mail does not mention that the NEW flag may
    be set or unset within callable mail - but it seems to work.
    NOTE: A side effect of this change is that the update_status routine has
    been implemented. This appears to be called for EVERY message in a folder
    when that folder is closed and results in a long pause if the folder
    contains many messages.
								8-JAN-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Reworked the folder listing code so that
    we can pass parameters to it (like a wildcard pattern). Also added
    rudimentary pattern matching (IE * is allowed anywhere). The output from
    the IMAP FIND commands now contains only mailbox names that match the
    pattern. Note that the mailfile portion of the pattern may not contain
    wildcards - only the foldername part. For example:

	*		}
        mail*		}  All are valid wildcard patterns
        *faq		}
       ~/mail/xyz*	}
        
    But:
	~/*/newmail	}  Invalid because the mail file part may not contain a
	~/mail*/jo*	}  wildcard

    Additionally, the mailbox name is now fully lowercased before passing it
    back to the application, INBOX excepted.
								7-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modularised and tidied up more code. No
    new features, it's just easier to follow in some places now.
								7-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added first attempt to retrieve and
    maintain the message flags (new, marked, replied etc.) in the VMS MAIL
    file. The current ones are now correctly displayed but PINE hasn't yet
    got the hang of updating them so it remembers them for next time.
    Implemented the vms_mail_update_status routine to do all this (which was
    there before but did nothing!). Also added a new routine to get the flags
    from the mailfile when it's first read. 
								7-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : If the INBOX (IE VMS NEWMAIL folder) had
    been open for some time, the newmail count it obtained when it started may
    no longer be accurate. Therefore when updated on closure of the inbox, the
    system's new mail count for the user might be incorrect. Fixed this up by
    obtaining the current new mail count just prior to updating it by the
    number of seen messages. This makes it as accurate as it can be within the
    normal timing windows of getting and setting it.
								6-JAN-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed up the 'is_rfc822' routine so that
    it does not assume null-terminated strings.
								6-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Renamed vms_split_message to be
    vms_read_message; used the LOCAL->buf structure as the temporary message
    buffer (also reduced its default size from 65000 to 25000 bytes); moved the
    caching into vms_read_message and removed a few unnecessary memory buffer
    copies. I hope this will make access to the message text quite a bit faster.
								6-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Removed the global message cache; made it
    local to the mailstream instead. This should remove the last set of
    potential conflicts between open mailboxes.
								3-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : added additional keywords that could
    indicate the start of RFC822 headers after the VMS MAIL ones:
    read-receipt-to and x-authentication. Also added test for headers normally
    associated with newsgroups, to deal with mail posted via a newsgroup.
								3-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Converted all mail and message context
    references either to local variables or to references to the LOCAL copies.
    Removed all the global versions and stuff relating to stacking and
    unstacking the context.
								3-JAN-1997


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Made the VMS_MOVE_FOLDER routine
    redundant by recoding other routines that call it to use alternative
    methods. This was necessary because it was the ONLY routine that did not
    have sufficient context info passed to it. As such, we needed to rely on
    global context, causing bugs galore. Now it's gone, all the context info can
    be stored and used from the mailstream LOCAL structure.
								3-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Begin to remove the use of globals
    for mail and message context. Started by initializing them into the LOCAL
    structure and passing the context as parameters to subsidiary routines
    where possible. The procedure vms_move_folder, which was added to allow
    PINE to do special things, is a problem because it has no means to obtain
    the original mail context, therefore we have to keep the global variable
    around until this is fixed.
								3-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : reworked the ping function so that
    the global 'TotalMessagesCount' is removed and becomes part of the
    LOCAL structure. Unexpected pings should not now mess up message counts
    for another mailstream. Removed all the related global variables.
								3-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Rewrote the vms_split_message routine to
    be more structured. Also remove dependence on null terminated strings so
    that mail messages may now contain null bytes without problems.
								3-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Removed all references to the global
    'Globalmailfile' as rewrites have made it redundant.
								2-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added more checking to the 'isvalid'
    routine and more debug tracing code.
								2-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Now keep the parsed mail file name and
    folder name in the LOCAL structure rather than reparsing it each time, also
    use the 'inbox' flag in the LOCAL structure correctly. The test for an
    inbox is no longer reliant on the folder name everywhere - this flag is set
    by the mailbox name parser and stored in the LOCAL structure. It is TRUE
    only when the mailbox name is "INBOX" or if the parsed result is the
    "NEWMAIL" folder in the default mailbox.
								2-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.H : Moved some defines from VMS_MAIL.C to
    here; also updated the VMSMAILLOCAL structure to include space for the
    parsed filename and foldername, the mail/message context and the count of
    current messages. Made provision for storing the cache here too.
								2-JAN-1997

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the ability to configure whether
    SEEN messages in INBOX are automatically filed away to another folder
    on closure. This is controlled by the logical name IMAPD_AUTOFILEINBOX. If
    not defined, messages are left in INBOX, otherwise they are moved to the
    folder specified by the logical name.
								20-DEC-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added more debugging code to various
    routines.
								20-DEC-1996


  * [.IMAP.ANSI.C-CLIENT]TCP_VMS.H : A problem with CMU has been noted
    whereby the value of the BUFLEN constant, at 8192, causes CMU to fail.
    First fix was to drop the value to 4096 but then realized it was actually a
    SYSGEN problem. The value of MAXBUF should be set to at least that of
    BUFLEN and, in any case, the recommended value for CMU is 8300 so put the
    value of BUFLEN back up to 8192. Thanks to Sterling Bjorndahl for spotting
    the problem.
								20-DEC-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Recognized additional keywords as the
    start of RFC822 headers following the VMS MAIL standard set. This helps to
    prevent problems when these headers appears as the first line of the RFC822
    headers. Ideally, we should add all known headers here, although it is
    likely impossible to cater for all possible 'X-...' headers. Thanks to Alan
    Flavin for noting this.
								19-DEC-1996

  * [.IMAP.ANSI.C-CLIENT]VMSIO.C : Fixed up a tiny bug whereby the format
    code for printing a status code in the logfile was set to '%0x08x' instead
    of '0x%08x'. This caused apparently incorrect status output. Non fatal to
    everyone though.
								10-DEC-1996

  * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : removed USELOGGING and MAILTRACE
    options, replaced them with NETTRACE and LOGTRACE.
								10-DEC-1996


  * [.IMAP.ANSI.C-CLIENT]TCP_VMSx.C : reworked the logging code slightly. It
    now requires compilation under the NETTRACE define. I couldn't make this
    work via debugging, as described for VMS_MAIL below, because the debug
    output recurses back into the tcp routines and causes problems. Added a
    DBGPRINT macro to make it easier.
								10-DEC-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : reworked the debugging code to use the
    mm_dlog facility. This causes debug output to go to PINE's debug file or to
    the IMAPD logfile and as unsolicited response codes to the client. Only
    printed if the code is compiled with the LOGTRACE option (which replaces
    the MAILTRACE). Added a DBGPRINT macro to make it easier.
								10-DEC-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : If the nodename mapping logicals were not
    defined, a bug caused the translation of node::user style of addresses to
    be reformatted into an invalid RFC address. This has been fixed.
								10-DEC-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : updated the chkstat routine to write
    the error message via mm_dlog if not aborting, rather than use fprintf.
								10-DEC-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed a major bug whereby the updating
    of the new mail count updated the wrong user. We hadn't added the parameter
    that specifies which user to update so it updated the current user. If that
    happened to be the IMAPD daemon running as SYSTEM, then SYSTEM's mail count
    got updated. It was OK within PINE because the current and intended user
    are the same. Thanks to David Mathog for spotting (and suggesting the fix
    for) that one.
								9-DEC-1996

  * [.IMAP.ANSI.C-CLIENT]NEWSRC.C : Fixed two problems.  a backup copy of the
    .newsrc file was being created with a name of .newsrc.old; as this is
    invalid on VMS, change the name to .newsrc-old.  Also deleted a previous
    copy of the backup so avoiding the accumulation of more and more versions
    of it over time.
								28-NOV-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The IMAP COPY function was returning a
    failed status even though the copy worked. This was due to an inverted
    status check on return from the call to vms_mail_message_copy. Fixed this
    up.
								26-NOV-1996


PICO CHANGES
============

  * [.PICO]OS_VMS.C : Attempted to make use of the POPEN and PCLOSE functions
    in DEC C (not available with VAX C) but ran into trouble with them not
    being recognized by the compiler (!) yes, that's right - they ARE
    documented but are NOT in the RTL (at least not with VMS 6.1!). So, instead
    I've ifdef'ed the code with a HAVEPOPENCLOSE name. Once we find out under
    what conditions they are available, the build procedure can be modified to
    define it accordingly. At the moment it is not defined at all.
								17-JAN-1997


PINE CHANGES
============

  * [.PINE]TTY_VMS.C : Installed patch to make PINE work when started from a
    subprocess (EG SPAWN PINE). Thanks to Phil Ottewell.
								22-JAN-1997


  * [.PINE]OS_VMS.C : When attempting to write the crash dump file, pine
    compared the struct stat elements 'st_dev' from two different calls (one
    from fstat and one from stat) for equality. Unfortunately, these are string
    pointers and strcmp should be used to test for equality. Having done this,
    we now get a crash dump!
								20-JAN-1997


  * [.PINE]SEND.C : Put back the code to deal with the POSTPONED-MSGS folder
    as all the changes made to folder handling should make this work (it does!)
								16-JAN-1997

  * [.PINE]OS_VMS.H : Changed the DF_MAIL_DIRECTORY from SYS$LOGIN: to null.
    Now all folder names should be treated as folders within the default mail
    file and found if they exist. Removes the need for a special check in the
    find all mailboxes routine of the c-client library (see above). However,
    I'm still not getting the composer's 'postpone' option to work. The debug
    trace shows the folder being found, but it's not being written.
								16-JAN-1997

  * [.PINE]MAILCMD.C : Managed to do away with the need for the special call
    to VMS_MOVE_FOLDER when saving a message to another mailbox. This was
    always problematic because the callable mail context variables were not
    available resulting in some messy (and buggy) fiddling about with global
    contexts. Now this is OK, we can remove the only routine that relies on
    globals for the message context and keep everything where it belongs, in
    the LOCAL structure of the mailstream.
								3-JAN-1997


  * [.PINE]PINE.H : Changed version string to reflect Beta 11
								26-NOV-1996

3.91 Beta 10 - Changes since 3.91 Beta 9
----------------------------------------

C-CLIENT LIBRARY CHANGES:
=========================

  * [.IMAp.ANSI.C-CLIENT]TCP_VMSL.C : Fixed a strange bug where the server
    code tried to accept a call from the wrong port, but only when the
    underlying stack was CMU. It worked fine on UCX and MULTINET. This appeared
    to be caused by the initialization of a socket structure to set up the port
    being corrupted. Couldn't find the bug specifically but re-ordered the code
    and it went away! I'll keep trying to find the underlying cause but for now
    it works (or seems to).
								22-NOV-1996

  * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Now that the TCP module is separate
    and includes it's own stack-specific headers directly, there is no need
    to add /include=(stackpath) to the compilation line. This makes all
    modules, with the exception, of the TCP_VMSx.C one, stack independent.
    Modified VMSBUILD.COM accordingly.
								20-NOV-1996

  * [.IMAP.ANSI.C-CLIENT]OS_VMS.H : Reworked headers to minimize conflicts.
								19-NOV-1996

  * [.IMAP.ANSI.C-CLIENT]OS_VMS.C : Remove the include of TCP_VMS.C as part of
    the separate compilation changes. Also reworked the header files to try to
    minimize conflicts.
								19-NOV-1996

  * [.IMAP.ANSI.C-CLIENT]TCP_VMSx.C : Separated the TCP modules into separately
    compilable ones so that socket headers can be made specific. This avoids a
    lot of problems caused by incompatible header files.
								19-NOV-1996

  * --- C-CLIENT library now compiles under GNU C, not entirely cleanly, but
    it works!
								18-NOV-1996

  * [.IMAP.ANSI.C-CLIENT]VMSIO.C : Added missing declaration of
    tcp_server_init routine.
								18-NOV-1996

  * [.IMAP.ANSI.C-CLIENT]*.* : Miscellaneous changes to make the VMS portions
    of the code compile more cleanly under GNU C. Still getting warnings but
    it works now. The following changes were made:
       env_vms.c	Add include unistd.h to declare cuserid
       log_vms.c	added casts to structure initialization in
			server_login() to fix pointer compatibility.
       os_vms.c		Added ifdef around socket includes for GNU C
			and added a struct definition for timeval as GNU C
			finds it in two incompatible places otherwise.
       vms_mail.c	many pointer mismatches fixed up, and conflicting
			static/non-static declarations matched up properly.
								18-NOV-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_TCPL.C : Add support for GNU C.  GNU C does not
    recognize some non-standard definitions in netlibdef.h (variant struct and
    variant union). Got around this by copying the declarations we need inline
    (still use the real include if not GNU C).
    This makes the GNU C support prone to breaking due to changes in a future
    release of NETLIB (This version is 2.0J) but is a small price to pay if it
    works.
								18-NOV-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The VMS MAIL headers include SUBJ.
    However, the rfc822 parser does not recognize this as a subject field, so
    pine's index display and headers on messages show a blank field for the
    subject of any message received via VMS/DECNET mail. Fixed this by
    rewriting the 'SUBJ' header as 'Subject'.
								15-NOV-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the VMS mail to RFC822 header
    conversion routines to properly deal with the unquoted '@' form of address
    introduced in VMS 6.2 (and available on earlier VMS via unofficial patches
    to VMS MAIL).  Now an address of the form 'user@system' is left untouched.
								15-NOV-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : When a message has been sent and received
    locally via VMS MAIL, the mail headers on the message are simply the
    standard VMS MAIL headers (FROM, TO, CC, SUBJ).  The code parses these
    and converts addresses to an RFC822 syntax. However, the lack of a date
    field causes some problems when PINE wants to display the date in the
    folder index list. Got around this by extracting the date of receipt of
    the message and adding a date field with this date in it. Also store the
    date in the elt.
								14-NOV-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the vms address parser to
    recognize the form  xyz%"....."  and just return the ..... part. This
    should deal with MOST (not all) smtp style addresses that VMS sees in its
    FROM, TO and CC headers. There are still a few formats that will return
    funny address (EG: DSN%xxxxx) but it's a good start. I may make it possible
    to use logicals to remap the addresses based on the XYZ part later.
								14-NOV-1996


  * [.IMAP.ANSI.C-CLIENT]OS_VMS.C : ifdef'ed the include of some of the network
    files to do different things for GNU C (which doesn't handle the
    <xyz/name.h> syntax the way we want).
								7-NOV-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed a few odd problems that were not
    spotted in time for the B9 release.
								4-NOV-1996


PICO CHANGES
============

  * [.PICO]OS_VMS.C : A few mods to declarations to clean up compiler
    warnings on mismatched types.
								18-NOV-1996

  * [.PICO]COMPOSER.C : Removed incorrect filename separator character from
    a filename. Due to unix/vms filename differences. Thanks to Sterling
    Bjorndahl.
								12-NOV-1996

  * [.PICO]ATTACH.C : Allowed the characters '[' and ']' in the filespec of
    an attachment under VMS. Thanks to Sterling Bjorndahl.
								12-NOV-1996
  
  * [.PICO]DISPLAY.C : Added a 'movecursor' call which seems to fix up a
    display problem. Maybe a bug in VAXCRTL? Thanks to Sterling Bjorndahl.
								12-NOV-1996

  * --- PICO now compiles, error free, with GNU C !! Still a few warnings to
    clear up.
								12-NOV-1996

  * [.PICO]ANSI.C : Added an include for gnu_hacks header so that we can
    use the special GNU C GLOBALDEF macro (globaldef isn't understood by
    GNU C). Thanks to Sterling Bjorndahl. Also slightly reworked the
    ifdef sequence to make it clearer.
								12-NOV-1996

  * [.PICO]EDEF.H : Added an include for gnu_hacks header so that we can
    use the special GNU C GLOBALREF macro as globalref isn't understood
    by GNU C. Thanks to Sterling Bjorndahl. Also slightly reworked the ifdef
    sequence to make it clearer.
								12-NOV-1996


PINE CHANGES
============

  * [.PINE]VMSBUILD.COM : Now that the TCP module is separate and includes it's
    own stack-specific headers directly, there is no need to add
    /include=(stackpath) to the compilation line. This makes all modules, with
    the exception, of the TCP_VMSx.C one, stack independent. Modified
    VMSBUILD.COM accordingly.
								20-NOV-1996

  * [.PINE]VMSBUILD.COM : It appears that the GNU C link loses some global
    information if the modules are retrieved from a library. This caused the
    initialization of the mail drivers to fail weirdly.  Modified VMSBUILD.COM
    to link the modules explicitly rather than fetch them from the library. It
    now appears to work properly.
								18-NOV-1996

  * --- PINE now compiles reasonably cleanly under GNUC !!
								18-NOV-1996


  * [.PINE]TTY_VMS.C : Corrected definition of get_windsize() function to match
    declaration.
								18-NOV-1996

  * [.PINE.OSDEP]SENDMAIL_VMS. : Added some missing function declarations
    to get a cleaner compile under GNUC.
								18-NOV-1996

  * [.PINE]OS_VMS.C : Various mods from Sterling Bjorndahl incorporated;
    fixes up a problem writing the crash dump and gives a cleaner compilation
    under GNU C.
								18-NOV-1996

  * [.PINE]OS_VMS.H : Added suitable #ifdef so that both GNUC and DEC C
    are flagged as ANSI compilers. Thanks to sterling Bjorndahl for the 
    GNU C mods.
								18-NOV-1996

  * [.PINE]PINE.H : Updated the version string to reflect Beta10.
								4-NOV-1996


GENERAL CHANGES
===============

  * AAAREADME.TXT : Added a short note to the stack information about
    configuring CMU to fire up the imapd server when a call comes in.
								22-NOV-1996

  * VMSBUILD.COM : Removed all remaining references to stack specific includes
    and added the OPTIMIZE option. Optimization is off by default because it
    can cause erratic behaviour, due to optimizer bugs. This option allows it
    to be switched on if you are sure that your compiler's optimizer is ok.
								21-NOV-1996

  * INSTALL.COM : Added this procedure to copy executables to the right place,
    after first checking that the necessary logical names are defined.
								20-NOV-1996

  * AAAREADME.TXT : Added new RESTRICTIONS and PRE-REQUISITES section; fixed a 
    few typos and missing definitions in the setup section.
								20-NOV-1996

  * PINE_SETUP.COM : The f$getsyi("ARCH_NAME") lexical was not present prior
    to VMS 5.5 so inserted a check for this. Default to "VAX" if earlier.
								12-NOV-1996

  * IMAPD_SETUP.COM : The f$getsyi("ARCH_NAME") lexical was not present prior
    to VMS 5.5 so inserted a check for this. Default to "VAX" if earlier.
								12-NOV-1996


  * VMS_GNUC_LINK.OPT : Create a linker options file for GNU C support
								10-NOV-1996

  * USER_SETUP.COM : Added a procedure to create a user under which the
    servers can run. Thanks to Ian Miller of softel for the UCX information.
								10-NOV-1996

  * SERVICE_SETUP.COM : Added a procedure to create the TCP service
    configuration for the IMAPD daemon. Thanks to Ian Miller of softel for the
    UCX information.
								10-NOV-1996

  * AAAREADME.TXT : Updated documentation with better installation
    instructions. This time, included more comprehensive notes on setting up
    the underlying network stack and services.
								7-NOV-1996


  * VMSBUILD.COM : Rewrote the procedures to be cleverer at detecting the
    compiler and network stack to use automatically, and to check the network
    and compiler selection options for validity a lot better. Also, first stab
    at incorporating support for GNUC (very difficult as it wont recognize some
    of the NETLIB declarations and has trouble finding socket related header
    files).
								7-NOV-1996

3.91 Beta 9 - Changes since 3.91 Beta 8
---------------------------------------

C-CLIENT LIBRARY CHANGES:
=========================

  * [.IMAP.ANSI.IMAPD]IMAPD.C : Thanks to Matt Madison of TGV/CISCO, finally
    stomped on the accursed bug that prevented the server from accessing the
    network when compiled with VAXC. It turns out that network applications
    must set up their channels to the network BEFORE any other C RTL I/O. I
    thought this had been done but forgot that there's a call to fopen() to set
    up the logfile BEFORE the call to openio() to initialize the network. This
    was done so that openio() could log its actions. Now that I've moved things
    around, the server works but logging from within openio() is no longer
    possible.
								1-NOV-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Implemented mail_move and mail_copy
    functions.
								1-NOV-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed a minor bug in VMS_MAIL which
    prevented calls to 'islower' rtl function being found with VAXC. This is a
    macro under VAXC and so needs an include of ctype.h. Added it.
								31-OCT-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added code to make the mail_fetchfast
    routine work, Quick and dirty, it just calls mail_fetchstructure.
								31-OCT-1996


  * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Added two additional options:
    MAILTRACE: to compile in the vms mail tracing code, and
    ALLOWFULLMBXSPEC: to compile in support for arbitrary mailboxes specified
    using the ~ format. These options are available only for the C-client
    build procedure.
								31-OCT-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : added some additional tracing code
    to follow the mail file/folder open and close actions. This is
    conditionally compiled in when /DEFINE=MAILTRACE is specified at compile
    time. trace output goes to stderr.
								31-OCT-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : PINE keeps INBOX open all the time so
    it is necessary to support several independent open streams (at least two
    for IMAPD and three for PINE).
    The existing code doesn't support this and we get very confused if folders
    are opened and closed successively. Attempt to provide better support for
    this by allowing a small stack of context pointers.
    This should now allow PINE to switch properly between INBOX (which is
    kept permanently open), a folder list, and any other folder without
    disaster. Just to play safe I've made room for 5 stacked sets of context
    info and added checks for stack over and underflow. I may have broken
    the inbox ping function however as I'm still not sure how this is supposed
    to work (see KNOWN BUGS above).
								31-OCT-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the mail_close routine to NOT
    move \SEEN messages from NEWMAIL to MAIL. Although this is how VMS MAIL
    does it, it is NOT how PINE on other systems works and is less intuitive.
    NOTE that this also applies to the IMAPD and IPOP3D servers - messages
    remain in the INBOX unless deleted.
								30-OCT-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added date parsing, even for non-rfc822
    format messages by calling the MAIL$ routine to get the date. PINE still
    seems unable to display the date in the folder index for non RFC822
    messages though.
								30-OCT-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Made the support for '~' format mailboxes
    conditional on the ALLOWFULLMBXSPEC define. This is because full
    implementation of this is some time away - it needs a rewrite of this
    module and some features we need are not present in callable mail (create
    empty mailbox, append to folder).
								30-OCT-1996

  * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Added /include=[] when the null tcp
    stack was selected.
								29-OCT-1996

  * [.IMAP.ANSI.C-CLIENT]TCP_VMSN.C : Fixed a bug in the null tcp stack support
    which had a 'then' after an 'if' !
								29-OCT-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the logical name
    MAIL$INTERNET_PROTOCOL (usually defined in VMS 6.2)  as one of those
    examined to define the SMTP transport when sending a message. The
    logical name PINE_MAIL_PROTOCOL overrides this.
								9-OCT-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Improved the VMS MAIL header parsing
    code which remaps based on logical names to take into account any
    namespace that appeared (this is for DECnet/OSI addressing).

    An address of the form:			(DECnet Phase V format..)
        NAMESPACE:.NODENAME::USER

    is now converted to the form:
        USER@ADDRESS

    where ADDRESS is obtained, in order, from one of the following:
        - Translation of the logical name  IMAPD_NODE_'namespace'_'nodename'
        - The original NODENAME


    An address of the form:			(DECnet Phase IV format..)
        NODENAME::USER

    is now converted to the form:
        USER@ADDRESS

    where ADDRESS is obtained, in order, from one of the following:
        - Translation of the logical name  IMAPD_NODE_'nodename'
        - The original NODENAME


    An address of the form:			(No DECnet format..)
        USER

    is now converted to the form:
        USER@ADDRESS

    where ADDRESS is obtained, in order, from one of the following:
	- Translation of the logical name  IMAPD_NODE
        - The current hostname

    NOTE:
      This affects messages returned by the IMAPD and IPOP3D daemons, and local
      mail read by PINE.

    NOTE:
      This is a CHANGE from the previous beta release, where the namespace
      was IGNORED. If you had namespaces before and used logicals of the form
      IMAPD_NODE_'nodename' to remap addresses, you MUST now use logicals of
      the form IMAPD_NODE_'namespace'_'nodename' to specify the mapping.
      For most users, this is probably just a matter of adding the word LOCAL
      into the logical name (since LOCAL is the most common default namespace).
								3-OCT-1996


  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Corrected the 'is_valid' routine to
    return T only if the mailbox name parses correctly. previously, this
    routine always returned T (and, for some reason, called gethostname!).

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : More rewrites to tidy up the handling
    of mailboxes. In particular, defined the syntax of a mailbox more
    precisely. The following are accepted:

         INBOX		--> selects [default mail file, NEWMAIL folder]
         folder		--> selects [default mail file, 'folder']

         ~/folder	--> selects [mail file in login directory, 'folder']
         ~/subdir/folder--> selects [mail file in relative subdir, 'folder']

    The file used is always called MAIL.MAI and must existed in the specified
    directory. Mail files with any other name are not accessible.

    This change brings the mail folder syntax into line with unix imapd servers
    and prevents users accessing any mail folder outside their own directory
    tree (a big problem with previous releases!)

    NOTE: This change affects the syntax of a folder collection. previously the
    form SYS/[] was allowed and this found all folders in the default mailbox.
    In fact the SYS syntax was a dummy and ignored. Now it MUST NOT be present
    due to the redefinition of mailbox syntax.

    NOTE: a syntax involving any non-default mailbox does not currently work
    correctly within PINE for anything other than reading. Attempts to save,
    rename etc. will likely go awry. Much more work needed here.
								3-OCT-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Extensive rewrites to tidy up the code
    and fix bugs in determining the user's default mail directory. Added
    a routine to parse a mailbox and insert defaults.
								1-OCT-1996

  * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added a routine to check for an rfc822
    header and a general routine to parse the message body and split out
    the headers and text. This code was duplicated in several places and was
    very messy.
								30-SEP-1996


IMAPD CHANGES:
==============

  * [.IMAP.ANSI.IMAPD]IMAPD.C : Modified the client to use the original
    mailbox spec supplied by the user. Previously it had been modified to
    overcome the limitations of the VMS_MAIL interface module. Now all parsing
    of a mailbox name is done within VMS_MAIL, where defaults are inserted as
    necessary.
								3-OCT-1996


IPOPD CHANGES:
==============

  * [.IMAP.ANSI.IPOPD]IPOP3D.C : Modified the client to use the fixed name
    INBOX. Previously it needed to use the '(dir)newmail' syntax to get over
    the limitations of the VMS_MAIL interface module. Now all parsing of a
    mailbox name is done within VMS_MAIL.C, where defaults are inserted as
    necessary.
								3-OCT-1996


  * [.IMAP.ANSI.IPOPD]IPOP3D.C : Added calls to the mail_fetchstructure routine
    in order to make sure that the size counts are up to date. Previously they
    had assumed that the rfc822_size field was uptodate and correct (it wasn't).
								3-OCT-1996


PINE CHANGES:
=============

  *  [.PINE]OS_VMS.C : Changed case of calls to LIB$FIND_FILE and 
     LIB$FIND_FILE_END to match declaration. This causes VAXC a headache and
     gives a compilation warning.
								11-OCT-1996

  *  [.PINE]OS_VMS.H : Changed the default debug level from 9 to 2. Don't know
     how this got changed but 9 was excessive.
								9-OCT-1996


  *  [.PINE]IMAP.C : Added a special entry point to mm_login (-1) which
     retrieves the current username. This is necessary because, unlike unix,
     the IMAPD server does not change its username after a login. Thus the
     VMS_MAIL interface has to obtain the username using the mm_login callback.
     Unfortunately, PINE's one doesn't do the right thing, hence this fix!
								4-SEP-1996


  *  [.PINE]PINE.H : Updated version string to indicate beta 9.
								30-SEP-1996


GENERAL CHANGES:
================

  * AAAREADME.TXT : Added some info on known bugs, VMSBUILD compile options,
    additional notes on miscellaneous things.
								31-OCT-1996


  * AAAREADME.TXT : Added some blurb about the differences between unix and VMS
    mailboxes and the interpretation of the standard mailbox syntax.
								9-OCT-1996


  * AAAREADME.TXT : Updated the documentation with info on the IPOP3D startup,
    the new mailbox standard formats and the new logical name translations.
								4-OCT-1996


  * IMAPD_SETUP.COM : Added details of the new logicals with some example
    definitions.
								4-OCT-1996


  * VMSBUILD.COM : Redefined P2 to be a list of modules to be recompiled. This
    allows selected modules only to be built during development. If blank, the
    whole set of modules making up the item is recompiled.
								1-OCT-1996


  * VMSBUILD.COM : Merged the DEBUG option into the P1 option list and removed
    all special code dealing with CTYPE and readonly (not needed anymore). This
    latter stuff caused compilation problems with the multinet stack under
    VAXC.
								30-SEP-1996

3.91 Beta 8 - Changes since 3.91 Beta 7
---------------------------------------

C-CLIENT LIBRARY CHANGES:
=========================

  *  [.IMAP.ANSI.C-CLIENT]VMSIO.C : Added a 'special_puts' routine to intercept
     'puts' calls for the network. Implemented for the IPOP3 server.
								27-SEP-1996


  *  [.IMAP.ANSI.C-CLIENT]VMSIO.C : Added a check on the LOG macro; if not
     defined, define it to do nothing (in case user program has not set up
     logging).
								27-SEP-1996


  *  [.IMAP.ANSI.C-CLIENT]VMSIO.C : Fixed up a bug in the size of the
     input buffer. It was one too small and didn't leave room for the
     terminating null.
								27-SEP-1996


  *  [.IMAPD.ANSI.C-CLIENT]TCP_VMSL.C : Added the tcp_clienthost routine to
     get the name of the calling host. This returns, in order of precedence,
     one of:  calling system name, calling system address or "UNKNOWN".
								26-SEP-1996

  *  [.IMAP.ANSI.C-CLIENT]TCP_VMSM.C : Various minor problems fixed up in the
     MULTINET interface.
								25-SEP-1996


  *  [.IMAP.ANSI.C-CLIENT]TCP_VMSL.C : Various minor problems fixed up in the
     NETLIB interface.
								25-SEP-1996


  *  [.IMAP.ANSI.C-CLIENT]TCP_VMSN.C : Modified the 'get_local_host_name'
     routine to call mylocalhost and avoid code duplication.
								25-SEP-1996


  *  [.IMAP.ANSI.C-CLIENT]TCP_VMSL.C : Modified the 'get_local_host_name'
     routine to call mylocalhost and avoid code duplication.
								25-SEP-1996


  *  [.IMAP.ANSI.C-CLIENT]TCP_VMSM.C : Modified the 'get_local_host_name'
     routine to call mylocalhost and avoid code duplication.
								25-SEP-1996


  *  [.IMAP.ANSI.C-CLIENT]TCP_VMSL.C : Added a routine (tcp_server_init) to
     the NETLIB interface to set up a TCPSTREAM for the standard I/O channels
     allocated by netlib when started by the master server.
								24-SEP-1996


  *  [.IMAP.ANSI.C-CLIENT]TCP_VMSM.C : Added a routine (tcp_server_init) to
     the MULTINET interface to set up a TCPSTREAM for the standard I/O channels
     allocated by multinet when started by the master server.
								24-SEP-1996


  *  [.IMAP.ANSI.C-CLIENT]TCP_VMSL.C : Modified NETLIB interface modules
     to support NETLIB 2.0 (NETLIB 2.0 or above is now required).
								24-SEP-1996



IMAPD CHANGES:
=============

  *  [.IMAP.ANSI.IMAPD]IMAPD.C : Replaced the definitions for the SYSLOG
     calls (which don't exist on VMS) to generate no compiler warnings.
								27-SEP-1996


  *  [.IMAP.ANSI.IMAPD]IMAPD.C : Split out the special vmsio network server
     intercept code into separate modules VMSIO.H and VMSIO.C. This way, they
     can be included into other modules as needed (also makes editing of
     new releases much easier).
								27-SEP-1996


  *  [.IMAP.ANSI.IMAPD]IMAPD.C : Added a call to log the calling host if
     logging is on.
								26-SEP-1996


  *  [.IMAP.ANSI.IMAPD]IMAPD.C : Fixed up the special_printf code to return the
     proper status and, in particular, the error status. Also tidied up a few
     odds and ends.
								26-SEP-1996

  *  [.IMAP.ANSI.IMAPD]IMAPD.C : Fixed up bug whereby vms_mail_open routine
     could not find mailbox. Don't know why this occurs for sure but it's fixed
     by checking for a user specified mailbox directory and adding in the
     default if it's not there. The VMS_MAIL open routine should do this but
     it doesn't seem to work right. The previous fix prevented the user
     specifying an alternative.
								25-SEP-1996


  *  [.IMAP.ANSI.IMAPD]IMAPD.C : Modified the special I/O routine
     'special_printf' to use var_args constructs.
								25-SEP-1996


  *  [.IMAP.ANSI.IMAPD]IMAPD.C : Modified network interface code to use
     only calls to the TCP interface modules, rather than ifdefing code to
     support MULTINET/NETLIB. The main IMAPD program should now be independent
     of the particular stack used.
								25-SEP-1996






PINE CHANGES:
=============

  *  [.PINE]OS_VMS.C : Fixed a problem with inode comparisons that was
     preventing compilation under VAX C.
								26-SEP-1996


  *  [.PINE]OS_VMS.C : Modified the network interfaces to use the routines
     in the tcp interface module rather than using ifdefs to select different
     code for different network interfaces. PINE itself should now be free
     of stack dependencies (all hidden in the tcp_vmsx.c modules from the 
     c-client library).
								24-SEP-1996

  *  [.PICO]COMPOSER.C : function packheader did not allow for a null length
     string when checking for a terminating comma. This could cause an access
     violation. I've patched the code to check for a null string and ignore it
     if it's there.
								13-SEP-1996

  *  [.PINE]PINE.H : Updated version string to indicate beta 8.
								13-SEP-1996


POP3 SERVER CHANGES:
====================

  *  [.IMAP.ANSI.IPOPD]IPOP3D.C : First stab at building the POP3 server
     for VMS. Included the VMSIO code, some changes to mailbox naming and
     sorted out the SYSLOG calls (which don't exist on VMS).
     It works! Must be started by a master server on port 110. It is NOT
     usable as a detached process listening out for calls.
								27-SEP-1996


GENERAL CHANGES:
================


  *  VMSBUILD.COM : Modified each one to accept a VAXC option to allow the
     use of the VAXC compiler instead of the default DEC C compiler. This is
     most useful for testing that the whole thing compiles under the various
     compilers. The default is to select whichever compiler exists with DEC C
     being preferred.
								27-SEP-1996

  *  AAAREADME.TXT : Added information about special setups that might be
     necessary for specific stacks (MULTINET and UCX).
								27-SEP-1996


  *  VMSBUILD.COM : Tidied these up to add /NOLOG to delete and purge commands,
     turn off redundant verification and add progress messages, document
     parameters, add LINK-ONLY option.
								27-SEP-1996


  *  [.PINE]VMSBUILD.COM : removed all references to stack type from the
     /DEFINE list as it's no longer referenced anywhere.
								26-SEP-1996


  *  [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : removed all references to stack type
     from the /DEFINE list as it's no longer references anywhere.
								26-SEP-1996

  *  Updated details of multiple smtp-servers in the configuration
     instructions.
								13-SEP-1996

  *  Added a MAKECLEAN.COM procedure to delete the various .EXE, .OBJ and .OLB
     files created after a build.
								12-SEP-1996

3.91 Beta 7 - Changes since 3.91 Beta 6
---------------------------------------

PINE CHANGES:
=============

  *  [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C  Fixed a bug in the use of a foreign
     protocol mail interface (used only if the smtp-server is not defined in
     the pine configuration interface, and selected with the logical name
     PINE_MAIL_PROTOCOL).  There were several problems found and fixed in the
     vms_mail_send routine:

       - No distinction was made between addresses in the TO: field and the CC:
         field.

       - Each line of pine's mail file was copied separately to the message body
         (This seemed to have a bug causing an access violation) rather than
         using the special filename option in callable mail.

       - The calls to the callable mail interface specified that a routine
         should be called for each successful delivery but this routine was
         defined with the wrong number of parameters (zero instead of three).
								12-SEP-1996


  *  Fixed a very strange timing bug in the purge_status_message() routine
     which supplied sleep with a zero value and somehow locked up when trying
     to send a message.  I've inserted a check to always supply a positive
     value to sleep.
								11-SEP-1996

  *  With debugging (-d switch) active, the .PINE-DEBUGx file was being
     created correctly but the code to rename the highest version did not
     delete any previous version. Of course, it was originally written for unix
     where renaming into an existing file destroys the existing copy. On VMS it
     doesn't, but preserves the older version. As this is not required
     behaviour, the code has been modified to explicitly delete the highest
     version if it exists.
								11-SEP-1996

  *  PINE was attempting to read the default system configuration from the
     SYS$MANAGER directory rather than from the directory defined by the
     logical name PINE_CONF_DIR.
     This has now been fixed.
								11-SEP-1996

  *  PINE was attempting to read the fixed system configuration from the
     directory defined by the logical name UTIL$ rather than PINE_CONF_DIR.
     This has now been fixed.
								11-SEP-1996



GENERAL CHANGES:
================

  *  Merged changes and installation/configuration files into a single
     aaareadme.txt file.
								11-SEP-1996


  *  Added some info to the aaareadme.txt file about the configuration file
     usage and contents.
								11-SEP-1996


  *  [.PINE]PINE.H : The version ID was still at 3.91-vms-b4; changed it to
     3.91-vms-beta7 to properly reflect the current version number.
								11-SEP-1996


  *  The DEBUG code is now compiled in to the PINE utility by default. It is
     controlled by the '-d' switch on the PINE command line. The default is
     level 2. Switch off completely using the  -d 0  flag.
								11-SEP-1996


  *  [.PINE]VMSBUILD.COM : The wrong build procedure for PINE was inadvertently
     supplied. It did not have appropriate changes added to properly
     distinguish VAX C and DEC C and could confuse compilations under both
     compilers.  This has now been corrected and the right build procedure is
     now supplied. This did not prevent the building of PICO or the IMAPD
     daemon.
								11-SEP-1996

3.91 Beta 6 - Changes since 3.91 Beta 5
---------------------------------------

IMAPD CHANGES:
==============

  *  [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : In the VMS header parsing, also treat
     "Via:" as a valid RFC822 header.
								Sept 4, 1996

  *  [.IMAP.ANSI.IMAPD]IMAPD.C : Bug fixes to the code which parses the
     messages to sort out the headers from the text and return the length of
     each. This was not being done under all circumstances and resulted in some
     short string counts which could confuse the clients.
								Sept 3, 1996



  *  [.IMAP.ANSI.IMAPD]IMAPD.C : Added fuller checks on I/O status checks
     to/from the network. Should prevent the code hanging or looping if the
     network connection dies.
								Sept 3, 1996


  *  [.IMAP.ANSI.IMAPD]IMAPD.C and [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Fixed
     the NETLIB support code. This let me find some interesting DEC C and VAX C
     header conflict bugs. If compiling with DEC C, it is probably inadvisable
     to point logicals like SYS, ARPA etc. to the SYS$LIBRARY If you also have,
     or previously had, VAXC installed. The logicals cause DEC C to pick up
     certain header files from there, rather than from the standard DEC C
     library. Unfortunately, they conflict in their contents and cause various
     facilities to become unavailable (Someone really should shoot the inventor
     of C header files - they are a facility that is grossly misused and abused
     even by professional programmers! DEC C writers have not helped matters
     with their proliferation of ifdefs and modes of compilation)

     Also had to slightly edit the code to call the right TCP interface
     routine to get the local name.
								Sept 2, 1996


  *  [.ANSI.IMAP.C-CLIENT]VMS_MAIL.C : Found a more effective/efficient way of
     dealing with VMS/RFC822 header selection. Basically, start by extracting
     the VMS MAIL headers into a buffer. If the first line after this set of
     headers looks like it's an RFC822 style header, copy those over the top of
     the VMS MAIL headers rather than reading them into a separate buffer. It's
     cleaner and uses less memory.
								Sept 2, 1996


 *  [.IMAP.ANSI.C-LIENT]IMAPD.C : Added logging to the IMAPD code.  Each
    activation of IMAPD will create a logfile if the logical name IMAPD_LOGFILE
    is defined with a valid file name. The logical is checked each time the
    IMAPD program starts so it can be dynamically assigned/deassigned for
    selective logging only when there's a problem to solve.  The level of
    logging sent to this file is controlled by the logical name IMAPD_LOGLEVEL.
    If defined with a numeric value greater than zero, then logging messages
    are written to the IMAPD_LOGFILE.

    The level of logging currently recognized are:
      0 or non-numeric: (No logging)
	0 - nothing written to log file

      1-10: progressively higher levels of IMAP tracing 
        1 - Basic trace of IMAP commands and responses

      11-20: internal trace of I/O routines and other technical debugging stuff
	10: Trace of each read/write of an I/O buffer to stdout
	11: Trace of every character read from stdin

    IMAPD Logging consists (currently) of all commands read by the IMAPD daemon
    and their parameters. NOTE that this includes login passwords at present!!
    Command responses are logged too, though not the data generated by the
    command.

 *  [.IMAP.ANSI.C-CLIENT]IMAPD.C : The alert facility has been implemented. A
    logical name of the form IMAPD_ALERTFILE can be defined to point to a text
    file. If this text file can be opened, it is copied to the IMAP user at the
    start of each IMAP session. Each line in the file is printed as:
        * OK [ALERT]  text

    Whether or not the IMAP client can detect and print them is, of course,
    client dependent.
								August 30, 1996


*   [.IMAP.ANSI.IMAPD]IMAPD.C : The idle timeout code was originally written
    using the ANSI function setitimer. As this is not available with VAX C or
    with DEC C until VMS 7, the code was originally commented out for VMS. It's
    been put back and uses alarm() now.

    Previously the idle timeout was fixed via a define in the source. I've
    changed this so that the value can be specified via a system wide logical
    name IMAPD_TIMEOUT.

    For example:
       $ define /system /exec imapd_timeout 1800

    Sets an idle timeout of 1800 seconds (30 minutes).  A value of 0 (the
    default) sets no idle timeout.
								August 30, 1996


*   [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the ability to remap DECNET node
    names into replyable internet address format, via logicals. With this
    facility, a name of the form:
	node::username		(or Namespace:.node::username under DECnet/OSI)

    attempts to translate the logical name:
        IMAPD_NODE_node

    And the translation is used to replace 'node'.

    For example:

      Suppose the logical name  IMAPD_NODE_BLACK is defined to "campus.edu"
      then the address:
        BLACK::JOHN

      is mapped into:
        JOHN@campus.edu

      With no logical name, the translation will be:
        JOHN@BLACK
								August 30, 1996


*   [.IMAP.ANSI.IMAPD]IMAPD.C : The program was originally written for unix,
    where INETD can fork off a process with stdin and stdout automatically
    connected to the client channels. This has the advantage of allowing things
    like printf to work directly to the sockets. With VMS, we can't do this
    (easily) so I've resorted to a rather nasty trick of redefining the
    standard i/o calls with macros to our own special routines which attempt to
    detect how to properly handle the I/O. Not a pretty sight but it seems to
    work! Handling of network read/write error returns is still a bit flaky
    though. More work needed. It does now work with MULTINET and (shortly) with
    NETLIB.

    I can't claim credit for the idea of intercepting the I/O code - that goes
    to Yehavi Bourvine who added something similar to the 3.89 port. I've taken
    the idea and refined it to make it cleaner and QIO free. The original code
    had no concept of restrictions on I/O buffer length so would merrily
    overwrite code and data structures. My rewrite is careful not to do this
    and splits reads/writes where necessary.
								August 30, 1996


  *  [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : When a local or DECnet message is found
     (IE one sent through normal VMS mechanisms rather than via SMTP software),
     the IMAPD daemon returns the usual VMS mail header lines. These are, of
     course, not in rfc822 format and confuse various mail header parsers. The
     code now modifies these headers (the FROM:, TO: and CC: fields) into an
     RFC822-like syntax.

     The following forms are recognized:
         username		   maps to	username	(No DECnet)
         node::username		   maps to	username@node	(DECnet IV)
         namespace:.node::username maps to	username@node	(DECnet V)

     Additionally, a comma separated list of names in each field is allowed
     and each is converted as above. I don't support space separated names!
								August 15, 1996


  *  [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : I've further tidied up all the memory
     allocation bugs I can find in IMAPD and it appears to be fairly stable
     now. Big messages may still confuse it though.
								August 14, 1996


  *  [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The IMAP daemon reads each message into
     memory. It allocates space for the message using a primitive and
     inefficient technique and does not check whether the allocation succeeded.
     This leads to random crashes later when the invalid pointers are used
     (well, it was written originally for unix where error checking is not
     necessary ..   :-) )

     The algorithm has been modified to greatly reduce the memory requirements
     for each message. This won't stop the crashes but should make them happen
     less often. I could not find a way to die gracefully if the memory
     allocation failed. At the moment, the check simply prints an error message
     and dies rather than crashing; whether the mail client can print this
     message is client dependent.

     One way to circumvent the problem is to increase the amount of virtual
     memory allocated to the imapd process. This is stack dependent.
     Really though, the code needs to be heavily modified to not read each
     message into memory first.
								August 12 1996


GENERAL CHANGES:
================

*   I've added two startup procedures:
      IMAPD_STARTUP.COM can  be called from system startup to initialize the
      logical names IMAPD uses. Note that this should be tailored for local
      use first!

      PINE_STARTUP.COM can be called from system startup to initialize the
      logical names PINE uses. Note that this should be tailored for local
      use first!

      Both files contain examples of the optional logicals. Tailor and comment
      to personal taste.
								August 16, 1996
