[comp.mail.mush] Problems with 7.2.0 under SunOS 4.0.3c

andrew@calvin.doc.ca (Andrew Patrick) (11/07/90)

I have patched my program to 7.2.0 and have run into a number of
problems.  I am running it on a Sun 4/65 (Sparcstation 1+) running
SunOS 4.0.3c.  I am using an unmodified makefile.sun (except for the
install locations) which means that SUN_4_0 will be taken as the
default.

First, mushtool dumps core (IOT trap) whenever I compose or reply to a
message.  The fix needed is to change the following lines in doproc.c:

In do_compose() and respond_mail():

#ifdef SUN_4_0
	/* Panel panel = (Panel)window_get(compose_frame, FRAME_NTH_WINDOW, 1); */
	Panel panel = (Panel)window_get(compose_frame, FRAME_NTH_WINDOW, 0);
#else
	Panel panel = (Panel)window_get(compose_frame, FRAME_NTH_WINDOW, 0);
#endif /* SUN_4_0 */

That is, make the last argument 0 with or without SUN_4_0 defined.

Second, there seems to be now way not to use the compose_icon feature.
That is, what if I want to have the compose window go away when I am
finished sending a letter.  Once a compose window has been created and
closed to an icon, quiting that window also causes the whole Mushtool
to quit with a "mushtool:  hangup" message.  Even if this is fixed,
there should be an option in the compose window to either close to an
icon or quit, while leaving mushtool running.
-- 
Andrew Patrick, Ph.D.       Department of Communications, Ottawa, CANADA
               andrew@calvin.doc.CA    andrew@doccrc.BITNET
        HDTV:  higher resolution, improved colour, wider screen,
            "sit-com" reruns.  What's wrong with this picture?