If mail is received with no from address, invoke sendmail with

/usr/sbin/sendmail -f <> dest
rather than
	/usr/sbin/sendmail -f dest.

Submitted by:  Michael Butler <imb@scgt.oz.au>
Obtained from: Eric Allman <eric@cs.berkeley.edu>
This commit is contained in:
Paul Traina 1995-09-16 18:52:51 +00:00
parent 191e1a59da
commit 4ed5be00c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10824

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: rmail.c,v 1.4 1995/03/19 13:29:18 joerg Exp $
* $Id: rmail.c,v 1.5 1995/05/30 00:07:08 rgrimes Exp $
*/
#ifndef lint
@ -211,6 +211,8 @@ main(argc, argv)
/* Save off from user's address; the last one wins. */
for (p = addrp; *p && !isspace(*p); ++p);
*p = '\0';
if (*addrp == '\0')
addrp = "<>";
if (from_user != NULL)
free(from_user);
if ((from_user = strdup(addrp)) == NULL)