8                    P I N E   M A I L E R   F O R   V M S8                    =====================================   			University of Washington   2                       Version 3.91 Beta 12 for VMS)                               Andy Harper .                           Kings College London     			---   C O N T E N T S  ---   
 		0. FOREWORD   
 		1. OVERVIEW   3 		1.1 Introduction  . . . . . . . . . . . . . . . . 3 		1.2 Restrictions  . . . . . . . . . . . . . . . . 3 		1.3 Pre-requisites  . . . . . . . . . . . . . . . 3 		1.3.1 Software  . . . . . . . . . . . . . . . . . 3 		1.3.2 Essential documentation to read first . . . 3 		1.3.3 First-time or upgrade installation  . . . . 3 		1.4 Building  . . . . . . . . . . . . . . . . . . 3 		1.4.1 Common VMSBUILD options . . . . . . . . . . 3 		1.5 Installation  . . . . . . . . . . . . . . . . 3 		1.5.1 Installing for the first time . . . . . . . 3 		1.5.2 Installing upgrades or new releases . . . .   / 		2. MAIL SERVERS AND THE NETWORK CONFIGURATION   3 		2.1 General considerations  . . . . . . . . . . . 3 		2.2 TCP stack-specific setup  . . . . . . . . . . 3 		2.2.1 NETLIB  . . . . . . . . . . . . . . . . . . 3 		2.2.2 MULTINET  . . . . . . . . . . . . . . . . . 3 		2.2.3 UCX . . . . . . . . . . . . . . . . . . . . 3 		2.2.4 CMU . . . . . . . . . . . . . . . . . . . . 3 		2.2.5 Other stacks  . . . . . . . . . . . . . . . 3 		2.3 Third party mail systems  . . . . . . . . . . 3 		2.3.1 MX  . . . . . . . . . . . . . . . . . . . .    		3. AVAILABLE SERVERS  3 		3.1 IMAPD . . . . . . . . . . . . . . . . . . . . 3 		3.2 IPOP3D  . . . . . . . . . . . . . . . . . . .    		4. CONFIGURATION NOTES  3 		4.1 Sending mail out with PINE  . . . . . . . . . 3 		4.1.1 Using a local mail router . . . . . . . . . 3 		4.1.2 Using a local mail delivery agent . . . . . 3 		4.1.3 Using VMS callable mail . . . . . . . . . . 3 		4.2 Mailbox format specifications . . . . . . . . 3 		4.3 PINE Configuration files  . . . . . . . . . . 3 		4.3.1 Minimum configuration settings  . . . . . . 3 		4.3.2 Configuration file restrictions . . . . . . 3 		4.3.3 Example PINE.CONF-FIXED file  . . . . . . . 3 		4.3.4 Example PINE.CONF file  . . . . . . . . . . 3 		4.4 Server configuration file . . . . . . . . . . 3 		4.5 Effect of Inbox-Path variable . . . . . . . . 3 		4.6 VMS MAIL address rewriting  . . . . . . . . . 3 		4.6.1 DECnet transport  . . . . . . . . . . . . . 3 		4.6.1.1 Standard DECnet addresses . . . . . . . . 3 		4.6.1.2 DECnet address conversion mechanisms  . . 3 		4.6.1.3 Default DECnet address conversion . . . . 3 		4.6.1.4 Site-defined DECnet address mapping . . . 3 		4.6.2 SMTP transport  . . . . . . . . . . . . . . 3 		4.6.2.1 Standard SMTP addresses . . . . . . . . . 3 		4.6.2.2 SMTP address conversion mechanisms  . . . 3 		4.6.3 X.400 transport . . . . . . . . . . . . . . 3 		4.6.3.1 Standard X.400 addresses  . . . . . . . . 3 		4.6.3.2 X.400 address conversion mechanisms . . . 3 		4.6.4 Other address formats . . . . . . . . . . . 3 		4.7 Automatic INBOX filing  . . . . . . . . . . . 3 		4.8 Logging and debugging . . . . . . . . . . . . 3 		4.9 Mailbox subscription files  . . . . . . . . . 3 		4.10 Mail prototype logical name  . . . . . . . . 3 		4.11 Placement of RFC822 headers  . . . . . . . . 3 		4.12 Automatic purging  . . . . . . . . . . . . .    		5. KNOWN BUGS AND PROBLEMS  3 		5.1 Corrupt mail files  . . . . . . . . . . . . . 3 		5.1.1 Empty folders . . . . . . . . . . . . . . . 3 		5.1.2 Long records  . . . . . . . . . . . . . . . 3 		5.2 Parallel PINE and VMS MAIL sessions . . . . . 3 		5.3 Message deletion  . . . . . . . . . . . . . . 2 		5.4 Notification of new INBOX mail does not work   		6. REPORTING A PROBLEM   		7. SUMMARY OF LOGICAL NAMES   3 		7.1 C-CLIENT logical names  . . . . . . . . . . . 3 		7.2 PINE logical names  . . . . . . . . . . . . . 3 		7.3 IMAPD logical names . . . . . . . . . . . . . 3 		7.4 IPOP3D logical names  . . . . . . . . . . . .   % 		8. RELEASE NOTES AND CHANGE DETAILS    0. FOREWORD  ===========   I PINE is a screen based mail and news program. Originally written for unix K systems, by the University of Washington, it has been ported to a number of N others. This implementation is for the Digital Equipment Corporation's OpenVMSJ operating system. PINE on VMS uses the VMS callable routines for most mail related functions.  L Yehavi Bourvine ported version 3.91 of the PINE code and the IMAPD server toF VMS. His last release was known as 3.91 Beta 5. However, this port wasK incomplete. I have progressed the port to a workable state and upgraded the L code since then; This note summarizes the changes. My version starts at 3.91 Beta 6.   J Note - the changes here have been tested ONLY with the NETLIB and MULTINETO TCP/IP stacks. NETLIB support provides an alternative for users of other stacks L (UCX, CMU, pathway etc.) If anyone wishes to contribute the relevant mods toL make direct support for these stacks work properly, please let me know. I'llO try to integrate them as and when I can. I only update this in my limited spare & time or as needed for our local users.  K The code will compile with GNU C 2.7.1, VAX C 3.2 and DECC 5.3 and works on & both VAX and ALPHA with Multinet 3.5B.     Andy Harper ' Kings College London						  16 Apr 1997  E-Mail: A.Harper@kcl.ac.uk   1. OVERVIEW  ===========      1.1 Introduction  K This kit contains all you need (except for a C compiler) to build a working N PINE mailer, also a POP3 server and an IMAP server, for VMS. The code has been tested with the following:I     VAX C 3.2 on VAX and OpenVMS 6.2, using NETLIB 2.0J and MULTINET 3.5B I     DEC C 5.3 on VAX and OpenVMS 6.2, using NETLIB 2.0J and MULTINET 3.5B K     DEC C 5.5 on Alpha and OpenVMS 6.2, using NETLIB 2.0J and MULTINET 3.5B K     GNU C 2.7.1 on VAX and OpenVMS 6.2, using NETLIB 2.0J and MULTINET 3.5B   N 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   N The PINE software was originally written with unix systems in mind. ConvertingI it to VMS has thrown up some features that cannot (easily) be implemented M because of the way the VMS MAIL.MAI file is organised. As such, the following @ restrictions are currently imposed on PINE and the IMAPD server:  6   * RENAMING and DELETING a mailbox is not implemented  I   * Multiple simultaneous access to the same mailbox may cause unexpected      behaviour.  I   * Deleting/expunging messages may not be instantly visible to PINE or a      remote IMAP client.      1.3 Pre-requisites   1.3.1 Software  M Before building and installing PINE and the various supporting utilities, you ! will need the following software:   L   *  A C compiler.  The software has been tested with VAX C 3.2, DEC C 5.3 /O      5.5 (both VAX and Alpha) and GNU C 2.7.1. Other compiler versions may work !      but there are no guarantees.   J      IMPORTANT NOTE:  Due to a change in the contents of the DEC C RTL andO      STARLET under certain combinations of DEC C and OpenVMS, you find that the F      link fails due to missing definitions of the symbols SYS_NERR andP      SYS_ERRLIST. Digital have provided a patch for this called ALPACRTxx_vvv orN      VAXACRTxx_vvv where 'xx' is the version of the path and 'vvv' is your VMS5      version number. Contact DEC support for details.   N   *  A TCP/IP network stack.  The recommended interface is NETLIB (version 2.0I      or above) which provides a stack independent interface to all of the O      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.     K If you have a version of NETLIB that is supplied as part of another Madgoat N product, such as MX, you may find that a required header file "NETLIBDEF.H" isM missing. If it is not there, please obtain the separate NETLIB product, noted H above, and ensure that this file is present before starting to build the	 software.   N In the absence of NETLIB, there is direct support for MULTINET. If you have noO TCP stacks at all, then there is a null stack available which restricts PINE to N local mailboxes only and prevents any of the network servers from functioning.  M If your underlying stack is MULTINET then you should install the patch to the M multinet header files if you plan to compile with DEC C. Otherwise, there are 0 problems with this that may prevent compilation.      + 1.3.2 Essential documentation to read first   I You should read certain documentation files and command procedures before G attempting to build or install. At the very least, these are essential:   8 	  * AAAREADME.TXT	for build/install/config instructions@ 	  * PINE_SETUP.COM	for the logicals/directory structure of PINEB 	  * IMAPD_SETUP.COM	for the logicals/directory structure of IMAPDD 	  * IPOP3D_SETUP.COM	for the logicals/directory structure of IPOP3DE 	  * CCLIENT_SETUP.COM	for the logicals to configure C-CLIENT library : 	  * INSTALL.COM		for the commands to copy files in place.3 	  * USER_SETUP.COM	To create users for the servers G 	  * SERVICE_SETUP.COM	To create the tcp/ip servers (IMAPD/IPOP3D etc.)   J Other files, giving technical info on PINE etc. can be found in the [.DOC]I subdirectory. May be useful for setting up PINE.CONF files and gaining an ( understanding of PINE and IMAP concepts.  O If you will be using the IMAP or POP servers, then be sure to read the notes on 8 setting up the underlying stack, later in this document.    ( 1.3.3 First-time or upgrade installation  N If upgrading from a previous release where the directory structure is in placeO already AND the recommended logical names have been used, then the new code can L be installed (after building) simply by running the INSTALL.COM procedure inN the top level directory. This copies the .EXEs to the right place based on theE logical names and instantly updates your system with the new version.   : Otherwise, read on for details of setting up the software.     1.4 Building  K    1.	Create a directory for the code and unpack to create a directory tree - 	into it, preserving the directory structure.   K    2.   From the top level of this tree, execute the VMSBUILD.COM procedure I         with zero or more parameters to select the build options. With no D 	build options supplied, the procedure will autoconfigure itself forF 	the appropriate C compiler and network stack. This is recommended forH 	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: C 	  * Choice of compiler:  GNU C, VAX C and DEC C are all supported. H        	    The default is to use whichever is installed on your system.E 	    Due to GNU C being quite fastidious about checking, you may find F 	    that it throws up compile warnings which the others do not. DEC CG 	    could, but is run in VAX C compatibility mode. The warnings do not + 	    affect performance and can be ignored.   I           * Choice of network support:  NETLIB (recommended) or MULTINET. < 	    NETLIB will support all of the major VMS TCP/IP stacks.  M    3.	The top level procedure builds all of the modules that make up the PINE C 	distribution. This includes the PICO library (and stand-alone PICO E 	editor), the C-client library (and the IMAPD and IPOP3D servers) and G 	finally the PINE mailer itself. Each module can be built separately if E 	required by simply moving to that directory and running the VMSBUILD G 	procedure found there. Note that PINE requires the other modules to be          built first.        1.4.1 Common VMSBUILD Options   M Each of the main modules (PICO library, C-CLIENT library and PINE) contains a J separate VMSBUILD procedure in the relevant directory. The master VMSBUILDO procedure at the top level calls these in the right order (PICO, then C-CLIENT, N and finally PINE) to build the modules. A series of options are passed to eachC by the master procedure, which in turn receives them as parameters.   M These are the parameters common to each of the VMSBUILD procedures. They must N be specified in full (no abbreviations) and a comma-separated list is allowed./ Misspelled options are ignored without comment.   O -------------------------------------------------------------------------------  Parameter	Effect					DefaultO -------------------------------------------------------------------------------   D COMPILE-ONLY	Skip link stage, just compile      )	Compile, then link. LINK-ONLY	Skip compile stage, just re-link   )  A NETLIB		Select the NETLIB TCP interface	   )	Auto-detect [note 1] C 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    )  7 DEBUG		Include debugger in each application	No debugger   7 OPTIMIZE	Specify compiler optimization		No optimization - 		Turned off if DEBUG also specified	[Note 3]   8 NOTRACEBACK	Specify link with /NOTRACE		Link with /TRACE 							[Note 4]   O -------------------------------------------------------------------------------    NOTE 1: G   If none of NETLIB, MULTINET or NOTCP are supplied as a parameter, the O   procedure will auto-detect the stack and use whichever is found. If more than I   one are found, then the 'best' is selected (NETLIB, then MULTINET, then O   NOTCP). If no stack is found, NOTCP is used. This prevents any of the servers N   functioning but allows manipulation of local mailboxes through PINE; sendingN   of mail through is only possible via the sendmail or foreign mail interface.O   The NOTCP option specifically selects the NULL stack (this allows building an 4   image for another system that has no TCP support).   NOTE 2: K   If no compiler option is specified, the procedure will examine the system L   to see which C compilers are installed from the set [DEC C, VAX C, GNU C].N   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.J   One of the options VAXC or GNUC may be specified to override the defaultN   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: H   Optimization by the compiler is turned off by default. This is becauseK   bugs in the optimizer sometimes cause erratic behaviour. No problems have M   been detected compiling without optimization so this is the default. Use at B   your own risk. This option is ignored if DEBUG is also selected.     NOTE 4: M   It may be required to INSTALL some images to give enhanced privileges or to M   make them shareable for more efficient operation. This may require that the L   images be linked with /NOTRACEBACK.  Selecting the NOTRACEBACK option does?   just this.  This option is ignored if DEBUG is also selected.     	 Examples:      @VMSBUILD 7 	Build with all defaults; autodetect compiler and stack      @VMSBUILD GNUC,OPTIMIZE @ 	Build using the GNU C compiler and select compiler optimization  "   @VMSBUILD MULTINET,VAXC,OPTIMIZED 	Build using the direct MULTINET support (even if NETLIB installed),; 	using the VAX C compiler and select compiler optimization.      1.5 Installation  N Once the software has been built, producing a number of executables, it shouldO be installed into the production system. This requires that a directory tree is H created, logical names are assigned, and configuration files are set up.  M If this is the first time the software has been installed, see section 1.5.1, 3 otherwise, if this is an upgrade, see section 1.5.2     # 1.5.1 Installing for the first time   D    1.	Create a directory for the production system. You can have oneG 	directory for the PINE files and another for the IMAP server files, or H 	they can be combined into the same directory. In either case, reference; 	to the various places should be through logical names (see E 	PINE_SETUP.COM, IMAPD_SETUP.COM and IPOP3D_SETUP.COM for more info).   5    2.	The directory structure that is recommended is:  	 1 	  PINE_ROOT:[000000]	-- Top level for pine files . 		[.BIN_VAX]		For VAX architecture executables2 		[.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 executables2 		[.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 executables2 		[.BIN_ALPHA]		For Alpha architecture executables$ 		[.CONFIG]		For configuration files 		[.LOGS]			For log files   D 	Note -- PINE_ROOT, IMAPD_ROOT and IPOP3D_ROOT can be defined to the 	same thing if preferred.   H         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.T    B    3.   Define some system level logical names to the directories:! 	  $ arch = f$getsyi("ARCH_NAME") 8 	  $ define/system/exec pine_dir		pine_root:[bin_'arch']8 	  $ define/system/exec pine_conf_dir	pine_root:[config]9 	  $ 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']D= 	  $ define/system/exec ipop3d_conf_dir  ipop3d_root:[config]N    * 	And some logical names for various files:  3 	  $ define/system/exec pine_exe		pine_dir:pine.exe 5 	  $ define/system/exec imapd_exe	imapd_dir:imapd.exe 8 	  $ define/system/exec ipop3d_exe	ipop3d_dir:ipop3d.exe  A 	  $ define/system/exec imapd_alertfile	imapd_conf_dir:alerts.txtE  E 	  $ define/system/exec cclient_mailprototype imapd_conf_dir:mail.mai   6 	And various (mainly optional) configuration logicals:  ? 	  $ define/system/exec pine_mail_protocol mx  [see note below]   3 	  $ define/system/exec imapd_log	imapd_root:[logs] 9 	  $ define/system/exec imapd_logfile	imapd_log:imapd.log	( 	  $ define/system/exec imapd_loglevel	24           $ define/system/exec imapd_timeout    1800& 	  $ define/system/exec imapd_logtry	3  , 	  $ define/system/exec cclient_node_xxx	yyy4 	  $ define/system/exec cclient_autofileinbox "MAIL"B 	  $ define/system/exec cclient_mailfile_purge_reclaim "any value"    D 	See the files PINE_SETUP.COM, IMAPD_SETUP.COM, IPOP3D_SETUP.COM andE 	CCLIENT_SETUP.COM for further details of the logical names and theirTG 	function. You should tailor these procedures to local requirements andsG 	ensure that they are executed at each system startup by adding them to.' 	SYSTARTUP_V5.COM or SYSTARTUP_VMS.COM.     N     4.	Set up the configuration files for PINE and the IMAPD server. There areD 	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, smtpr 		servers etc.   	   * PINE_CONF_DIR:PINE.CONFG: 		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   H 	The general PINE documentation describes the content of these files but9 	please take note of some specific points detailed below.    	 G   5.	Copy the .EXE files, once built, into the directory structure. The 6 	procedure INSTALL.COM is supplied to do this for you.    B   6.	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"e      ) 1.5.2 Installing upgrades or new releasesn  C If the current version being installed is an upgrade to an existingd4 installation then very little work needs to be done.  N If the recommended logical names have been used and the directory structure isG also as recommended, the simplest way to install the code is to run thenL INSTALL.COM procedure from the top level directory. This checks the logicals= exist and copies the relevant .EXE images to the right place.p  L If a different structure has been used, then all the .EXE files built by theL VMSBUILD procedure must be copied to the right place by hand. Make sure that5 they are given the right protections where necessary.t  M It is not necessary to change any configuration files or reconfigure TCP etc. A unless specifically stated in the release notes for this version.o      - 2. MAIL SERVERS AND THE NETWORK CONFIGURATION   O PINE, in conjunction with remote IMAP and POP3 servers, can access mailboxes onaO any remote system.  A POP3 server and an IMAP server are provided with the PINE  distribution  M The servers are designed to be started by a master server process rather thanoO as a permanently running process that 'listens' for connections. Thus, although	I they are directly supported to run over any stack, the stack must have an O ability to act as a master server, accept connections, start the server processt6 and then pass the connection on to the server process.  P This section contains details of how to set up your network software to run the L network servers. Unless otherwise stated, all examples show the IMAPD serverL but apply equally to all servers. Specific details for each server are given later.       2.1 General Considerations  F Before setting up a network server, you should consider the following:  M    * Under what username should the server run? SYSTEM is the default in mosthH      cases but may be inappropriate in some high security installations,>      although there are no known security holes in the server.  J    * What privileges should the username have? At least TMPMBX, NETMBX andL      SYSPRV are needed to access the network and the mail files. Some stacks9      may require additional privilege for network access.e  N    * What quotas are needed by the username?  The most important is PGFLQUO asI      this determines the maximum size of mailbox that can be handled. TheiN      server will crash if it runs out of virtual memory when pulling the wholeK      mailbox into memory, so a user with a large mailbox may require that ar      large PGFLQUO is set.  J    * What sysgen parameters should be changed?  The CMU stack requires theN      MAXBUF parameter to be set to at least the size of the constant BUFLEN inK      the TCP_VMS.H module (currently 8192). If PGFLQUO's are set high, then B      the VIRTUALPAGECNT parameter may need to be adjusted upwards.       2.2 TCP Stack-Specific Setup  L A number of procedures are provided to perform much of the initial stack and system set up for you. See:d  >     USER_SETUP.COM	[Optional]	Create a user under which to run+ 					servers. If you want to run as SYSTEM,E! 					you do not need to run this.c  F     SERVICE_SETUP.COM	[mandatory]	Create a configuration for a network% 					service (EG IMAP or POP server).S  O The work can be done manually if required and the following descriptions definet what needs to be done.     2.2.1 NETLIB  M NETLIB is a freeware stack independent network interface that allows a singleoI image to be run over any of the popular stacks available for VMS. This is L useful in clusters where different nodes run different TCP/IP stacks as only one image is required.  K    *  Make sure that NETLIB 2.0 or greater is installed before building the N       product. NETLIB 1.x is not suitable. NETLIB is freeware and is available6       from ftp://ftp.madgoat.com/madgoat/netlib020.zip  I    *  NETLIB requires a supported TCP/IP stack; please refer to the stackr'       specific setup information below.n       2.2.2 MULTINET  ; MULTINET is a commercial TCP/IP stack available from Cisco.U       * Information required:c 	- Service nameh 	- Port number 	- Service type (TCP/UDP)t&         - Image Name (or logical name)) 	- Username under which to run the serveri0 	- Page file quota to be allocated to the server  H    *  NOTE: If you are building with direct MULTINET support (IE not viaN       NETLIB) and using DEC C to compile everything, then it is important thatM       you obtain and install the MULTINET patch to the header files, as thererN       are some incompatibilities with existing DEC C 5.x header files. Without-       this patch, the software may not build!s$       Contact TGV/CISCO for details.  L    *  The master server should be configured to start up the server image onM       the specified port. The following sequence of commands illustrates thisI'       for the IMAPD server on port 143:a$          $ MULTINET CONFIGURE/SERVER!          SERVER-CONFIG> add imapd           Protocol [TCP]: tcp          TCP Port Number: 143m"          Program to run: imapd_exe          SERVER-CONFIG> save          SERVER-CONFIG> restartT  J    *  By default, this will start up the server under the SYSTEM username,J       which has all privileges. While this should not cause a problem (theL       server is careful not to allow access to another user's mailbox), someK       sites may want to start up the server under a different username that N       has a restricted set of privileges. After ensuring that the user account=       exists, the following sequence of commands may be used:i$          $ MULTINET CONFIGURE/SERVER$          SERVER-CONFIG> select imapd(          SERVER-CONFIG> set username xyz          SERVER-CONFIG> save          SERVER-CONFIG> restart   $       "xyz" is the desired username.  H       The selected username must have at least SYSPRV, NETMBX and TMPMBXJ       privilege in order to access the SYSUAF file and an arbitrary user's       mailbox.	          nM     *  You may need to increase the virtual memory allocation of the detachedrI        process if users have particularly large messages or mailboxes, inrM        order to prevent malloc calls from failing and causing a server crash.u         You can use the commands:%           $ MULTINET CONFIGURE/SERVERe%           SERVER-CONFIG> select imapdd0           SERVER-CONFIG> set pql-pgflquota xxxxx           SERVER-CONFIG> saveC            SERVER-CONFIG> restart     J        The exact value of 'xxxxx' will be dependent on the users and their        messages.  C     * Much of the setup may be performed automatically by using theoC       SERVICE_SETUP.COM procedure found in the top level directory:p-           $ @service_setup MULTINET IMAPD 143c    	 2.2.3 UCXl  N UCX, or Digital TCP/IP services for OpenVMS, is a commercial TCP/IP stack from Digital Equipment Corporation.       * Information required:e 	- Service name  	- Port number&         - Image Name (or logical name)3 	- Name of procedure to be started by master serveri) 	- Username under which to run the serveru% 	- Process name to be given to serverT* 	- Maximum number of simultaneous sessions) 	- Name of startup log file to be created   K     *  The master server must be configured to start up a command procedure K        that runs the server image, when an incoming call is received on theaM        specified port. The following sequence of commands will configure thisc        for the IMAPD server:M            $ UCX set service IMAPD /process=IMAPD /port=143 /user=UCX_IMAPD - 7                /file=IMAPD_ROOT:[000000]UCX_IMAPD.COM -                 /limit=20 -:                /log=(FILE=IMAPD_LOG:IMAPD_STARTUP.LOG,ALL)  0            $ UCX set config enable service IMAPD  %            $ UCX enable service IMAPDc    9     *  The file UCX_IMAPD.COM should contain a line like:             $ RUN IMAPD_EXE  J     *  The example above runs the procedure as the user "UCX_IMAPD", which9        must exist with at least the following attributes:  	       /network+                /priv=(netmbx,tmpmbx,sysprv) .                /defpriv=(netmbx,tmpmbx,sysprv)  M     *  The quotas on the "UCX_IMAPD" account, particularly PGFLQUO, should beaN        adjusted as appropriate to handle the largest mailbox likely to be kept        in memory by the server.-                /pgflquo=xxxx  N     *  For security purposes, if the account is dedicated to server use, it isB        probably wise to also have these attributes on the account:0                /flag=(disctly,defcli,restricted)4                /nobatch /nolocal /nodialup /noremote
             J     *  The mail delivery agent must be configured to place the RFC822 mailJ        headers at the top of the message, rather than at the bottom of theJ        message. The servers will not recognize them otherwise. You can use        the command:m>              $ UCX SET CONFIGURATION SMTP /OPTIONS=TOP_HEADERS  $        Then restart the SMTP server.    C     * Much of the setup may be performed automatically by using theiC       SERVICE_SETUP.COM procedure found in the top level directory:T(           $ @service_setup UCX IMAPD 143    	 2.2.4 CMU-  K CMU is a public domain TCP/IP stack available free of charge. It is for VAXIL only and is available through DECUS or from various archives on the network.       * Information required:v 	- service nameo 	- port number&         - Image name (or logical name)(         - Privileges allocated to server  O     *  The configuration file INET$CONFIG should be updated to add a definition C        for the server. Here's a typical entry for the IMAPD server:f  M            WKS:143:IMAPD:IMAPD_EXE:NETWRK:NETMBX,TMPMBX,PHY_IO,SYSPRV:::::4:5   O        IMAPD_EXE is the logical name that points to the IMAPD executable image. L        Note that CMU applications require PHY_IO to access privileged ports.  K     *  CMU is sensitive to the value of the SYSGEN parameter MAXBUF as thisiL        determines the maximum size of a message that can be sent in a singleN        network write operation. It MUST be set to a value at least as large asL        that of the constant BUFLEN in the TCP_VMS.H module (currently 8192).9        The recommended minimum for CMU generally is 8300.c  J        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 ACTIVEe  7        For permanent changes, use the AUTOGEN facility.e    M     *  Following the above change, the CMU IPACP process must be shutdown andoJ        restarted (which will interrupt network activity and close existing9        network connections) using the following commands:p           $ IPNCP NETEXITe           $ IPNCP STARTUP/IPACPe  C     * Much of the setup may be performed automatically by using theKC       SERVICE_SETUP.COM procedure found in the top level directory:s(           $ @service_setup CMU IMAPD 143      
 2.2.5 TCPWAREU  G TCPWARE is a commercial TCP/IP network interface available from ProcessL	 Software.M       * Information required:m 	- service namec 	- port number 	- service type (TCP/UDP)T&         - Image Name (or logical name)$ 	- UIC under which to run the server+ 	- Pagefile quota to allocate to the serverc  L     * The services configuration file TCPWARE:SERVICES. should be updated toO       add a definition for the service. Here is a typical record describing thes       IMAPD service:           IMAPD   143/TCPr  L     * The following commands may be used to add a definition for the server:           $ NETCU J           NETCU> add service 143 tcp IMAPD_EXE /uic=[1,3] /page_file=60000  6       Adjust the values of the parameters as required.    C     * Much of the setup may be performed automatically by using the C       SERVICE_SETUP.COM procedure found in the top level directory:s*           @SERVICE_SETUP TCPWARE IMAPD 143     2.2.6 Other stacks  *     *  No information currently available.     2.3 Third party mail systems  L There are a number of third party mail systems which may be in use to handleN the delivery of SMTP mail, rather than any SMTP delivery agent that is part ofF the TCP/IP stack software. It is important that this delivery agent isL configured to place the RFC822 headers at the start of the message. Some mayL place them at the end; this will prevent the servers from correctly locatingB them and they will instead be treated as part of the message body.  O If it is not possible to configure the mail delivery agent to place the headersc@ in their normal position (at the top) then see also section 4.11     2.3.1 MX  H MX is a popular freeware mail system, available from madgoat software at4 ftp://ftp.madgoat.com/mx/mxNNN.zip  (NNN = version).  H To configure MX to place the RFC822 headers at the top, use this command	 sequence:T      $ mcr mx_exe:mcp_#      MCP> set local/headers=top:alln      MCP> save      MCP> reset/clusterr       3. AVAILABLE SERVERS  3 Both a POP3 server and an IMAP server are provided.n  	 3.1 IMAPDo  K The IMAPD server provides the user with the ability to access their mailbox]I over the network. Any client that uses the IMAP2bis protocol standard may 5 access any of their mail folders through this server.   O IMAPD should be set up to listen on port 143 and start the IMAPD_EXE image wheni a call is received.     
 3.2 IPOP3D  O The IPOP3D server provides the user with the ability to access their INBOX over L the network. Any client that uses the POP3 protocol standard may access mail through this server.  L IPOP3D should be set up to listen on port 110 and start the IPOP3D_EXE image when a call is received.  M -----------------------------------------------------------------------------p   4. CONFIGURATION NOTES  I There are some problems with the linker being unable to correctly resolve O global variables from an object library, when the software is built with eitheriN VAX C or GNU C on the VAX.  DEC C appears to be fine on both VAX and ALPHA. AsJ 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:   E   * By using SMTP protocols to send mail to a nearby intelligent maill     router.   O   * By placing the job in a local 'sendmail' queue and invoking a mail deliverymN     agent to process them. Two agents are supported here - MULTINET's own SMTP/     agent and the freeware package VMS-SENDMAILl  L   * By invoking VMS callable mail and using a nominated mail transport image     that handles SMTP mail.d  O You must select one of the methods (see below). It is not possible to send mailo if none are selected.y       4.1.1 Using a local mail routerm  O PINE will send mail to a local mail router, which should know how to route mailaM to the end address, only if an intelligent mail router is configured. This isnL done by including a line similar to this in the PINE.CONF or PINE.CONF-FIXED! file (the latter is recommended):e     smtp-server=xxxx  N All outgoing mail is sent to the named host for onwards routing. Note that theG named host is contacted directly. No attempt is made to use MX records.n  M NOTE: You can specify a comma-separated list of smtp-servers and they will beIL 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 agenth  I If no smtp-server definition is provided in any of the PINE configurationhM files, then PINE can be configured, using logical names, to try using a local M mail delivery agent, either MULTINET's own SMTP agent or the freeware packageIL VMS-SENDMAIL.  If neither are available, then this method is not functional.O The method used here is similar to that used on unix when PINE is configured too invoke the sendmail daemon.e  L To enable this functionality, define the logical name PINE_SENDMAIL_QUEUE toO the name of the local batch queue used by the SMTP delivery agent. For example:      * To use VMS-SENDMAIL:; 	$ define /system /exec PINE_SENDMAIL_QUEUE "GV2$SMTP_AXP1"t> 		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.  M If this logical name is defined, then it is also necessary to define the mailo> transport shareable image prefix with one of the logical namesM PINE_MAIL_PROTOCOL or MAIL$INTERNET_TRANSPORT (the latter is often defined insO OpenVMS 6.2 or above).  The value of the logical name should be the prefix usedcM when sending mail from VMS MAIL. For example, if you would normally send mailsH using an address of the form SMTP%"user@site" then the prefix is "SMTP".  L Note: if this method is selected, it will likely be necessary to install theJ PINE executable image with CMKRNL and SYSPRV. This is because the sendmailJ queues and the spool directories are normally restricted to the backgroundJ system processes. Take some care here as PINE has a shell escape mechanism7 which will leave the user with the enhanced privileges.n  : Note: the freeware package VMS-SENDMAIL is available from:3   * ftp://cnaf43.infn.it/mailing/VMSSENDMAIL016.BCK   J Which can interface either to NETLIB or to MULTINET.  Thanks go to ClaudioO Allochio for this package and for the modifications to PINE to support its use.s       4.1.3 Using VMS callable mail   O If none of PINE's configuration files contain an 'smtp-server=' definition, andoO the logical name PINE_SENDMAIL_QUEUE has not been defined (see above) then PINE M will attempt to use VMS callable mail to send the message. To tell PINE which L 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  G and * MAIL$INTERNET_PROTOCOL	[usually defined in OpenVMS 6.2 and later]a     For example:  M If you normally send network mail within VMS MAIL using addresses of the formtE SMTP%"....", you should define the logical name to the string "SMTP":n  4     $ define /system /exec PINE_MAIL_PROTOCOL "SMTP"  N NOTE: With this method, the message that PINE sends out has TWO sets of RFC822L mail headers separated by a blank line. One is generated by PINE itself; theN other by the foreign mail protocol. Currently there is no way around this. TheA only practical effect is to mess up any MIME encoded attachments.s      ! 4.2 Mailbox format specifications   L Both PINE and the IMAPD server recognize a standardized format for a mailbox" specification. Note the following:  H   *  All mailbox names are case-sensitive. "TEST", "test" and "TeSt" allN      refer to different folders. The exception is the special name INBOX which       is always case insensitive.  O   *  The name of the mail file which holds a folder is ALWAYS "MAIL.MAI". It isf@      not possible to access mail folders held in any other file.  N   *  Specifying just a folder name implictly assumes the user's normal default4      MAIL.MAI file in the default mail subdirectory.  F   *  An explicit directory path for the enclosing MAIL.MAI file can be#      specified by using the syntax:	,          ~/folder		MAIL.MAI is in SYS$LOGIN:F          ~/path/folder		MAIL.MAI is in the path relative to SYS$LOGIN:  J   *  The special name "INBOX", defined in the IMAP standard, is recognizedA      and maps to the folder NEWMAIL in the default MAIL.MAI file.t    7 Here are some examples of valid mailbox specifications:L  3   *  INBOX		file: default MAIL.MAI, folder: NEWMAILa  /   *  TEST		file: default MAIL.MAI, folder: TEST   3   *  ~/TEST		file: SYS$LOGIN:MAIL.MAI, folder: TESTl  7   * ~/mail/nickel	file: [.MAIL]MAIL.MAI, folder: nickel     L When the IMAP protocol specification was originally drawn up, it was clearlyO influenced by the syntax of unix mail folders. As such, the interpretation of afM similar mailbox specification between unix and VMS is somewhat different. ThepF VMS version tries to mimic the unix format as much as possible but the/ underlying meanings are different. For example:       * ~/mail/sentmail  O      On unix: specifies the text file called 'sentmail' in the directory ~/maile  O      On VMS: specifies the folder "sentmail" in the file MAIL.MAI in the user'sm2      [.MAIL] subdirectory (relative to SYS$LOGIN).     4.3 Configuration Filesi  K PINE gets its configuration information from a combination of configurationd files:  "    * PINE_CONF_DIR:PINE.CONF-FIXEDA 	Defines a set of fixed configuration information that may not betG 	overridden by the user. This is most useful for defining items such as 5 	the local host name and the smtp-servers to be used.D      * PINE_CONF_DIR:PINE.CONFE 	Defines a default configuration for the remainder of the PINE setup. D 	The user may override anything defined here. Normally set to give a9 	basic workable system tailored to the majority of users.w      * SYS$LOGIN:.PINERCH 	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.  K Any setting not specified by any configuration file has an internal defaultdG that should produce a workable, though not necessarily optimum, system.h  K All configuration files are simple text files and may be edited with a textr editor if required.l  : Both PINE.CONF and PINE.CONF-FIXED must be world readable.      $ 4.3.1 Minimum configuration settings  N 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)-  0    * Location of default INBOX (inbox-path=xxxx)  I    * A folder collection for all the folders in the default MAIL.MAI file M      (folder-collection=[]). If this is not specified, PINE will only displaytM      the INBOX folder. All non-INBOX folders, and that includes all the other K      folders in the default MAI.MAI file, will only be visible if specified N      here ( [] is a wildcard pattern that specifies all folders in the default      mailbox).      % 4.3.2 Configuration file restrictions   N PINE was originally written for a non-VMS environment and some of its conceptsF 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:l  (    * The WASTEBASKET folder is not used.  J    * The files .PINE-DEBUGx, .PINERC and .ADDRBOOK are fixed to the user'sM      login directory and cannot be defined to be elsewhere (the definition ishJ      ignored). The subscription registration database .MAILBOXLIST is also      fixed to SYS$LOGIN.      " 4.3.3 Example PINE.CONF-FIXED file  L This file contains configuration settings that should not be modified by the user.M  8       # ------------- EXAMPLE PINE.CONF-FIXED ----------       # local host namet        user-domain=vms.huji.ac.il       # SMTP server         smtp-server=vms.huji.ac.il8       # ------------ END OF EXAMPLE PINE.CONF-FIXED ----     4.3.4 Example PINE.CONF file.e  K This file contains default configuration settings. Users may override theseeC settings with entries in their personal .PINERC configuration file.e    9       # ------------- EXAMPLE PINE.CONF ----------------- $       # viewer for image attachments       image-viewer=xve       # Default INBOX location       inbox-path=INBOX;       # Specify a folder collection for the default mailboxr       folder-collections=[]rA       # Specify where we want copies of outgoing mail to be saved        default-fcc=SAVED-MSGS9       # ---------- END OF EXAMPLE PINE.CONF -------------/     4.4 Server configuration fileO  K The IMAPD and IPOP3D servers read an initial configuration from an optionale configuration file called:       IMAPD_CONF_DIR:IMAPD.CONFd  ? Currently, there are no specific entries required in this file.a    ! 4.5 Effect of Inbox-Path variablee  L The name INBOX is interpreted in two different places. Officially, it is theJ name of the mailbox which receives new mail. Under VMS, new mail is alwaysI delivered to the NEWMAIL folder of the default MAIL.MAI file. The special"L mailbox name INBOX (which is case-insensitive) is recognized by the C-CLIENTL mailbox parsing routines and translated into the appropriate NEWMAIL folder.  M The INBOX-PATH variable defines the name of a folder to be permanently opened L by PINE. It defaults to the word INBOX if not specified.  By setting it to aL non-existent folder, there will be no permanently open mailbox during a PINEJ 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  K Messages may be delivered to a VMS mailbox by several different means. Some  examples include:r  
   * DECnet!   * SMTP mailer, such as UCX MAIL    * MAILBUS/X.400m  O Each message generates its own format of address in the VMS MAIL FROM:, TO: andtO CC: fields which are usually incompatible with the RFC822 format addresses usedbM by PINE and the IMAPD/IPOP3D servers. While this causes no particular problemyC if a message is merely being read, it renders any reply impossible.s  I In order to provide the ability to reply, the various forms of non-RFC822aK address are taken apart and rewritten in a format that is RFC822-compatible O where it is possible to do so. Other addresses are left alone and an attempt is(A made to write them as an RFC1405 compatible local format address.      4.6.1  DECnet transportC  L DECnet addresses have a relatively straightforward format that can be easily( mapped into an RFC822-compatible format.    ! 4.6.1.1 Standard DECnet addressesE  L 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 2   *  namespace:.node::username		DECnet/OSI present      , 4.6.1.2 DECnet address conversion mechanisms  F There are several options for converting a DECnet address in an RFC822 compatible format:  F    * Specify logical names which map a specific node or namespace/node$      combination into a domain name.  I    * Map the DECnet address into RFC1405 compatible local address format. >      [This is the default if no nodename mapping can be found]  L    * Map the nodename and username into an older format "username@nodename".M      [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 conversiont  L By default, the local format DECnet addresses are mapped into a local format  address as specified by RFC1405.  N If the logical name CCLIENT_NORFC1405 is defined, then the local format DECnetO addresses are mapped according to an algorithm used in earlier releases of thisr	 software.m  7 The following table shows the default mappings applied.o  M ----------------------------------------------------------------------------- 0 VMS MAIL Address	RFC1405 Standard			"Old" formatM -----------------------------------------------------------------------------r  A namespace::.node::user	"namespace::.node::user"@domain		user@node   + node::user		"node::user"@domain			user@noded   user			user@domain				user@nodef 			user					user  M -----------------------------------------------------------------------------u   NOTES:K   The domain name is derived from the current system host name, or from ther2   logical name CCLIENT_GW_MAIL11 if it is defined.  L   In the simple case of a local format address that is just a username, thenO   the nodename is added only if it can be determined, otherwise it will be left=   just as the username.   M The resulting RFC822 compatible address then appears as the FROM field of theuK read message, which can then be used as the target of a reply (assuming, ofd- course, that the system has SMTP capability).     + 4.6.1.4 Site-defined DECnet address mappinge  L Logical names may be used to provide alternative nodenames for the convertedH DECnet address. If no matching logical name is found, then the converted address remains as shown above.M  N First, the namespace, node and username parts of the address are extracted andB used to build a logical name which may contain an alternative node7 specification. The logical name has one of these forms:m  ?   * CCLIENT_NODE_namespace_node	For a DECnet/OSI format addressc  4   * CCLIENT_NODE_node		For a DECnet Phase IV address  :   * CCLIENT_NODE		For a non-DECnet (username only) address    K If the generated logical name exists, its value is used to replace the nodet. specification in the converted RFC822 address.   Example:7   If the following address is found in the From: field:         From:  MOONY::SUNGx  :   Then, with no logicals defined, the translation maps to:+        From: "MOONY::SUNG"@domain	! defaulte8     or From: SUNG@MOONY			! If CCLIENT_NORFC1405 defined  G   Otherwise, if CCLIENT_NODE_MOONY is defined to "BEZERK.COM", then theS   translation maps to:        From: SUNG@BEZERK.COM     4.6.2 SMTP transport  L Messages delivered by an SMTP compatible transport generate addresses which,K broadly, are already in the correct RFC822-compatible format. Only a littlee conversion is needed.l     4.6.2.1 Standard SMTP addressesh  I Messages delivered by an SMTP compatible transport have addresses in thisa format:e  >   *  username@system			Raw RFC822 address (allowed in OpenVMS  					6.2 MAIL or above)e  D   *  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.a  N To convert to the RFC822-compatible form, all spurious information is strippedH away, leaving just the 'username@system' part. There are no site-defined options for controlling this.o  =   * Any leading transport name prefix 'tsp%' is stripped awayh  +   * Surrounding quotes, if any, are removedC  >   * Embedded, but unprefixed (by backslash) quotes are removed  G   * 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   K Messages delivered via the MRGATE X.400 messaging system generate addressesrI that are in a pseudo-DECnet format. Although they resemble DECnet in manyl4 respects, they are actually encoded X.400 addresses.      4.6.3.1 Standard X.400 addresses  C 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 mechanismso  F X400 addresses are mapped into their more usual form as a quoted localJ 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  P The X400-GW is obtained from the logical name "CCLIENT_GW_X400", but defaults to4 the string "X400-GW" if no such logical name exists.  6 There are no other site-configurable address mappings.       4.6.4 Other address formatsx  L Messages delivered by another mail transport will have addresses in a formatO that matches none of the above. Such messages cannot be mapped into an SMTP one F without in-depth knowledge of the form of the address. Even if it wereI possible, there is no guarantee that such addresses would be deliverable.m  F Therefore, no attempt is made to convert such addresses into an RFC8229 compatible format and such addresses will be unreplyable.p       4.7 Automatic INBOX filing  H The INBOX is a special folder that receives all new mail delivered to an account.  N Under VMS MAIL, this is the NEWMAIL folder in the default mail file. When mailI is read from this folder, VMS MAIL automatically transfers it to the MAILm  folder in the default mail file.  L With IMAP, and with PINE, messages are NOT automatically transferred; a userD must request explicit filing of a message to another folder. This is incompatible with VMS MAIL.   N 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   M may be defined to the name of a VMS MAIL folder (EG "MAIL") and messages willLN be automatically filed to this folder when the inbox is closed, exactly as VMS MAIL would do.   For example:5   $ define /system /exec cclient_autofileinbox "MAIL"      4.8 Logging and debugging   K Several logicals control the amount of information written to log and debuge files.      IMAPD_LOGFILE? 		Defines a file to which the IMAPD daemon writes basic loggingL 		information.      IMAPD_LOGLEVELe> 		Controls the amount of detail written to the logfile; higher= 		values write more info. A zero value causes no logging infom< 		to be written. Currently causes info generated by the main6 		IMAPD program and the TCP_VMSx modules to be logged.8 		(TCP_VMSx is only logged if compiled with the NETTRACE6 		define and, if it is, cannot be linked with the PINE 		main program).  ; 		Currently, these levels are recognized for IMAPD logging:c   		  0		No logging at all   		  1-10		Standard logging* 				1: basic logging of commands/responses 				2: additional info  5 		  11-20		Detailed logging of I/O (only with NETRACE  				option)r 				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 isl> 		displayed via the mm_dlog callback function and applies only8 		to c-client modules compiled with the LOGTRACE option.M                 Compilation with this option slows execution significantly in %                 the affected modules.s  @ 		At present, these logging and debugging levels are recognized:  3 		  <20		No debugging (but reserved for future use)f   		  21-99		Debugging onr0 				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 isA 		the VMS_MAIL module, and then only if it has been compiled withn? 		the LOGTRACE option. [ I would have added tracing for the TCP.A 		modules here but as these may be used to write the debug output A 		I would end up in a recursive output loop; thus they log with ai 		different method]. 		= 		For the IMAPD application, the debug info is written out asb4 		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 pined( 		debug file if one is being maintained.     4.9 Mailbox Subscription Files  G The IMAP functions 'SUBSCRIBE MAILBOX', 'UNSUBSCRIBE MAILBOX' and 'FIND.? MAILBOXES' use and maintain a list of mailboxes in the VMS file.L SYS$LOGIN:.MAILBOXLIST. This is not a configurable filename.  It is a simple2 text file that can be manually edited if required.      4.10 Mail file prototype logical  N The c-client CREATE function allows the user to create an empty MAIL.MAI file.L The VMS callable mail routines provide no facility to do this so it has beenN implemented manually. It works by getting the FDL specification of an existingM MAIL.MAI file and then creating a new file using that FDL specification. ThisLM ensures that the format of the file is always correct for the current version. of VMS.   L The software will first try to obtain the FDL of the user's default MAIL.MAIO file. If this fails, it will try to obtain the FDL of the file specified by the M CCLIENT_MAILPROTOTYPE logical name. If neither file can be accessed, then theeM create operation will fail. Therefore, it is necessary for the system managerAN 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:  M    * Set the CCLIENT startup file to define the CCLIENT_MAILPROTOTYPE logicale      name to point to:        IMAPD_CONF_DIR:MAIL.MAI      * Login as SYSTEM  9    * Copy SYSTEM's MAIL.MAI file to CCLIENT_MAILPROTOTYPE   P    * Go into MAIL, select the CCLIENT_MAILPROTOTYPE file and delete all messages2      in it. Then purge and compress the mail file.  =    * Make sure that the prototype mail file is World readable~  O Do NOT point CCLIENT_MAILPROTOTYPE st a live MAIL.MAI file. This is because ther= operation will fail should that file be open by someone else.i    I Creation of an empty folder within VMS MAIL is not supported. As such, itLM becomes necessary to 'pretend' to create a folder under certain circumstances I without actually doing it. If we don't, operations like APPEND will fail.F here's what we do:  A   *  If the mailfile does not exist, create it and return successy  J   *  If the mailfile exists, but the folder doesn't, do nothing and return
      success.-  J      In both of the above cases, note the mailfile/folder combination in aN      separate list so that subsequent validity/existence checks can 'find' it.I      This works because VMS MAIL will automatically create a non-existente      folder when needed.  F   *  If both mailfile and folder already exist, return failure status.  N So far, this has not been found to cause any unexpected behaviour. If it does, please report it.D      4.11 Placement of RFC822 headers  M Mail delivery agents will usually place the message into the mailbox with theiN RFC822 headers at the beginning of the message, separated from the body of the message by a single blank line.   O Some will, or can be configured to, place the headers at the end of the message L body, separated by a special separator line.  This is presumably intended toH make it easier for simple mail clients to access the body of the message- without first wading through all the headers.   L By default, the headers are expected to be found at the head of the message.L However, the logical name  CCLIENT_HEADERS_ATEND  may be defined to indicateK that the headers can instead be found at the end.  The value of the logicalh+ name should be the complete separator line.t  N Should this logical name be defined but the separator line not be found withinA the message, then the original VMS MAIL headers will be returned.e   NOTE: L   Should the separator line appear as part of the message body legitimately,L   then the headers will likely get confused. It is STRONGLY recommended thatG   mail delivery agents be configured to place headers at the beginning.      4.12 Mailbox Purging  O A VMS mailbox stores messages in a complex way. When messages are deleted, theyeL are moved to the WASTEBASKET folder. Later, when the mail file is closed theL wastebasket folder is (optionally) emptied by a PURGE operation. The deletedM bytes of the messages stay around until a special RECLAIM operation is forcedeN or until the system thinks there are too many and forces an automatic RECLAIM.  I By default, the C-CLIENT library uses the mail default behaviour and only.F purges messages and reclaims the space occasionally. This makes things* generally more reliable but eats up space.  L If the logical name CCLIENT_MAILFILE_PURGE_RECLAIM is defained to any value,J then the PURGE and RECLAIM operations are performed each time a mailbox is closed.m u 5. KNOWN BUGS AND PROBLEMS ==========================  M There are probably loads left (please tell me !  Code fixes wanted too..) buti@ this release fixes all those that I have been able to determine.     5.1 Corrupt Mail Files  L Although not strictly a PINE related bug, problems can arise if the MAIL.MAIO file is corrupted in some way. A number of potential corruptions have been seenlK that can cause problems which PINE cannot handle (VMS MAIL will likely also I crash in a a similar manner). Some known ones are briefly described here.r       5.1.1 Empty Foldersg  N It is not supposed to be possible to have an 'empty' folder in MAIL.MAI but itN is possible to create one by exploiting a bug in callable MAIL (at least it isJ at version 6.2 of VMS). This causes PINE and IMAPD to get confused and may0 crash or otherwise misbehave shortly afterwards.    . 5.1.1.1 Detecting the empty folders corruption  L You can detect this sort of corruption quite easily. Simply go into VMS MAIL+ and SELECT the suspect folder. The message:i    'selected 0 messages'   rather thanv    'no such folder'S   indicates corruption.i    + 5.1.1.2 Fixing the empty folders corruptionA  N You cannot delete this empty folder at all. What has to be done is to copy allK messages to a completely new mail file and then delete the old corrupt maile0 file. This sequence should deal with the problem     1. Go into VMS MAIL   %   2. For each folder in the mail filel   	*  SELECT folderi  	*  MOVE/ALL folder  newmailfile  N   3. Ensure that the mail file is completely empty of messages. If not, repeat      step 2.  J   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  L 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  L The documented limit on a mail message record is 256 bytes. However, mail isH capable of delivering longer lines into a mailbox and will under certainL cirumstances. If this happens, PINE and IMAPD (and VMS MAIL) will crash whenO trying to read the long record into a buffer. There is no known way to read themE whole record so the best course of action is to delete the message inm	 question.C    ' 5.2 Parallel PINE and VMS MAIL sessionsn  K Use of PINE (or the IMAPD server) implictly assumes exclusive access to theeO mail folder. Unfortunately, it doesn't have this. If another PINE, IMAPD or VMSlM MAIL session is also accessing the same folder and messages are deleted, this / may result in unexpected PINE or IMAPD crashes.a       5.3 Message Deletion  K When PINE, or a client using the IMAP/POP servers, deletes a message from adI folder, the display still shows the message as being there.  It will only N disappear from the display when the folder is closed and re-opened.  This is aM limitation on the c-client routines which access the mailbox and is primarily 1 due to the way in which VMS MAIL handles folders.   M It is possible that this limitation may be removed in a future release but ite is unlikely.      0 5.4 Notification of new INBOX mail does not work  O For similar reasons to those outlined in 5.3 above, no 'new mail' notificationsnO are issued while the INBOX remains open.  To see new mail, you must close, theneN 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. m 6. REPORTING A PROBLEM ======================  N If you encounter a problem with PINE, first be certain that it is NOT simply a, setup or configuration problem. For example:  J    * Read the documentation on setup to make sure everything has been done      correctly.N  (    * Check all logical names are correct  7    * Check contents of configuration files are correct.e  3    * Check access to configuration files is correctw  0    * Check quotas and privileges where relevant.    M When reporting a problem, it is important to give sufficient details to allowA= that problem to be reproduced. Typically, you should include:-  ;    * System config (machine, VMS version, Which C compiler)a      * Logical name definitions.      * All configuration files  /    * What you did to create the error (exactly)s  M    * A copy of the message (if any) that PINE was trying to read at the time.-  7    * Copies of all error messages and trace/debug logs.   L Try enabling all debugging (using the -d9 switch on the PINE startup commandO and defining the IMAPD_LOGLEVEL logical name to 20 and CCLIENT_LOGLEVEL logicalaL to 30). The .pine-debugx file and the IMAPD_LOGFILE will then contain useful	 pointers.   K If you can, build a DEBUG version of the utility that fails and display then( following items at the point of failure:      * Call stack   8    * The current line in each active module on the stack  O    * Values of any variables relevant to the current line at each level (ensure G      that they are displayed in a format appropriate to the type of thei      variable.  L All information about the specific problem can be sent to me and I'll try toO fix it. However, please try to send problem reports only if they appear to be aoB bug in PINE. I'm not keen on simply debugging a duff configuration6 unless it actually results in a crash of the software.  J Requests for enhancements to PINE should not be sent to me unless they areN specifically related to the VMS port; otherwise send them to the developers at the University of Washington.C N 7. SUMMARY OF LOGICAL NAMESr ===========================e  F Several logical names are used to control the actions of the software.     7.1 C-CLIENT Logical Names  J These logical names affect any application which makes use of the C-CLIENT library.     * CCLIENT_AUTOFILEINBOXh: 		Controls whether messages in the INBOX are automaticallyA 		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" willS& 		provide compatibility with VMS MAIL.  ' 		Default: Messages are not auto-filed.      * CCLIENT_GW_MAIL11SA 		Defines the 'local-domain-name' to use when a DECnet address isr 		mapped into RFC1405 format.a  1 		Acceptable Values: Any valid internet host name   ' 		Default: The local internet host names       * CCLIENT_GW_X400 = 		Defines the 'x400 gateway' host name to use when mapping anu 		X.400 address into SMTP.  0 		Acceptable value: Any valid internet host name   		Default:  "X400-GW"s       * CCLIENT_HEADERS_ATEND ? 		Controls the placement of RFC822 headers. If defined, headersm< 		are assumed to have been placed at the end of the message,, 		separated from it by a fixed line of text.  5 		Acceptable values: the text delimiting the headers.w  5 		Default: Headers exist at the start of the message.      * CCLIENT_INBOXFOLDERNAMEo< 		Defines the name of the folder in the default mail file to' 		which the reserved name "INBOX" maps.s  ' 		Acceptable values: A mail folder name    		Default: NEWMAIL     * CCLIENT_LOGLEVEL; 		C-client library debug level. Debugging output applies to'A 		modules compiled with the LOGTRACE option and is written to the 6 		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.a   		Acceptable Values: Any stringM  - 		Default:  No purge or reclaim is performed.      * CCLIENT_MAILPROTOTYPEi@ 		Defines a file whose format will be copied when creating a new 		file.a  1 		Acceptable values: name of a non-open mail filel   		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  1 		Acceptable values: Any valid internet host namet  > 		Default: The current host name if possible otherwise nothing     * CCLIENT_NODE_nodegA 		The host name to use when converting a DECnet IV address of thes 		form 'node::user' to SMTP.  1 		Acceptable Values: Any valid internet host nameh   		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.s  1 		Acceptable Values: Any valid internet host name    		Default: uses the name 'node'r     * CCLIENT_NORFC1405pA 		Controls how DECnet addresses are converted to SMTP. If definedu< 		(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 the5 		RFC1405 standard: '"node::user"@local-domain-name'.t  0 		Acceptable values: Anything (value is ignored)  ) 		Default: Map using the RFC1405 standarda     7.2 PINE Logical Names  , These logicals control the PINE applications  
   * PINE_ROOTr: 		The root of the tree containing the PINE executables and  		configuration files. REQUIRED.   * PINE_DIR? 		The directory containing the pine executables for the currente  		system architecture. REQUIRED.     * PINE_EXE9 		The PINE.EXE image for the current system architecture." 		REQUIRED.s     * PINE_CONF_DIRl8 		The directory containing the PINE configuration files. 		REQUIRED.w       * 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 A 		messages by creating a batch job and submitting it to the queueM= 		define by this name. A separate process is required to takeG: 		jobs from the queue and process them. Supported ones are= 		MULTINET's own SMTP delivery agent and the freeware packageg 		VMS-SENDMAIL.b  5 		Acceptable values:	Any batch queue used by the mail	 		delivery agent.h  3 		Default: Mail is delivered using the foreign mailo 		interface in callable mail.A     * PINE_MAIL_PROTOCOL= 		Defines the foreign mail transport name E.G. "SMTP" or "MX"l< 		overrides MAIL$INTERNET_TRANSPORT if this is also defined.  ; 		Acceptable values: The prefix of the shareable image usedg. 		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_TRANSPORTl@ 		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.  3 		Acceptable values:	Same as for PINE_MAIL_PROTOCOL   = 		Default: Mail cannot be sent via the foreign mail interfaceo( 		(unless PINE_MAIL_PROTOCOL is defined)     7.3 IMAPD Logical Names   4 These logicals control the IMAPD server applications     * IMAPD_ROOT; 		The root of the tree containing the IMAPD executables and	  		configuration files. REQUIRED.  
   * IMAPD_DIRs? 		The directory containing the IMAPD executable for the currenti  		system architecture. REQUIRED.  
   * IMAPD_EXEe: 		The IMAPD.EXE image for the current system architecture. 		REQUIRED.i     * IMAPD_CONF_DIR8 		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 IMAPDe; 		server starts (as an unsolicited response) and thereafteri9 		whenever the modification date of the file has changed,a5 		indicating new or updated information is available.t  0 		Acceptable value: name of a readable text file  ' 		Default: No alert messages are outputi       * IMAPD_LOGFILEe? 		If defined, specifies the name of a log file created for eachS 		IMAPD session.  ? 		Acceptable values: Name of a file that should be created. Theo, 		directory must be writeable by the server.  ! 		Default: No log file is createdl       * 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.t  % 		Acceptable values: An integer value    		Default: 0       * IMAPD_TIMEOUTo< 		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  5 These logicals control the IPOP3D server applicationse     * IPOP3D_ROOTo< 		The root of the tree containing the IPOP3D executables and  		configuration files. REQUIRED.     * IPOP3D_DIR? 		The directory containing the IMAPD executable for the currentd  		system architecture. REQUIRED.     * IPOP3D_EXE; 		The IPOP3D.EXE image for the current system architecture.  		REQUIRED.*     Y# 8. RELEASE NOTES AND CHANGE DETAILSR. ===================================             N This section details major changes since the previous release and a history ofN specific changes to the software. Later changes may supercede earlier changes.    ) 3.91 BETA 12 - CHANGES SINCE 3.91 BETA 11e) -----------------------------------------t  ' Summary of new features in this releaseo' =======================================l  K   * Support for sending mail via MULTINET SMTP and via the freeware packagen     VMS-SENDMAIL.e  O   * Support for RFC822 headers at the end of the text body, via the new logicall!     name "CCLIENT_HEADERS_ATEND".   ;   * Support for TCPWARE in the SERVICE_SETUP.COM procedure.t  M   * Support for RFC1405 local format addresses, when DECnet addressare mappedn     to internet format.   H   * New IPOP3D_SETUP.COM procedure to define logical names for the IPOP3     server.t  I   * New CCLIENT_SETUP.COM module to define logical names that control the      C-CLIENT operation.l  E   * New VMSBUILD option (NOTCP) to specifically select NO TCP supportI  N   * New VMSBUILD option (COMPILE-ONLY) to specifically select compilation onlyF     (no link phase). Link may be done separately with LINK-ONLY option  M   * New logical name CCLIENT_MAILFILE_PURGE_RECLAIM; if defined, each mailboxsH     close operation will perform a purge of the WASTEBASKET folder and a&     reclaim of deleted messages/bytes.  (   * Additional RFC822 headers recognized  L   * Where VMS MAIL headers are rewritten, continuation lines are inserted if     necessary for long lines.a  M   * Separate directories for VAX and ALPHA objects and executables during thelJ     build. Building for VAX no longer destroys the objects/executables for     ALPHA, and vice versa.    1 Summary of changes that may affect configurationsd1 =================================================T  L   * INSTALL.COM has been modified to expect new logical names IPOP3D_DIR andK     IPOP3D_DIR. The IPOP3D executable is now copied to this location rathero     than to IMAPD_DIR.       Implications:eG 	* Check that the IPOP3 logicals are defined before running INSTALL.COMn           to update the system.n  K   * A FIND ALL.MAILBOXES command no longer displays the true folder name tolI     which the INBOX name maps. This is to prevent clients from displayinge.     the same folder under two different names.       Implications: E 	* Check the .MAILBOXLIST file for all users and remove any referencesG           to the real name of the INBOX folder (which is NEWMAIL unlesseB           redefined via the logical name CCLIENT_INBOXFOLDERNAME).  J   * A mailbox close does not now perform an automatic purge/reclaim on theM     mailfile. Define the new logical name CCLIENT_MAILFILE_PURGE_RECLAIM (anyt%     value) to restore this behaviour.   K   * A number of the IMAPD_xxx logical names which were not exclusive to theaL     IMAPD daemon have been renamed to CCLIENT_xxx to more accurately reflectB     the fact that they affect anything using the C-client library.       Implications:mA 	* Check configuration logical names and convert to the new namese? 	* Check IMAPD_SETUP.COM and (new) CCLIENT_SETUP.com proceduress8  	* Ensure CCLIENT_SETUP.COM is called at system startup    I   * DECNET Addresses are now mapped according to the RFC1405 standard andtK     an optional DECnet-to-SMTP relay address may be included. A new logicalnK     name "CCLIENT_GW_MAIL11" optionally defines this relay. The new logicalrG     name "CCLIENT_NORFC1405" can be used to restore previous behaviour.        Implications:oF 	* Ensure that the new address syntax is correct for your SMTP server.8 	  if not, consider using the old syntax or defining the7           CCLIENT_NODE_xxx logicals to perform mapping.m    N   * Due to PINE (and VMS MAIL) being picky about the case of folder names, theM     case-insensitivity of folder names has been removed. Folder names ARE nowlD     case-sensitive. The special name INBOX remains case insensitive.       Implications:sG 	* Check that subscribed folder names in the .MAILBOXLIST file for eachmG 	  user match the case of the folder name in the corresponding mail.maisD 	  file. Any that do not should be converted by manually editing the 	  .MAILBOXLIST file.s      + Summary of major bugs fixed in this releasei+ ===========================================p  D   * The potential for ACCVIO's during PINE startup has been reduced.  O   * Spaces around VMS MAIL addresses are now stripped off before rewriting themeL     into RFC format. Separators between addresses are also properly handled.  L   * Rewriting of non-SMTP addresses better handles the various formats found     in VMS MAIL.  J   * The append routine no longer aborts when a NULL flags specification is     passed.   M   * Creation of a mailbox in a non-existent subdirectory now properly creates      the subdirectory first.   H   * Use of an empty mailbox no longer causes an IMAPD or PINE crash whenG     the mailbox is pinged. Instead, it correctly returns zero messages.n  H   * When setting new mail count, make sure we don't go negative to avoid.     large newmail counts caused by wraparound.  M   * Address rewriting of some DECnet addresses no longer aborts when compiledn     with VAX C or GNU C.       Change History ==============   General Changesi ---------------n  G   * INSTALL.COM : Source of executables now taken from the architecture "     specific executable directory. 								17-APR-1997u  J   * AAAREADME.TXT : Added a new section summarizing all logical names used     by the software. 								17-APR-1997c  J   * AAAREADME.TXT : Added a nore about the COMPILE-ONLY option to VMSBUILD 								17-APR-1997L  M   * BUILDKIT.COM : New procedure added which will build a binary-only kit foreL     distribution. A number of options are provided to control how the kit is8     built. Thanks to Claudio Allochio for the procedure. 								16-APR-1997r  L   * AAAREADME.TXT : New NOTCP option documented; this specifically selects a     build without TCP support. 								16-APR-1997n  L   * INSTALL.COM : Now copies the IPOP3D server to the place specified by theL     IPOP3D_EXE logical; MTEST is copied into PINE_DIR rather than IMAPD_DIR. 								16-APR-1997t  J   * IPOP3D_SETUP.COM : Added this procedure to define the logicals for theL     IPOP3 server. It needs to be tailored for local use and then called from     system startup.' 								16-APR-1997n  N   * PINE_SETUP.COM : Added example of the PINE_SENDMAIL_QUEUE logical name forE     supporting the direct interface to MULTINET_SMTP or VMS-SENDMAIL.e 								16-APR-1997o  H   * AAAREADME.TXT : Added details of configuration for use with MULTINET     SMTP and VMS-SENDMAIL. 								16-APR-1997r  =   * CCLIENT_SETUP.COM : Added details of the new logical namee#     CCLIENT_MAILFILE_PURGE_RECLAIM.m 								14-APR-1997   H   * AAAREADME.TXT : Re-organised descriptions of mail servers to be more?     geenric, with specific server details in separate sections.e 								14-APR-1997f  I   * CCLIENT_SETUP.COM : new module which contains new logical names (more H     precisely, those renamed from the IMAPD_xxx suite) which control theO     actions of any application using the c-client library.  These logical namespL     have the form CCLIENT_xxx. Configurations should be changed to use these     new logical names! 								20-MAR-1997m  L   * IMAPD_SETUP.COM : Removed those logical names which were not specific toO     the IMAPD daemon, renamed them to CCLIENT_xxx, and placed them into the new !     setup file CCLIENT_SETUP.COM.f 								20-MAR-1997n  A   * IMAPD_SETUP.COM : Added example of the IMAPD_GW_X400 logical.t 								21-FEB-1997p  K   * AAAREADME.TXT : Revised section on address conversions to bring it intoE2     line with new X400 stuff and new parsing code. 								21-FEB-1997   J   * AAAREADME.TXT : Added a section on reporting problems and what sort of     detail is required.h 								21-FEB-1997t  L   * AAAREADME.TXT : Updated with details of RFC1405 conformance and add info/     about the IMAPD_HEADERS_ATEND logical name.a 								14-FEB-1997c  O   * IMAPD_SETUP.COM : Updated examples on address mappings to be clearer and tor2     include detail on the IMAPD_GW_MAIL11 logical. 								12-FEB-1997c  L   * AAAREADME.TXT : Added note about need for DEC patch to C RTL for certain8     combinations of DEC C compiler and OpenVMS versions. 								6-FEB-1997  M   * VMSBUILD.COM : Add a new build option NOTRACEBACK to allow the generationtP     of images that may be INSTALL'ed with privileges. Thanks to Claudio Allochio     for the suggestion.l 								30-JAN-1997   ;   * AAAREADME.TXT : Rewrote section on configuration files.h 								30-JAN-1997A  L   * AAAREADME.TXT : Added a new section describing how to set up the networkE     servers over the TCPWARE stack. Thanks to Curtis Williams for theN     information. 								30-JAN-1997a  N   * AAAREADME.TXT : Added a note about the required header file NETLIBDEF.H ifJ     building with NETLIB support. It's not necessarily there if NETLIB wasN     installed as part of another MADGOAT product. Thanks to Clive Mcdowell for     spotting this. 								29-JAN-1997i  O   * AAAREADME.TXT : Added info about potential problems when the same folder iseO     opened by two different sessions at the same time. Essentially, this is notc     allowed! 								29-JAN-1996t  I   * AAAREADME.TXT : Added more info on folder-collections, showing how todL     display all folders in the default MAIL.MAI file rather than just INBOX. 								28-JAN-1998e  H   * SERVICE_SETUP.COM : Now includes rudimentary support for the TCPWAREA     network stack. Thanks to Curtis Williams for the information.a 								28-JAN-1997   9   * SERVICE_SETUP.COM : Miscellaneous changes to clean up2 								28-JAN-1997    C-Client Library Changes ------------------------  N   * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Object modules and executables are nowK     placed in an architecture specific directory to avoid problems when therE     software is built for multiple architectures in the same cluster.o 								17-APR-1997e  H   * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Added the COMPILE-ONLY option toD     suppress the link phase. Incompatible with the LINK-ONLY option. 								16-APR-1997a  O   * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Added the NOTCP option to build withouto     TCP support. 								16-APR-1997t  K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the match_folders routine to	I     suppress the display of a folder name if it is actually the real namenN     of the INBOX folder. This is to prevent clients displaying the same folder4     under two different names and causing confusion. 								16-APR-1997	  H   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed a bug in the DECnet nodenameO     mapping routine which failed under VAX C or GNU C but was fine under DEC C.cM     The problem was caused by a NULL pointer passed to sprintf in a situation      similar to this:)         sprintf(output,"%.*s", n, string)aI     if string is NULL and n is ZERO, nothing should be output and sprintfeO     should not try to access the NULL parameter. In DEC C it doesn't but in VAXsK     C and GNU C it does. Changed the NULL pointer to be a pointer to a NULL      string instead.V 								15-APR-1997o  N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Improved parsing of local-part addressesO     when rewriting an SMTP format address to better handle embedded quotes thatn     are not \ prefixed.g 								15-APR-1997   H   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added checks for additional RFC822K     headers to the __is_rfc822 routine. Also added a more general check for_I     extension headers. Thanks to Claudio Allochio for the updated list ofe     headers and code fragments.w 								12-APR-1997a  J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Updated the mailbox close routine to4     perform a purge/reclaim only if the logical nameG     CCLIENT_MAILFILE_PURGE_RECLAIM exists. This is a change to previousl     behaviour. 								12-APR-1997	  N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Changed some logical names from IMAPD_xxM     to CCLIENT_xx where the function is specific to the c-client library (andnL     hence affects all appications) rather than specific to the IMAPD server. 								21-MAR-1997o  N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Updated the address rewriting mechanismsG     to better handle addresses containing quotes and quoted characters." 								20-MAR-1997   L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Updated the 'stritem' routine to allow9     the specification of a set of terminating characters.t 								19-MAR-1997i  N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the 'strbreak' routine, similar toD     strpbrk, which searches a string for one of a set of characters. 								19-MAR-1997u  K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Extensively restructured and debuggedoJ     the address rewriting code. It now seems to deal correctly with a wideK     range of different address styles that can appear in FROM:, TO: and CC::I     fields of VMS MAIL (though it's still a long way from being perfect).sE     Thanks to Claudio Allochio for a useful testbed of x400 and other 
     messages.T 								20-FEB-1997o  L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the address scanning routines;     to deal with embedded quotes and '\' quoted characters.i 								20-FEB-1997a  I   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Discovered a major problem with thecN     'search' function. It doesn't work for all strings. rather than rely on itN     further, added a new routine 'strfind' which is similar to 'strstr' exceptN     that (a) it is case-insensitive and (b) the string being searched is not aH     null terminated string (length is a separate parameter). Changed allG     references to 'search' into 'strfind' in VMS_MAIL.C where feasible.i 								20-FEB-1997	  I   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : First attempt at adding support for L     X.400 syntax received via the MRGATE. Thanks to Claudio Allochio for the"     basic idea and code fragments. 								18-FEB-1997g  J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Updated the address parser to handleF     properly spaces and commas as address separators, allowing for the9     presence of quotes around all or part of the address.c 								18-FEB-1997D  I   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : First attempt at adding support forfN     RFC822 headers appearing at the end of the text body. The new logical nameK     "IMAPD_HEADERS_ATEND" may be defined to the EXACT line used to separateeI     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-1997e  O   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Replaced a number of string concatenation B     operations by using the sprintf routine to do it more cleanly. 								14-FEB-1997  								O   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added a check on the length of an addressaJ     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 nameM     "IMAPD_NORFC1405" to cause nodename mappings in the default case (no node :     mapping logicals defined) to revert to the old format. 								14-FEB-1997e  N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added code to strip leading and trailingJ     blanks form each VMS MAIL address before rewriting to RFC format. This@     prevents spurious spaces appearing in the converted address. 								14-FEB-1997   O   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Restructured the VMS MAIL headers addressTE     rewriting code. The old way was getting messy and hard to follow.o 								13-FEB-1997e  N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Small bug was detected in the parsing ofN     the VMS MAIL FROM: field, which resulted in an extra space appearing afterJ     the name. caused by over-zealous pointer auto-incrementing. Now fixed.1     Thanks to Claudio Allochio for spotting this.t 								12-FEB-1997u  J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Encoding of DECnet address is now inK     RFC1405 format, if no other node mapping can be determined from logical H     names. The name of the mail relay is determined from the new logicalK     name IMAPD_GW_MAIL11. Thanks to Claudio Allochio for the suggestion ands     code modification. 								12-FEB-1997o  L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Previous attempt to fix up the problemJ     of negative new mail counts had a comparison reversed. Corrected this. 								10-FEB-1997i  J   * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Simplified the building of the TCPJ     support module. We now name the TCP modules to include the name of theL     stack they support (TCP_VMS_NETLIB.C, TCP_VMS_MULTINET_C, TCP_VMS_NO.C).0     This greatly simplifies the build procedure. 								7-FEB-1997  J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : In a few places, strncpy and strncatM     had been used without being followed by the addition of a null byte. ThisPO     lead to some unterminated strings being used and was (part of) the cause of      mysterious aborts. 								6-FEB-1996  K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Discovered that the main PINE routine L     is fussy about folder name case. Our attempt to lowercase everything wasJ     incompatible with this. As a result, the code to lowercase all mailboxM     names has been removed to avoid conflict. This now means that all mailboxMN     names will be mixed case. The foldername part will be in the case in whichF     VMS MAIL stores it (and you CAN have separate upper and lower caseJ     foldernames in VMS MAIL).  This will make it more likely that a folderJ     specification error will be made by a user, but what IS specified will     behave consistently. 								4-FEB-1997  N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The APPEND function was not handling theM     case where the flags specification was a NULL pointer, which it can be ifuN     you look at the call from the mail_append routine in MAIL.C ! As a result,O     it aborted. Since we don't actually use this variable (VMS mail provides noaN     way to action the flags anyway), all references were removed thus avoiding>     the problems associated with dereferencing a null pointer. 								3-FEB-1997  L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The CREATE function failed to properlyO     create the subdirectory if it did not exist. This was due to a fault in theeL     parsing of the mailfile to extract the directory specification; the NULLK     byte was not added to the end, leaving an unterminated string. Thus theC     directory name was bad.r 								3-FEB-1997  J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The PING routine was not prepared toL     deal with a non existent mailbox and would crash. This would happen if aJ     mailbox was empty or if it had just been created. Fixed up the code to     handle it somewhat better. 								29-JAN-1997N  M   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added a check to the set new mail countuO     routine so that the count is never decremented below zero. Because VMS MAILaL     keeps the count as an unsigned 16 bit number, this could result in large      message counts around 65535. 								29-JAN-1997        PICO Changes ------------  M   * [.PICO]VMSBUILD.COM : Object modules and executables are now placed in anaJ     architecture specific directory to avoid problems when the software is9     built for multiple architectures in the same cluster.e 								17-APR-1997C  L   * [.PICO]VMSBUILD.COM : Added the COMPILE-ONLY option to suppress the link2     phase. Incompatible with the LINK-ONLY option. 								16-APR-1997l  M   * [.PICO]VMSBUILD.COM : Added the NOTCP option to build without TCP networks     support. 								16-APR-1997      PINE Changes ------------  M   * [.PINE]VMSBUILD.COM : Object modules and executables are now placed in anoJ     architecture specific directory to avoid problems when the software is9     built for multiple architectures in the same cluster.  								17-APR-1997   L   * [.PINE]VMSBUILD.COM : Added the COMPILE-ONLY option to suppress the link2     phase. Incompatible with the LINK-ONLY option. 								16-APR-1997   M   * [.PINE]VMSBUILD.COM : Added the NOTCP option to build without TCP networkf     support. 								16-APR-1997   M   * [.PINE.OSDEP]SENDMAIL_VMS. : included modifications from Claudio AllochioeI     to support sending mail out via his VMS-SENDMAIL package and also viaf7     MULTINET SMTP, in addition to the existing methods.= 								16-APR-1997p  C   * [.PINE]OS_VMS.C : In build_path, there was the possibility of a.K     negative array subscript. Restructured the code to ensure this does notg     happen and cause an ACCVIO.r 								17-FEB-1997e  I   * [.PINE]INIT.C : Applied official patch from U of W. Thanks to Claudion!     Allochio for passing this on.  								14-FEB-1997h  M   * [.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  s) 3.91 BETA 11 - CHANGES SINCE 3.91 BETA 10l) -----------------------------------------s  ' Summary of new features in this releasei' =======================================o  /   *  IMAP CREATE of an empty mailbox now works.n  O   *  IMAP APPEND to a mailbox now works correctly; with the limitation that thenO      flags settings are not actioned. This allows messages to be copied betweene      different systems.   N   *  IMAP SUBSCRIBE/UNSUBSCRIBE mailbox commands are now fully implemented andJ      maintain a mailbox subscription file which the FIND MAILBOXES command      interrogates.  N   *  Message flags (SEEN, ANSWERED, FLAGGED) are remembered across sessions asN      they are stored in the mailfile with each message. In particular, SEEN isD      no longer set based on whether or not it's in the INBOX folder.  K   *  Full mailbox names are now properly supported (I.E. ---  ~/... format)o  J   *  Wildcard patterns are now supported on IMAP 'FIND' commands. WildcardN      characters are '*' (match any string), '%' and '?' (both match any single      character).  O   *  PINE's FCC (File Carbon Copy) option and the postponed messages option are       implemented.e  M   *  Improved caching of messages; access to messages is significantly fasterP	      now.h  7   *  Significantly less memory used to access messages.P     *  New logical names: B 	IMAPD_INBOXFOLDERNAME	Defines an alternative to "NEWMAIL" for the 				name of the INBOX folder.l  ? 	IMAPD_AUTOFILEINBOX	If defined, seen messages in the INBOX areT3 				automatically filed (moved) to the folder namedi/ 				by this logical when the mailbox is closed. 3 				Leave undefined for compatibility with previous9( 				releases or with standard PINE/IMAPD' 				functionality; define to "MAIL" for   				compatibility with VMS MAIL.  K         IMAPD_MAILPROTOTYPE	Defined to a dummy mail file so that the CREATE 1 				function can 'borrow' its FDL description for1, 				the new file. Accessed if the user's own0 				default mail file cannot be used. If neither3 				can be accessed, the CREATE function will fail.	  7   * Support for CMU in the SERVICE_SETUP.COM procedure.i  L   * Many internal debugging and tracing facilities now incorporated into theM     VMS MAIL driver. At log levels above 20, these write detailed info to thenN     logfile and also to the application's debug output). Note, use of this MAYL     generate invalid IMAP output so it is not advisable to set the debuggingJ     globally. Modules MUST be built with the LOGTRACE option otherwise theL     debug output is ineffective. For the network module, the option NETTRACE     must be used.i  L   * Additional keywords recognized as the start of RFC822 headers in the VMS     MAIL message._    1 Summary of changes that may affect configurationsX1 =================================================   N   * Prior to this release, FCC and postponement of messages did not work. ThisG     turned out to be because of the complexities of folder creation andrM     validity checking. Now that this has all been fixed up, FCC and postponedaI     messages work correctly. If these have been defined as recommended inEM     versions B10 and earlier, the configuration may now be changed to specifye     any arbitrary folder(s).    G   * Previously the IMAP FIND commands would ignore the wildcard mailbox	I     pattern and just list all folders in the default mail file. Now, thiscK     pattern is not ignored and only matching folders are listed. Any clientnN     using the IMAP server should be checked to make sure that it specifies theJ     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 the0 					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.      K     The above may alter the list of folders which PINE displays by default.     + Summary of major bugs fixed in this releasey+ ===========================================f  M   * PINE can now open multiple mailboxes (EG INBOX and the currently selected	>     folder) without clashing in their use of global variables.  0   * 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   7   * Crash dumps now get copied to SYS$LOGIN:.PINE-CRASHa  =   * PINE now works in a subprocess. Previously it would hang..     GENERAL CHANGES: ================  K   * SERVICE_SETUP.COM : Added some fixes for the UCX stack setup. Thanks toT     Clive Mcdowell.a 								23-JAN-1997n  O   * IMAPD_SETUP.COM : Updated with an example of IMAPD_INBOXFOLDERNAME logical.u 								22-JAN-19979  J   * AAAREADME.TXT : Rewrote some sections of the install and configuration     notes to make them clearer.l 								21-JAN-1997e  J   * AAAREADME.TXT : Added notes on the .MAILBOXLIST file maintained by the/     subscribe and unsubscribe mailbox commands.t 								16-JAN-1996t  A   * AAAREADME.TXT : Added section numbering and a contents table.  								9-JAN-1997  O   * AAAREADME.TXT : Updated some details on the restrictions and bugs that have      been removed/fixed.  								8-JAN-1996  H   * AAAREADME.TXT : Added note about how INBOX-PATH variable affects the!     handling of the INBOX folder.P 								6-JAN-1996  J   * AAAREADME.TXT : Added documentation on the IMAPD_AUTOFILEINBOX logical	     name.  								3-JAN-1997  2   * AAAREADME.TXT : Added additional notes on CMU. 								2-JAN-1997  D   * SERVICE_SETUP.COM : Add a rudimentary section for the CMU stack. 								2-JAN-1997  O   * IMAPD_SETUP.COM : Updated with example of IMAPD_AUTOFILEINBOX logical name. I     Also added a note to each logical that can also affect either PINE orc     IPOP3D.b 								20-DEC-1996U  M   * AAAREADME.TXT : Added info on MAXBUF sysgen parameter, more on debugging,tK     info on upgrading an existing setup, and info on various considerationso/     needed before setting up a network service.  								20-DEC-1996e  5   * AAAREADME.TXT : Updated info on CMU configurationd 								11-DEC-1996   G   * AAAREADME.TXT : Added some details on nodename mapping via logicals9 								11-DEC-1996.  @   * AAAREADME.TXT : Added some notes on the debugging facilities 								10-DEC-1996P  N   * SERVICE_SETUP.COM : Fixed a silly bug caused by writing the wrong filenameN     into the configuration procedure created. Also fixed missing 'file= ' spec     in the UCX command.d 								10-DEC-19962  ;   * VMSBUILD.COM : removed extra ']' from a directory spec.e 								26-NOV-1996d   C-CLIENT LIBRARY CHANGES:i =========================e  I   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The append function was writing thepH     message into the mail folder but not adding the transport prefix (EGJ     "SMTP%.."). Added the ability to determine the prefix from the logicalO     names and write the address in this format if one is found. Otherwise writeS     the address as is. 								24-JAN-1997P  D   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : According to the callable mailL     documentation, a mail file may not contain more than 256 characters in aO     single record. However, recently encountered a message where one record waseN     over 4000 bytes long. Can't handle this properly but added extra checks inN     the read routine to at least detect it when debugging is on (so we can seeI     which message it is). Discovered that the mail status returns are notfL     defined anywhere so, by trial and error, determined the status codes and     defined them manually. 								24-JAN-1997   N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : A few cleanup changes to make the moduleM     compile without error on GNU C. Mainly mismatched parameter declarations.u 								22-JAN-1997   J   * [.IMAP.ANSI.C-CLIENT]ENV_VMS.C : Added a cast to a use of cuserid() inM     order to make it compile error free under GNU C (the include files do not A     seem to define it as a function returning (char *) anywhere !) 								22-JAN-1997u  L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed a bug in the append routine thatM     was writing out data beyond the stored headers. Corrected the code to usenO     the size counter rather than expect the null string terminator (which isn't	     there!). 								22-JAN-1997L  K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Changed the flag that says 'have beenIM     pinged' from an int to a bit and changed its name to 'pinged' rather thanw     TotalMessagesCount.i 								22-JAN-1997   A   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Many minor cleanup changes.s 								22-JAN-1997   J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The create/append functions were notO     behaving when the folder did not exist. This was because VMS has no concept1K     of an 'empty' folder. Added some stuff to fake empty folders. Following N     this change, postponed messages and FCC work properly even when the folder     does not exist.d 								22-JAN-1997	  C   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : renamed a number of routines.d 								22-JAN-1997e  M   * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Added a long-standing missing /definesO     for the name STDPROTO. This allows the higher level driver function to know.M     that the standard prototype driver is the VMS_MAIL one. Without it, there2O     is no prototype driver and things nose-dive. This particularly affected theHL     mail_create routine; but seems to affect nothing else. Creating an empty%     mail file now works at long last.t 								17-JAN-1997   N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added a 'vms_mail_folder_exists' routineJ     to simplify various places where we want to know if the folder exists. 								17-JAN-1997r  N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.H : Reduced the constant that determines theN     initial size of the mail stream LOCAL buffer. No real need to do so but it'     saves memory for smaller mailboxes.w 								17-JAN-1997r  N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the 'vms_parse_mailbox' routineM     to accept NULL for output buffers (for cases where we don't actually needo     the result). 								17-JAN-1997u  M   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the find_all routine to remove J     the specific check for 'POSTPONED-MSGS'. Matching changes to PINE haveN     made it look for this folder using the standard find mechanisms so no need     for a special check. 								16-JAN-1997   J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Combined routines to get informationF     about the current message into a single general 'get message info'O     routine. This is faster and cleaner than having a separate routine for each      item needed. 								16-JAN-1997   O   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added single character wildcarding to the G     matchwild routine. Both '%' and '?' now match any single character.t 								16-JAN-1997s    H   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Implemented the subscribe mailbox,K     unsubscribe mailbox, find mailboxes (which was previously equal to findEJ     all.mailboxes) commands. These maintain and use a mailbox subscriptionE     database file called SYS$LOGIN:.MAILBOXLIST (a simple text file).n 								15-JAN-1997     M   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Implemented the code to CREATE an emptyoG     MAIL file. This works by using FDL$GENERATE to get the format of anoH     existing mail file (either the user's default mail file, or the fileI     specified by the new logical name IMAPD_MAILPROTOTYPE) and then usingdG     FDL$CREATE to generate a new one. However, for some reason (not yetiM     determined), the vms_mail_create routine never seems to get called by theeA     application, and the status of a CREATE command is always OK.B 								14-JAN-1996C    J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Restructured VMS MAIL header parsing+     routines to be cleaner and work better.  								14-JAN-1997r  L   * [.IMAP.ANSI.C-CLIENT]VMSIO.C : Removed the single character tracing codeA     from the VMSIO.C module. It's too verbose for real debugging.a 								13-JAN-1997c  I   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added 'chrcasecmp' and 'strcasecmp'EK     function to allow case independent character and string equality tests.l 								13-JAN-1997t    M   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the vms_mail_append routine. This O     implements the IMAP APPEND function and allows messages to be copied into am     mailbox from the network.e 								10-JAN-1997     N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Now that the message flags are picked upO     from the mail file itself, the NEW status of a message cannot be determinedkM     by its presence in an INBOX. This causes some confusion about whether the E     new mail count can be updated. Now, the new mail count is updated7O     immediately that the message is read based on whether it's now seen but waseJ     not previously seen. This is handled within the vms_mail_update_status&     routine. It is folder independent. 								9-JAN-1997  K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : I believe that implementation of fullaN     mailbox name specifications is now complete so the ALLOWFULLMBXSPEC optionO     has been removed and such specifications are always allowed everywhere now.  								9-JAN-1997  E   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the ability to define thelO     folder name to which INBOX maps. By default it is "NEWMAIL". An alternativeaO     folder may be specified by defining the logical name IMAPD_INBOXFOLDERNAME.nK     Note that this controls only how the VMS_MAIL interface interpretes the.I     mailbox name INBOX and has nothing to do with the setting of the PINEA     variable 'Inbox-Path'. 								9-JAN-1997  L   * [.IMAP.ANSI.IMAPD]IMAPD.C : Removed the call to mm_exists() added to theL     IMAPD application a long time back since it was only added to compensateJ     for what now turns out to be a missing call to mail_exists on the open     routine (see below). 								9-JAN-1997  K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added a missing call to mail_exists()lI     in the mail stream open routine, so that the application is correctlyr(     notified of the number of messages.  								9-JAN-1997  M   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Reworked the message caching yet again.OO     Both headers and text body are now cached after the first read of a messageiN     from the mail file. Subsequent reads of the message (headers or text body)L     are taken from the cache. The cache is only flushed when the mail stream     is closed. 								9-JAN-1997  H   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed up a major bug in the SEARCHO     subfunctions. Each routine assumed that the message information had alreadyhO     been read into memory. It hadn't, so erroneous results were returned. Fixed-N     this by ensuring that a fetchstructure is done before starting the search.J     A side effect of this is to introduce a long pause on the first searchK     while the whole folder is read in. If no search is done, the closing ofAO     an INBOX takes longer because this reads in all messages in order to searchh      for SEEN UNDELETED messages. 								8-JAN-1997  K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Sorted out some bugs with the messagetK     status flags maintenance. It now remembers the flags across sessions byEL     using callable mail's flags field (marked and replied). Also pick up theO     new mail flag from the same place, so that messages can be truly flagged asSN     new or seen, regardless of whether they are in the INBOX or not. Note thatN     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.L     NOTE: A side effect of this change is that the update_status routine hasM     been implemented. This appears to be called for EVERY message in a folder H     when that folder is closed and results in a long pause if the folder     contains many messages.  								8-JAN-1997    N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Reworked the folder listing code so thatF     we can pass parameters to it (like a wildcard pattern). Also addedL     rudimentary pattern matching (IE * is allowed anywhere). The output fromI     the IMAP FIND commands now contains only mailbox names that match the=J     pattern. Note that the mailfile portion of the pattern may not contain6     wildcards - only the foldername part. For example:   	*		} 1         mail*		}  All are valid wildcard patternss         *faq		}         ~/mail/xyz*	}              But:D 	~/*/newmail	}  Invalid because the mail file part may not contain a 	~/mail*/jo*	}  wildcard  L     Additionally, the mailbox name is now fully lowercased before passing it,     back to the application, INBOX excepted. 								7-JAN-1997  M   * [.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  I   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added first attempt to retrieve and J     maintain the message flags (new, marked, replied etc.) in the VMS MAILJ     file. The current ones are now correctly displayed but PINE hasn't yetE     got the hang of updating them so it remembers them for next time. L     Implemented the vms_mail_update_status routine to do all this (which wasM     there before but did nothing!). Also added a new routine to get the flagsi,     from the mailfile when it's first read.  								7-JAN-1997  N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : If the INBOX (IE VMS NEWMAIL folder) hadN     been open for some time, the newmail count it obtained when it started mayN     no longer be accurate. Therefore when updated on closure of the inbox, theM     system's new mail count for the user might be incorrect. Fixed this up byiI     obtaining the current new mail count just prior to updating it by thedN     number of seen messages. This makes it as accurate as it can be within the4     normal timing windows of getting and setting it. 								6-JAN-1997    N   * [.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  E   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Renamed vms_split_message to beCL     vms_read_message; used the LOCAL->buf structure as the temporary messageO     buffer (also reduced its default size from 65000 to 25000 bytes); moved theeM     caching into vms_read_message and removed a few unnecessary memory bufferuP     copies. I hope this will make access to the message text quite a bit faster. 								6-JAN-1997  O   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Removed the global message cache; made ittG     local to the mailstream instead. This should remove the last set of /     potential conflicts between open mailboxes.h 								3-JAN-1997  J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : added additional keywords that couldA     indicate the start of RFC822 headers after the VMS MAIL ones: N     read-receipt-to and x-authentication. Also added test for headers normallyI     associated with newsgroups, to deal with mail posted via a newsgroup.  								3-JAN-1997  L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Converted all mail and message contextN     references either to local variables or to references to the LOCAL copies.F     Removed all the global versions and stuff relating to stacking and     unstacking the context.s 								3-JAN-1997    F   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Made the VMS_MOVE_FOLDER routineH     redundant by recoding other routines that call it to use alternativeL     methods. This was necessary because it was the ONLY routine that did notL     have sufficient context info passed to it. As such, we needed to rely onP     global context, causing bugs galore. Now it's gone, all the context info can;     be stored and used from the mailstream LOCAL structure.h 								3-JAN-1997  H   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Begin to remove the use of globalsM     for mail and message context. Started by initializing them into the LOCAL.J     structure and passing the context as parameters to subsidiary routinesK     where possible. The procedure vms_move_folder, which was added to allowyM     PINE to do special things, is a problem because it has no means to obtain=L     the original mail context, therefore we have to keep the global variable     around until this is fixed.	 								3-JAN-1997  H   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : reworked the ping function so thatF     the global 'TotalMessagesCount' is removed and becomes part of theK     LOCAL structure. Unexpected pings should not now mess up message counts E     for another mailstream. Removed all the related global variables.E 								3-JAN-1997  N   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Rewrote the vms_split_message routine toL     be more structured. Also remove dependence on null terminated strings soC     that mail messages may now contain null bytes without problems.e 								3-JAN-1997  J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Removed all references to the global8     'Globalmailfile' as rewrites have made it redundant. 								2-JAN-1997  J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added more checking to the 'isvalid'(     routine and more debug tracing code. 								2-JAN-1997  L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Now keep the parsed mail file name andO     folder name in the LOCAL structure rather than reparsing it each time, alsoeJ     use the 'inbox' flag in the LOCAL structure correctly. The test for anO     inbox is no longer reliant on the folder name everywhere - this flag is setaL     by the mailbox name parser and stored in the LOCAL structure. It is TRUEH     only when the mailbox name is "INBOX" or if the parsed result is the,     "NEWMAIL" folder in the default mailbox. 								2-JAN-1997  K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.H : Moved some defines from VMS_MAIL.C toeJ     here; also updated the VMSMAILLOCAL structure to include space for theM     parsed filename and foldername, the mail/message context and the count ofnD     current messages. Made provision for storing the cache here too. 								2-JAN-1997  L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the ability to configure whetherI     SEEN messages in INBOX are automatically filed away to another folderaN     on closure. This is controlled by the logical name IMAPD_AUTOFILEINBOX. IfL     not defined, messages are left in INBOX, otherwise they are moved to the)     folder specified by the logical name.o 								20-DEC-1996a    J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added more debugging code to various
     routines.i 								20-DEC-19961    F   * [.IMAP.ANSI.C-CLIENT]TCP_VMS.H : A problem with CMU has been notedJ     whereby the value of the BUFLEN constant, at 8192, causes CMU to fail.O     First fix was to drop the value to 4096 but then realized it was actually aMI     SYSGEN problem. The value of MAXBUF should be set to at least that ofEM     BUFLEN and, in any case, the recommended value for CMU is 8300 so put theSN     value of BUFLEN back up to 8192. Thanks to Sterling Bjorndahl for spotting     the problem. 								20-DEC-1996G    K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Recognized additional keywords as the N     start of RFC822 headers following the VMS MAIL standard set. This helps toO     prevent problems when these headers appears as the first line of the RFC822 J     headers. Ideally, we should add all known headers here, although it isO     likely impossible to cater for all possible 'X-...' headers. Thanks to Alanr     Flavin for noting this.  								19-DEC-1996y  I   * [.IMAP.ANSI.C-CLIENT]VMSIO.C : Fixed up a tiny bug whereby the formatrN     code for printing a status code in the logfile was set to '%0x08x' insteadM     of '0x%08x'. This caused apparently incorrect status output. Non fatal toe     everyone though. 								10-DEC-1996t  H   * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : removed USELOGGING and MAILTRACE6     options, replaced them with NETTRACE and LOGTRACE. 								10-DEC-1996o    L   * [.IMAP.ANSI.C-CLIENT]TCP_VMSx.C : reworked the logging code slightly. ItL     now requires compilation under the NETTRACE define. I couldn't make thisJ     work via debugging, as described for VMS_MAIL below, because the debugK     output recurses back into the tcp routines and causes problems. Added ah%     DBGPRINT macro to make it easier.M 								10-DEC-1996M    L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : reworked the debugging code to use theO     mm_dlog facility. This causes debug output to go to PINE's debug file or topK     the IMAPD logfile and as unsolicited response codes to the client. Only9L     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   O   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : If the nodename mapping logicals were not.M     defined, a bug caused the translation of node::user style of addresses toED     be reformatted into an invalid RFC address. This has been fixed. 								10-DEC-1996e  J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : updated the chkstat routine to writeK     the error message via mm_dlog if not aborting, rather than use fprintf.e 								10-DEC-1996l  L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed a major bug whereby the updatingO     of the new mail count updated the wrong user. We hadn't added the parameter O     that specifies which user to update so it updated the current user. If that O     happened to be the IMAPD daemon running as SYSTEM, then SYSTEM's mail count L     got updated. It was OK within PINE because the current and intended userM     are the same. Thanks to David Mathog for spotting (and suggesting the fixh     for) that one. 								9-DEC-1996  M   * [.IMAP.ANSI.C-CLIENT]NEWSRC.C : Fixed two problems.  a backup copy of the I     .newsrc file was being created with a name of .newsrc.old; as this ismL     invalid on VMS, change the name to .newsrc-old.  Also deleted a previousM     copy of the backup so avoiding the accumulation of more and more versionsM     of it over time. 								28-NOV-1996s  L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The IMAP COPY function was returning aJ     failed status even though the copy worked. This was due to an invertedM     status check on return from the call to vms_mail_message_copy. Fixed this      up.  								26-NOV-1996r     PICO CHANGES ============  M   * [.PICO]OS_VMS.C : Attempted to make use of the POPEN and PCLOSE functionsSJ     in DEC C (not available with VAX C) but ran into trouble with them notE     being recognized by the compiler (!) yes, that's right - they ARErO     documented but are NOT in the RTL (at least not with VMS 6.1!). So, insteadcM     I've ifdef'ed the code with a HAVEPOPENCLOSE name. Once we find out underiN     what conditions they are available, the build procedure can be modified toB     define it accordingly. At the moment it is not defined at all. 								17-JAN-1997r     PINE CHANGES ============  L   * [.PINE]TTY_VMS.C : Installed patch to make PINE work when started from a8     subprocess (EG SPAWN PINE). Thanks to Phil Ottewell. 								22-JAN-1997e    H   * [.PINE]OS_VMS.C : When attempting to write the crash dump file, pineL     compared the struct stat elements 'st_dev' from two different calls (oneO     from fstat and one from stat) for equality. Unfortunately, these are stringnN     pointers and strcmp should be used to test for equality. Having done this,     we now get a crash dump! 								20-JAN-1997     L   * [.PINE]SEND.C : Put back the code to deal with the POSTPONED-MSGS folderO     as all the changes made to folder handling should make this work (it does!)m 								16-JAN-1997u  L   * [.PINE]OS_VMS.H : Changed the DF_MAIL_DIRECTORY from SYS$LOGIN: to null.M     Now all folder names should be treated as folders within the default mail,M     file and found if they exist. Removes the need for a special check in thesL     find all mailboxes routine of the c-client library (see above). However,M     I'm still not getting the composer's 'postpone' option to work. The debug C     trace shows the folder being found, but it's not being written.d 								16-JAN-1997	  L   * [.PINE]MAILCMD.C : Managed to do away with the need for the special callI     to VMS_MOVE_FOLDER when saving a message to another mailbox. This wasgK     always problematic because the callable mail context variables were notcL     available resulting in some messy (and buggy) fiddling about with globalK     contexts. Now this is OK, we can remove the only routine that relies onEL     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 11A 								26-NOV-1996.  ( 3.91 Beta 10 - Changes since 3.91 Beta 9( ----------------------------------------   C-CLIENT LIBRARY CHANGES:t =========================c  J   * [.IMAp.ANSI.C-CLIENT]TCP_VMSL.C : Fixed a strange bug where the serverF     code tried to accept a call from the wrong port, but only when theO     underlying stack was CMU. It worked fine on UCX and MULTINET. This appearedsO     to be caused by the initialization of a socket structure to set up the portlO     being corrupted. Couldn't find the bug specifically but re-ordered the codeeO     and it went away! I'll keep trying to find the underlying cause but for nowt     it works (or seems to).i 								22-NOV-1996v  K   * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Now that the TCP module is separate9K     and includes it's own stack-specific headers directly, there is no need G     to add /include=(stackpath) to the compilation line. This makes allnJ     modules, with the exception, of the TCP_VMSx.C one, stack independent.&     Modified VMSBUILD.COM accordingly. 								20-NOV-1996I  K   * [.IMAP.ANSI.C-CLIENT]OS_VMS.H : Reworked headers to minimize conflicts.  								19-NOV-1996N  N   * [.IMAP.ANSI.C-CLIENT]OS_VMS.C : Remove the include of TCP_VMS.C as part ofN     the separate compilation changes. Also reworked the header files to try to     minimize conflicts.y 								19-NOV-1996   O   * [.IMAP.ANSI.C-CLIENT]TCP_VMSx.C : Separated the TCP modules into separatelytN     compilable ones so that socket headers can be made specific. This avoids a8     lot of problems caused by incompatible header files. 								19-NOV-1996h  L   * --- C-CLIENT library now compiles under GNU C, not entirely cleanly, but
     it works!  								18-NOV-1996L  ?   * [.IMAP.ANSI.C-CLIENT]VMSIO.C : Added missing declaration ofh     tcp_server_init routine. 								18-NOV-1996s  M   * [.IMAP.ANSI.C-CLIENT]*.* : Miscellaneous changes to make the VMS portionsaL     of the code compile more cleanly under GNU C. Still getting warnings but2     it works now. The following changes were made:8        env_vms.c	Add include unistd.h to declare cuserid;        log_vms.c	added casts to structure initialization int/ 			server_login() to fix pointer compatibility.n=        os_vms.c		Added ifdef around socket includes for GNU Cd5 			and added a struct definition for timeval as GNU C 1 			finds it in two incompatible places otherwise. C        vms_mail.c	many pointer mismatches fixed up, and conflictingh6 			static/non-static declarations matched up properly. 								18-NOV-1996X    L   * [.IMAP.ANSI.C-CLIENT]VMS_TCPL.C : Add support for GNU C.  GNU C does notN     recognize some non-standard definitions in netlibdef.h (variant struct andN     variant union). Got around this by copying the declarations we need inline.     (still use the real include if not GNU C).M     This makes the GNU C support prone to breaking due to changes in a futureaN     release of NETLIB (This version is 2.0J) but is a small price to pay if it
     works. 								18-NOV-1996e  H   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The VMS MAIL headers include SUBJ.M     However, the rfc822 parser does not recognize this as a subject field, soaK     pine's index display and headers on messages show a blank field for theeF     subject of any message received via VMS/DECNET mail. Fixed this by-     rewriting the 'SUBJ' header as 'Subject'.a 								15-NOV-1996d    L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the VMS mail to RFC822 headerN     conversion routines to properly deal with the unquoted '@' form of addressN     introduced in VMS 6.2 (and available on earlier VMS via unofficial patchesN     to VMS MAIL).  Now an address of the form 'user@system' is left untouched. 								15-NOV-1996o    O   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : When a message has been sent and receivediH     locally via VMS MAIL, the mail headers on the message are simply theJ     standard VMS MAIL headers (FROM, TO, CC, SUBJ).  The code parses theseK     and converts addresses to an RFC822 syntax. However, the lack of a date*I     field causes some problems when PINE wants to display the date in thejK     folder index list. Got around this by extracting the date of receipt ofbL     the message and adding a date field with this date in it. Also store the     date in the elt. 								14-NOV-1996   H   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the vms address parser toI     recognize the form  xyz%"....."  and just return the ..... part. ThisLM     should deal with MOST (not all) smtp style addresses that VMS sees in itseK     FROM, TO and CC headers. There are still a few formats that will returnsO     funny address (EG: DSN%xxxxx) but it's a good start. I may make it possibleeG     to use logicals to remap the addresses based on the XYZ part later.t 								14-NOV-1996o    O   * [.IMAP.ANSI.C-CLIENT]OS_VMS.C : ifdef'ed the include of some of the network D     files to do different things for GNU C (which doesn't handle the)     <xyz/name.h> syntax the way we want).M 								7-NOV-1996    L   * [.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 ============  E   * [.PICO]OS_VMS.C : A few mods to declarations to clean up compiler.!     warnings on mismatched types.h 								18-NOV-1996u  K   * [.PICO]COMPOSER.C : Removed incorrect filename separator character fromtH     a filename. Due to unix/vms filename differences. Thanks to Sterling     Bjorndahl. 								12-NOV-1996   K   * [.PICO]ATTACH.C : Allowed the characters '[' and ']' in the filespec ofh:     an attachment under VMS. Thanks to Sterling Bjorndahl. 								12-NOV-1996.   H   * [.PICO]DISPLAY.C : Added a 'movecursor' call which seems to fix up aJ     display problem. Maybe a bug in VAXCRTL? Thanks to Sterling Bjorndahl. 								12-NOV-1996f  L   * --- PICO now compiles, error free, with GNU C !! Still a few warnings to
     clear up.  								12-NOV-1996o  H   * [.PICO]ANSI.C : Added an include for gnu_hacks header so that we canH     use the special GNU C GLOBALDEF macro (globaldef isn't understood byD     GNU C). Thanks to Sterling Bjorndahl. Also slightly reworked the&     ifdef sequence to make it clearer. 								12-NOV-1996t  H   * [.PICO]EDEF.H : Added an include for gnu_hacks header so that we canG     use the special GNU C GLOBALREF macro as globalref isn't understoodeL     by GNU C. Thanks to Sterling Bjorndahl. Also slightly reworked the ifdef      sequence to make it clearer. 								12-NOV-1996y     PINE CHANGES ============  O   * [.PINE]VMSBUILD.COM : Now that the TCP module is separate and includes it's.@     own stack-specific headers directly, there is no need to addN     /include=(stackpath) to the compilation line. This makes all modules, withE     the exception, of the TCP_VMSx.C one, stack independent. Modified      VMSBUILD.COM accordingly.	 								20-NOV-1996   J   * [.PINE]VMSBUILD.COM : It appears that the GNU C link loses some globalL     information if the modules are retrieved from a library. This caused theN     initialization of the mail drivers to fail weirdly.  Modified VMSBUILD.COMN     to link the modules explicitly rather than fetch them from the library. It!     now appears to work properly.e 								18-NOV-1996o  :   * --- PINE now compiles reasonably cleanly under GNUC !! 								18-NOV-19969    O   * [.PINE]TTY_VMS.C : Corrected definition of get_windsize() function to matcho     declaration. 								18-NOV-1996i  I   * [.PINE.OSDEP]SENDMAIL_VMS. : Added some missing function declarationsr(     to get a cleaner compile under GNUC. 								18-NOV-1996r  H   * [.PINE]OS_VMS.C : Various mods from Sterling Bjorndahl incorporated;M     fixes up a problem writing the crash dump and gives a cleaner compilation,     under GNU C. 								18-NOV-1996a  G   * [.PINE]OS_VMS.H : Added suitable #ifdef so that both GNUC and DEC CAH     are flagged as ANSI compilers. Thanks to sterling Bjorndahl for the      GNU C mods.C 								18-NOV-1996b  A   * [.PINE]PINE.H : Updated the version string to reflect Beta10.n 								4-NOV-1996     GENERAL CHANGESe ===============o  E   * AAAREADME.TXT : Added a short note to the stack information aboutAE     configuring CMU to fire up the imapd server when a call comes in.  								22-NOV-1996l  N   * VMSBUILD.COM : Removed all remaining references to stack specific includesL     and added the OPTIMIZE option. Optimization is off by default because itM     can cause erratic behaviour, due to optimizer bugs. This option allows it'K     to be switched on if you are sure that your compiler's optimizer is ok.- 								21-NOV-1996d  N   * INSTALL.COM : Added this procedure to copy executables to the right place,F     after first checking that the necessary logical names are defined. 								20-NOV-1996d  O   * AAAREADME.TXT : Added new RESTRICTIONS and PRE-REQUISITES section; fixed a  ;     few typos and missing definitions in the setup section.e 								20-NOV-1996o  L   * PINE_SETUP.COM : The f$getsyi("ARCH_NAME") lexical was not present priorI     to VMS 5.5 so inserted a check for this. Default to "VAX" if earlier.  								12-NOV-1996   M   * IMAPD_SETUP.COM : The f$getsyi("ARCH_NAME") lexical was not present priorlI     to VMS 5.5 so inserted a check for this. Default to "VAX" if earlier.e 								12-NOV-1996M    F   * VMS_GNUC_LINK.OPT : Create a linker options file for GNU C support 								10-NOV-1996s  G   * USER_SETUP.COM : Added a procedure to create a user under which the L     servers can run. Thanks to Ian Miller of softel for the UCX information. 								10-NOV-1996A  C   * SERVICE_SETUP.COM : Added a procedure to create the TCP serviceEN     configuration for the IMAPD daemon. Thanks to Ian Miller of softel for the     UCX information. 								10-NOV-1996e  B   * AAAREADME.TXT : Updated documentation with better installationL     instructions. This time, included more comprehensive notes on setting up.     the underlying network stack and services. 								7-NOV-1996    I   * VMSBUILD.COM : Rewrote the procedures to be cleverer at detecting the M     compiler and network stack to use automatically, and to check the network N     and compiler selection options for validity a lot better. Also, first stabO     at incorporating support for GNUC (very difficult as it wont recognize somelL     of the NETLIB declarations and has trouble finding socket related header     files).e 								7-NOV-1996 C' 3.91 Beta 9 - Changes since 3.91 Beta 8E' ---------------------------------------r   C-CLIENT LIBRARY CHANGES:r =========================G  L   * [.IMAP.ANSI.IMAPD]IMAPD.C : Thanks to Matt Madison of TGV/CISCO, finallyL     stomped on the accursed bug that prevented the server from accessing theK     network when compiled with VAXC. It turns out that network applicationseK     must set up their channels to the network BEFORE any other C RTL I/O. IhO     thought this had been done but forgot that there's a call to fopen() to setoN     up the logfile BEFORE the call to openio() to initialize the network. ThisO     was done so that openio() could log its actions. Now that I've moved things J     around, the server works but logging from within openio() is no longer
     possible.n 								1-NOV-1996    I   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Implemented mail_move and mail_copyP     functions. 								1-NOV-1996    I   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Fixed a minor bug in VMS_MAIL whichCN     prevented calls to 'islower' rtl function being found with VAXC. This is aB     macro under VAXC and so needs an include of ctype.h. Added it. 								31-OCT-1996l    K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added code to make the mail_fetchfasttE     routine work, Quick and dirty, it just calls mail_fetchstructure.b 								31-OCT-1996B    E   * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Added two additional options:.;     MAILTRACE: to compile in the vms mail tracing code, and M     ALLOWFULLMBXSPEC: to compile in support for arbitrary mailboxes specifiedpI     using the ~ format. These options are available only for the C-clientl     build procedure. 								31-OCT-1996h    H   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : added some additional tracing codeB     to follow the mail file/folder open and close actions. This isL     conditionally compiled in when /DEFINE=MAILTRACE is specified at compile&     time. trace output goes to stderr. 								31-OCT-1996E  K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : PINE keeps INBOX open all the time so	M     it is necessary to support several independent open streams (at least twon"     for IMAPD and three for PINE).N     The existing code doesn't support this and we get very confused if foldersM     are opened and closed successively. Attempt to provide better support for 7     this by allowing a small stack of context pointers.dI     This should now allow PINE to switch properly between INBOX (which ishG     kept permanently open), a folder list, and any other folder withoutSL     disaster. Just to play safe I've made room for 5 stacked sets of contextI     info and added checks for stack over and underflow. I may have brokenfN     the inbox ping function however as I'm still not sure how this is supposed#     to work (see KNOWN BUGS above).i 								31-OCT-1996b    L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Modified the mail_close routine to NOTK     move \SEEN messages from NEWMAIL to MAIL. Although this is how VMS MAILeM     does it, it is NOT how PINE on other systems works and is less intuitive.oJ     NOTE that this also applies to the IMAPD and IPOP3D servers - messages'     remain in the INBOX unless deleted.i 								30-OCT-1996     M   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added date parsing, even for non-rfc822sL     format messages by calling the MAIL$ routine to get the date. PINE stillG     seems unable to display the date in the folder index for non RFC822M     messages though. 								30-OCT-1996d  O   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Made the support for '~' format mailboxestD     conditional on the ALLOWFULLMBXSPEC define. This is because fullI     implementation of this is some time away - it needs a rewrite of this6M     module and some features we need are not present in callable mail (create %     empty mailbox, append to folder).  								30-OCT-1996h  K   * [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : Added /include=[] when the null tcpi     stack was selected.  								29-OCT-1996   O   * [.IMAP.ANSI.C-CLIENT]TCP_VMSN.C : Fixed a bug in the null tcp stack supportN&     which had a 'then' after an 'if' ! 								29-OCT-1996h    <   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the logical nameH     MAIL$INTERNET_PROTOCOL (usually defined in VMS 6.2)  as one of thoseE     examined to define the SMTP transport when sending a message. Thef3     logical name PINE_MAIL_PROTOCOL overrides this.t 								9-OCT-1996  J   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Improved the VMS MAIL header parsingE     code which remaps based on logical names to take into account any.@     namespace that appeared (this is for DECnet/OSI addressing).  7     An address of the form:			(DECnet Phase V format..) !         NAMESPACE:.NODENAME::USER9  !     is now converted to the form:h         USER@ADDRESS  C     where ADDRESS is obtained, in order, from one of the following:oL         - Translation of the logical name  IMAPD_NODE_'namespace'_'nodename'         - The original NODENAME     8     An address of the form:			(DECnet Phase IV format..)         NODENAME::USER  !     is now converted to the form:t         USER@ADDRESS  C     where ADDRESS is obtained, in order, from one of the following:w@         - Translation of the logical name  IMAPD_NODE_'nodename'         - The original NODENAMEp    2     An address of the form:			(No DECnet format..)         USER  !     is now converted to the form:t         USER@ADDRESS  C     where ADDRESS is obtained, in order, from one of the following:s. 	- Translation of the logical name  IMAPD_NODE         - The current hostname  	     NOTE:yO       This affects messages returned by the IMAPD and IPOP3D daemons, and local        mail read by PINE.  	     NOTE:uJ       This is a CHANGE from the previous beta release, where the namespaceM       was IGNORED. If you had namespaces before and used logicals of the formCL       IMAPD_NODE_'nodename' to remap addresses, you MUST now use logicals ofH       the form IMAPD_NODE_'namespace'_'nodename' to specify the mapping.M       For most users, this is probably just a matter of adding the word LOCALcO       into the logical name (since LOCAL is the most common default namespace).e 								3-OCT-1996    I   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Corrected the 'is_valid' routine tocH     return T only if the mailbox name parses correctly. previously, thisJ     routine always returned T (and, for some reason, called gethostname!).  K   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : More rewrites to tidy up the handling2E     of mailboxes. In particular, defined the syntax of a mailbox morem*     precisely. The following are accepted:  ?          INBOX		--> selects [default mail file, NEWMAIL folder]n:          folder		--> selects [default mail file, 'folder']  F          ~/folder	--> selects [mail file in login directory, 'folder']L          ~/subdir/folder--> selects [mail file in relative subdir, 'folder']  M     The file used is always called MAIL.MAI and must existed in the specified1A     directory. Mail files with any other name are not accessible.C  O     This change brings the mail folder syntax into line with unix imapd serversfL     and prevents users accessing any mail folder outside their own directory0     tree (a big problem with previous releases!)  O     NOTE: This change affects the syntax of a folder collection. previously the.N     form SYS/[] was allowed and this found all folders in the default mailbox.N     In fact the SYS syntax was a dummy and ignored. Now it MUST NOT be present.     due to the redefinition of mailbox syntax.  L     NOTE: a syntax involving any non-default mailbox does not currently workL     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  L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Extensive rewrites to tidy up the codeH     and fix bugs in determining the user's default mail directory. Added5     a routine to parse a mailbox and insert defaults.i 								1-OCT-1996  L   * [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added a routine to check for an rfc822H     header and a general routine to parse the message body and split outL     the headers and text. This code was duplicated in several places and was     very messy.i 								30-SEP-1996n     IMAPD CHANGES: ==============  G   * [.IMAP.ANSI.IMAPD]IMAPD.C : Modified the client to use the originalVI     mailbox spec supplied by the user. Previously it had been modified tosN     overcome the limitations of the VMS_MAIL interface module. Now all parsingM     of a mailbox name is done within VMS_MAIL, where defaults are inserted as      necessary. 								3-OCT-1996     IPOPD CHANGES: ==============  J   * [.IMAP.ANSI.IPOPD]IPOP3D.C : Modified the client to use the fixed nameL     INBOX. Previously it needed to use the '(dir)newmail' syntax to get overJ     the limitations of the VMS_MAIL interface module. Now all parsing of aJ     mailbox name is done within VMS_MAIL.C, where defaults are inserted as     necessary. 								3-OCT-1996    O   * [.IMAP.ANSI.IPOPD]IPOP3D.C : Added calls to the mail_fetchstructure routineTN     in order to make sure that the size counts are up to date. Previously theyP     had assumed that the rfc822_size field was uptodate and correct (it wasn't). 								3-OCT-1996    
 PINE CHANGES:p
 =============t  B   *  [.PINE]OS_VMS.C : Changed case of calls to LIB$FIND_FILE and L      LIB$FIND_FILE_END to match declaration. This causes VAXC a headache and!      gives a compilation warning.  								11-OCT-19965  N   *  [.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    G   *  [.PINE]IMAP.C : Added a special entry point to mm_login (-1) whicheL      retrieves the current username. This is necessary because, unlike unix,J      the IMAPD server does not change its username after a login. Thus theO      VMS_MAIL interface has to obtain the username using the mm_login callback. J      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.V 								30-SEP-1996t     GENERAL CHANGES: ================  L   * AAAREADME.TXT : Added some info on known bugs, VMSBUILD compile options,-     additional notes on miscellaneous things.  								31-OCT-1996M    O   * AAAREADME.TXT : Added some blurb about the differences between unix and VMSsD     mailboxes and the interpretation of the standard mailbox syntax. 								9-OCT-1996    N   * AAAREADME.TXT : Updated the documentation with info on the IPOP3D startup,K     the new mailbox standard formats and the new logical name translations.  								4-OCT-1996    I   * IMAPD_SETUP.COM : Added details of the new logicals with some examplee     definitions. 								4-OCT-1996    N   * VMSBUILD.COM : Redefined P2 to be a list of modules to be recompiled. ThisN     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    N   * VMSBUILD.COM : Merged the DEBUG option into the P1 option list and removedO     all special code dealing with CTYPE and readonly (not needed anymore). ThismJ     latter stuff caused compilation problems with the multinet stack under	     VAXC.  								30-SEP-1996o  ' 3.91 Beta 8 - Changes since 3.91 Beta 7c' ---------------------------------------    C-CLIENT LIBRARY CHANGES:	 =========================I  O   *  [.IMAP.ANSI.C-CLIENT]VMSIO.C : Added a 'special_puts' routine to intercepteD      'puts' calls for the network. Implemented for the IPOP3 server. 								27-SEP-1996I    J   *  [.IMAP.ANSI.C-CLIENT]VMSIO.C : Added a check on the LOG macro; if notJ      defined, define it to do nothing (in case user program has not set up      logging). 								27-SEP-1996     E   *  [.IMAP.ANSI.C-CLIENT]VMSIO.C : Fixed up a bug in the size of thehE      input buffer. It was one too small and didn't leave room for then      terminating null. 								27-SEP-1996     K   *  [.IMAPD.ANSI.C-CLIENT]TCP_VMSL.C : Added the tcp_clienthost routine tosL      get the name of the calling host. This returns, in order of precedence,G      one of:  calling system name, calling system address or "UNKNOWN".e 								26-SEP-1996a  M   *  [.IMAP.ANSI.C-CLIENT]TCP_VMSM.C : Various minor problems fixed up in the.      MULTINET interface. 								25-SEP-1996n    M   *  [.IMAP.ANSI.C-CLIENT]TCP_VMSL.C : Various minor problems fixed up in the       NETLIB interface. 								25-SEP-1996     I   *  [.IMAP.ANSI.C-CLIENT]TCP_VMSN.C : Modified the 'get_local_host_name'n<      routine to call mylocalhost and avoid code duplication. 								25-SEP-1996.    I   *  [.IMAP.ANSI.C-CLIENT]TCP_VMSL.C : Modified the 'get_local_host_name'm<      routine to call mylocalhost and avoid code duplication. 								25-SEP-1996i    I   *  [.IMAP.ANSI.C-CLIENT]TCP_VMSM.C : Modified the 'get_local_host_name' <      routine to call mylocalhost and avoid code duplication. 								25-SEP-1996w    K   *  [.IMAP.ANSI.C-CLIENT]TCP_VMSL.C : Added a routine (tcp_server_init) tonM      the NETLIB interface to set up a TCPSTREAM for the standard I/O channelsf;      allocated by netlib when started by the master server.. 								24-SEP-1996i    K   *  [.IMAP.ANSI.C-CLIENT]TCP_VMSM.C : Added a routine (tcp_server_init) to O      the MULTINET interface to set up a TCPSTREAM for the standard I/O channels.=      allocated by multinet when started by the master server.e 								24-SEP-1996g    H   *  [.IMAP.ANSI.C-CLIENT]TCP_VMSL.C : Modified NETLIB interface modulesA      to support NETLIB 2.0 (NETLIB 2.0 or above is now required).o 								24-SEP-1996        IMAPD CHANGES:
 =============k  H   *  [.IMAP.ANSI.IMAPD]IMAPD.C : Replaced the definitions for the SYSLOGG      calls (which don't exist on VMS) to generate no compiler warnings.	 								27-SEP-1996E    K   *  [.IMAP.ANSI.IMAPD]IMAPD.C : Split out the special vmsio network servertM      intercept code into separate modules VMSIO.H and VMSIO.C. This way, theycH      can be included into other modules as needed (also makes editing of      new releases much easier).i 								27-SEP-1996d    H   *  [.IMAP.ANSI.IMAPD]IMAPD.C : Added a call to log the calling host if      logging is on., 								26-SEP-1996s    O   *  [.IMAP.ANSI.IMAPD]IMAPD.C : Fixed up the special_printf code to return theoM      proper status and, in particular, the error status. Also tidied up a fewe      odds and ends.t 								26-SEP-1996   K   *  [.IMAP.ANSI.IMAPD]IMAPD.C : Fixed up bug whereby vms_mail_open routine0O      could not find mailbox. Don't know why this occurs for sure but it's fixedoI      by checking for a user specified mailbox directory and adding in the L      default if it's not there. The VMS_MAIL open routine should do this butG      it doesn't seem to work right. The previous fix prevented the useru      specifying an alternative.	 								25-SEP-1996M    A   *  [.IMAP.ANSI.IMAPD]IMAPD.C : Modified the special I/O routinel1      'special_printf' to use var_args constructs.u 								25-SEP-1996r    G   *  [.IMAP.ANSI.IMAPD]IMAPD.C : Modified network interface code to use J      only calls to the TCP interface modules, rather than ifdefing code toN      support MULTINET/NETLIB. The main IMAPD program should now be independent"      of the particular stack used. 								25-SEP-1996V            
 PINE CHANGES:.
 =============r  F   *  [.PINE]OS_VMS.C : Fixed a problem with inode comparisons that was(      preventing compilation under VAX C. 								26-SEP-1996     J   *  [.PINE]OS_VMS.C : Modified the network interfaces to use the routinesM      in the tcp interface module rather than using ifdefs to select differenteJ      code for different network interfaces. PINE itself should now be freeJ      of stack dependencies (all hidden in the tcp_vmsx.c modules from the       c-client library).t 								24-SEP-1996o  L   *  [.PICO]COMPOSER.C : function packheader did not allow for a null lengthM      string when checking for a terminating comma. This could cause an accessrN      violation. I've patched the code to check for a null string and ignore it      if it's there.  								13-SEP-1996i  ?   *  [.PINE]PINE.H : Updated version string to indicate beta 8.t 								13-SEP-1996-     POP3 SERVER CHANGES: ====================  H   *  [.IMAP.ANSI.IPOPD]IPOP3D.C : First stab at building the POP3 serverI      for VMS. Included the VMSIO code, some changes to mailbox naming andt<      sorted out the SYSLOG calls (which don't exist on VMS).H      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-1996d     GENERAL CHANGES: ================    J   *  VMSBUILD.COM : Modified each one to accept a VAXC option to allow theL      use of the VAXC compiler instead of the default DEC C compiler. This isL      most useful for testing that the whole thing compiles under the variousM      compilers. The default is to select whichever compiler exists with DEC C.      being preferred.m 								27-SEP-1996n  I   *  AAAREADME.TXT : Added information about special setups that might beT6      necessary for specific stacks (MULTINET and UCX). 								27-SEP-1996s    O   *  VMSBUILD.COM : Tidied these up to add /NOLOG to delete and purge commands,dH      turn off redundant verification and add progress messages, document&      parameters, add LINK-ONLY option. 								27-SEP-1996s    H   *  [.PINE]VMSBUILD.COM : removed all references to stack type from the8      /DEFINE list as it's no longer referenced anywhere. 								26-SEP-1996i    M   *  [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : removed all references to stack typeLA      from the /DEFINE list as it's no longer references anywhere.f 								26-SEP-1996   B   *  Updated details of multiple smtp-servers in the configuration      instructions. 								13-SEP-1996   N   *  Added a MAKECLEAN.COM procedure to delete the various .EXE, .OBJ and .OLB!      files created after a build.s 								12-SEP-1996  o' 3.91 Beta 7 - Changes since 3.91 Beta 6T' ---------------------------------------r  
 PINE CHANGES:o
 =============	  I   *  [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C  Fixed a bug in the use of a foreign L      protocol mail interface (used only if the smtp-server is not defined inI      the pine configuration interface, and selected with the logical namedM      PINE_MAIL_PROTOCOL).  There were several problems found and fixed in thec      vms_mail_send routine:o  O        - No distinction was made between addresses in the TO: field and the CC:s          field.l  P        - Each line of pine's mail file was copied separately to the message bodyL          (This seemed to have a bug causing an access violation) rather than<          using the special filename option in callable mail.  J        - The calls to the callable mail interface specified that a routineK          should be called for each successful delivery but this routine wasrM          defined with the wrong number of parameters (zero instead of three).V 								12-SEP-1996t    J   *  Fixed a very strange timing bug in the purge_status_message() routineM      which supplied sleep with a zero value and somehow locked up when tryingrJ      to send a message.  I've inserted a check to always supply a positive      value to sleep. 								11-SEP-1996h  G   *  With debugging (-d switch) active, the .PINE-DEBUGx file was beingTI      created correctly but the code to rename the highest version did not O      delete any previous version. Of course, it was originally written for unixpO      where renaming into an existing file destroys the existing copy. On VMS it0F      doesn't, but preserves the older version. As this is not requiredK      behaviour, the code has been modified to explicitly delete the highesti      version if it exists. 								11-SEP-1996e  J   *  PINE was attempting to read the default system configuration from theH      SYS$MANAGER directory rather than from the directory defined by the       logical name PINE_CONF_DIR.      This has now been fixed.L 								11-SEP-1996e  H   *  PINE was attempting to read the fixed system configuration from theK      directory defined by the logical name UTIL$ rather than PINE_CONF_DIR.N      This has now been fixed.a 								11-SEP-1996O       GENERAL CHANGES: ================  F   *  Merged changes and installation/configuration files into a single      aaareadme.txt file. 								11-SEP-1996t    K   *  Added some info to the aaareadme.txt file about the configuration fileA      usage and contents. 								11-SEP-19966    K   *  [.PINE]PINE.H : The version ID was still at 3.91-vms-b4; changed it to C      3.91-vms-beta7 to properly reflect the current version number.  								11-SEP-1996p    L   *  The DEBUG code is now compiled in to the PINE utility by default. It isK      controlled by the '-d' switch on the PINE command line. The default ist:      level 2. Switch off completely using the  -d 0  flag. 								11-SEP-1996,    O   *  [.PINE]VMSBUILD.COM : The wrong build procedure for PINE was inadvertentlynD      supplied. It did not have appropriate changes added to properlyJ      distinguish VAX C and DEC C and could confuse compilations under bothM      compilers.  This has now been corrected and the right build procedure isoI      now supplied. This did not prevent the building of PICO or the IMAPDe      daemon. 								11-SEP-1996'  ' 3.91 Beta 6 - Changes since 3.91 Beta 5n' ---------------------------------------.   IMAPD CHANGES: ==============  L   *  [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : In the VMS header parsing, also treat%      "Via:" as a valid RFC822 header.T 								Sept 4, 1996  G   *  [.IMAP.ANSI.IMAPD]IMAPD.C : Bug fixes to the code which parses thehL      messages to sort out the headers from the text and return the length ofO      each. This was not being done under all circumstances and resulted in some 9      short string counts which could confuse the clients.  								Sept 3, 1996      I   *  [.IMAP.ANSI.IMAPD]IMAPD.C : Added fuller checks on I/O status checksUK      to/from the network. Should prevent the code hanging or looping if thep      network connection dies.o 								Sept 3, 1996    L   *  [.IMAP.ANSI.IMAPD]IMAPD.C and [.IMAP.ANSI.C-CLIENT]VMSBUILD.COM : FixedO      the NETLIB support code. This let me find some interesting DEC C and VAX CAN      header conflict bugs. If compiling with DEC C, it is probably inadvisableO      to point logicals like SYS, ARPA etc. to the SYS$LIBRARY If you also have,rK      or previously had, VAXC installed. The logicals cause DEC C to pick upTI      certain header files from there, rather than from the standard DEC CpN      library. Unfortunately, they conflict in their contents and cause variousO      facilities to become unavailable (Someone really should shoot the inventor O      of C header files - they are a facility that is grossly misused and abused-L      even by professional programmers! DEC C writers have not helped mattersA      with their proliferation of ifdefs and modes of compilation)u  G      Also had to slightly edit the code to call the right TCP interfacet#      routine to get the local name.r 								Sept 2, 1996    N   *  [.ANSI.IMAP.C-CLIENT]VMS_MAIL.C : Found a more effective/efficient way ofM      dealing with VMS/RFC822 header selection. Basically, start by extracting L      the VMS MAIL headers into a buffer. If the first line after this set ofO      headers looks like it's an RFC822 style header, copy those over the top ofnO      the VMS MAIL headers rather than reading them into a separate buffer. It'sa"      cleaner and uses less memory. 								Sept 2, 1996    H  *  [.IMAP.ANSI.C-LIENT]IMAPD.C : Added logging to the IMAPD code.  EachO     activation of IMAPD will create a logfile if the logical name IMAPD_LOGFILEhK     is defined with a valid file name. The logical is checked each time the I     IMAPD program starts so it can be dynamically assigned/deassigned forMI     selective logging only when there's a problem to solve.  The level ofnO     logging sent to this file is controlled by the logical name IMAPD_LOGLEVEL.dL     If defined with a numeric value greater than zero, then logging messages%     are written to the IMAPD_LOGFILE.2  2     The level of logging currently recognized are:$       0 or non-numeric: (No logging)  	0 - nothing written to log file  8       1-10: progressively higher levels of IMAP tracing 6         1 - Basic trace of IMAP commands and responses  O       11-20: internal trace of I/O routines and other technical debugging stuffp8 	10: Trace of each read/write of an I/O buffer to stdout- 	11: Trace of every character read from stdinr  O     IMAPD Logging consists (currently) of all commands read by the IMAPD daemondN     and their parameters. NOTE that this includes login passwords at present!!J     Command responses are logged too, though not the data generated by the     command.  M  *  [.IMAP.ANSI.C-CLIENT]IMAPD.C : The alert facility has been implemented. ArN     logical name of the form IMAPD_ALERTFILE can be defined to point to a textO     file. If this text file can be opened, it is copied to the IMAP user at theeD     start of each IMAP session. Each line in the file is printed as:         * OK [ALERT]  text  K     Whether or not the IMAP client can detect and print them is, of course,P     client dependent.  								August 30, 1996i    L *   [.IMAP.ANSI.IMAPD]IMAPD.C : The idle timeout code was originally writtenM     using the ANSI function setitimer. As this is not available with VAX C orDO     with DEC C until VMS 7, the code was originally commented out for VMS. It'sc'     been put back and uses alarm() now.   J     Previously the idle timeout was fixed via a define in the source. I'veM     changed this so that the value can be specified via a system wide logical	     name IMAPD_TIMEOUT.[       For example:0        $ define /system /exec imapd_timeout 1800  I     Sets an idle timeout of 1800 seconds (30 minutes).  A value of 0 (the "     default) sets no idle timeout. 								August 30, 1996n    L *   [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : Added the ability to remap DECNET nodeI     names into replyable internet address format, via logicals. With thise!     facility, a name of the form: @ 	node::username		(or Namespace:.node::username under DECnet/OSI)  +     attempts to translate the logical name:=         IMAPD_NODE_nodeA  2     And the translation is used to replace 'node'.       For example:  K       Suppose the logical name  IMAPD_NODE_BLACK is defined to "campus.edu"M       then the address:a         BLACK::JOHNb         is mapped into:          JOHN@campus.edue  4       With no logical name, the translation will be:         JOHN@BLACK 								August 30, 1996e    L *   [.IMAP.ANSI.IMAPD]IMAPD.C : The program was originally written for unix,J     where INETD can fork off a process with stdin and stdout automaticallyO     connected to the client channels. This has the advantage of allowing things	K     like printf to work directly to the sockets. With VMS, we can't do this G     (easily) so I've resorted to a rather nasty trick of redefining thenO     standard i/o calls with macros to our own special routines which attempt tomM     detect how to properly handle the I/O. Not a pretty sight but it seems to K     work! Handling of network read/write error returns is still a bit flakyeO     though. More work needed. It does now work with MULTINET and (shortly) withw     NETLIB.n  N     I can't claim credit for the idea of intercepting the I/O code - that goesO     to Yehavi Bourvine who added something similar to the 3.89 port. I've takenSN     the idea and refined it to make it cleaner and QIO free. The original codeH     had no concept of restrictions on I/O buffer length so would merrilyL     overwrite code and data structures. My rewrite is careful not to do this,     and splits reads/writes where necessary. 								August 30, 1996e    N   *  [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : When a local or DECnet message is foundO      (IE one sent through normal VMS mechanisms rather than via SMTP software),oL      the IMAPD daemon returns the usual VMS mail header lines. These are, ofN      course, not in rfc822 format and confuse various mail header parsers. TheL      code now modifies these headers (the FROM:, TO: and CC: fields) into an      RFC822-like syntax.  (      The following forms are recognized:2          username		   maps to	username	(No DECnet)=          node::username		   maps to	username@node	(DECnet IV):C          namespace:.node::username maps to	username@node	(DECnet V)	  K      Additionally, a comma separated list of names in each field is allowedoK      and each is converted as above. I don't support space separated names!  								August 15, 1996_    L   *  [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : I've further tidied up all the memoryK      allocation bugs I can find in IMAPD and it appears to be fairly stable]3      now. Big messages may still confuse it though.  								August 14, 1996o    N   *  [.IMAP.ANSI.C-CLIENT]VMS_MAIL.C : The IMAP daemon reads each message intoE      memory. It allocates space for the message using a primitive andmO      inefficient technique and does not check whether the allocation succeeded.IJ      This leads to random crashes later when the invalid pointers are usedJ      (well, it was written originally for unix where error checking is not      necessary ..   :-) )   N      The algorithm has been modified to greatly reduce the memory requirementsN      for each message. This won't stop the crashes but should make them happenG      less often. I could not find a way to die gracefully if the memorytO      allocation failed. At the moment, the check simply prints an error messageCJ      and dies rather than crashing; whether the mail client can print this!      message is client dependent.r  K      One way to circumvent the problem is to increase the amount of virtual[D      memory allocated to the imapd process. This is stack dependent.J      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:L       IMAPD_STARTUP.COM can  be called from system startup to initialize theK       logical names IMAPD uses. Note that this should be tailored for local	       use first!  J       PINE_STARTUP.COM can be called from system startup to initialize theJ       logical names PINE uses. Note that this should be tailored for local       use first!  N       Both files contain examples of the optional logicals. Tailor and comment       to personal taste. 								August 16, 1996 