 1-Aug-89  0:57:10-GMT,1580;000000000015
Return-Path: <fuat@cunixc.cc.columbia.edu>
Received: from cunixc.cc.columbia.edu by sumex-aim.stanford.edu (4.0/inc-1.0)
	id AA12164; Mon, 31 Jul 89 17:56:55 PDT
Received: by cunixc.cc.columbia.edu (5.59/FCB)
	id AA08665; Mon, 31 Jul 89 20:54:30 EDT
Date: Mon, 31 Jul 89 20:54:27 EDT
From: "Fuat C. Baran" <fuat@cunixc.cc.columbia.edu>
To: Bill Yeager <yeager@sumex-aim.stanford.edu>
Cc: bug-mm@cunixc.cc.columbia.edu
Office: 712 Watson, (212) 854-5128
Subject: Re: .mm-sendmail.pid
In-Reply-To: Your message of Fri, 21 Jul 1989 16:44:32 PDT
Message-Id: <CMM.0.88.617936067.fuat@cunixc.cc.columbia.edu>

>Seems that when this file cannot be created (accessed denied because there
>was an identical file already there) on /tmp, the outgoing message is lost!

Below is a fix for the problem.  May not be the best solution, but at
least the user doesn't lose his outgoing mail.

Thanks for pointing out this bug.

						--Fuat

*** /tmp/,RCSt1008501	Mon Jul 31 20:47:12 1989
--- send.c	Mon Jul 31 17:30:50 1989
***************
*** 133,140
  		cf->flags |= MF_MODIFIED; /* we'll have to write out the file*/
  	    }
  	}
! 	sendmail(current);
! 	free_msg(current);
      }
      current = NULL;
      mode &= ~(MM_SEND|MM_ANSWER);

--- 133,145 -----
  		cf->flags |= MF_MODIFIED; /* we'll have to write out the file*/
  	    }
  	}
! 	if (sendmail(current))
! 	    free_msg(current);
! 	else {
! 	    fprintf (stderr, "\
! Could not send mail.  Use SAVE-DRAFT to save a copy of this message\n");
! 	    return;
! 	}
      }
      current = NULL;
      mode &= ~(MM_SEND|MM_ANSWER);

