[comp.sources.bugs] Mush is being posted

dheller@cory.Berkeley.EDU (Dan Heller) (03/17/89)

As most of you may have noticed, Mush is being posted to comp.sources.unix
right now.  As you may or may not know, mush works with many MTA's (such
as sendmail, smail, etc..) as well as MMDF.  However, there is a patch
that needs to be applied for users of MMDF only.  While this patch will
be made available to the net when the first "official" patch is made,
I am providing it here because otherwise, MMDF sites won't be able to
compile mush.  If you don't run MMDF, you can ignore this patch.

*** /tmp/,RCSt1025023	Tue Mar 14 15:22:05 1989
--- file.c	Tue Mar 14 15:21:54 1989
***************
*** 59,67 ****
  	    (void) sprintf(buf, "%s/%s", MAILDIR, p);
  #else /* HOMEMAIL */
  	{
! 	    char *p2 = do_set(set_options, "home");
! 	    (void) sprintf(buf, "%s/%s", p2 ? p2 : ALTERNATE_HOME, MAILFILE);
! 	} else {
  	    int t_isdir = *isdir;
  	    char *t, tmp[256];
  	    (void) sprintf(tmp, "~%s/%s", p, MAILFILE);
--- 59,65 ----
  	    (void) sprintf(buf, "%s/%s", MAILDIR, p);
  #else /* HOMEMAIL */
  	{
! 	    /* If it's NOT us, recur to get the path for ~user/MAILFILE */
  	    int t_isdir = *isdir;
  	    char *t, tmp[256];
  	    (void) sprintf(tmp, "~%s/%s", p, MAILFILE);

Dan Heller	<island!argv@sun.com>