Newsgroups: comp.os.coherent
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!incom!orfeo!jrix!joachim
From: joachim@jrix.radig.de (Joachim Riedel)
Subject: A guide to port WMAIL 3.63 to Coherent
Message-ID: <1991Apr18.154150.20523@jrix.radig.de>
Organization: Joachim Riedel, Offenbach, West Germany
Distribution: comp
Date: Thu, 18 Apr 91 15:41:50 GMT
Lines: 70

Hi,

Someone told me that he has problems to port WMAIL 3.63 to COherent.
WMAIL 3.63 is a mailx-clone, very good and I used it for several weeks
for mailing. In the mean time I'm back again on my 386/ix with ELM and
sendmail but everyone who works with Coherent should have WMAIL.
I was told it is available by FTP from plains.nodak.edu.

The most difficult problem is to unshar the sources but that should be
solvable.

You need:   the unshared files, about 20 minutes time (depends on how fast
            you can use your editor)

File wmail.h:
-------------
add the following line:

#define	off_t	long

delete all stuff between:
#ifdef MSDOS
...
...
#endif MSDOS

write a macro called _PROTOTYPE

#define _PROTOTYPE( function, params )   function () 
(I never tried that but it should work)
or be too lazy to think and edit the function prototyping as I did:

Example: (I was told that this is the most difficult problem)
--------

old code:    _PROTOTYPE ( void clr_exit, (int num) );
new code:    void clr_exit ();

-----------------------------------------------------------------------
Makefile:
---------
use the Makefile supplied for standard unix.
add -lndir
-----------------------------------------------------------------------
???.c:
------

delete all #include-lines with unknown Headerfiles (unistd.h,stdlib.h)
add/delete  sys/ in these lines where needed.
------------------------------------------------------------------------
wmmain.c:
---------
replace function   getcwd   with  getwd
------------------------------------------------------------------------
make
make install
------------------------------------------------------------------------
I hope that I didn't forget something

Nevertheless I will try to get WMAIL 3.63/Coherent ftped to piggy, I think
in about 10 days to two weeks it should be there.

Joachim

+---------------------------------------+-------+-------------------+-------+
|    Joachim Riedel                     | @   @ |    Don't worry,   | @   @ |
|    Geschwister-Scholl-Strasse 48      |  \_/  |    keep smiling   |  \_/  |
|    D-6050 Offenbach am Main           +-------+-------------------+-------+
|    Tel. +49 69 85 62 25               |       joachim@jrix.radig.de       |  
+---------------------------------------+-----------------------------------+
