*BSD News Article 17002


Return to BSD News archive

Xref: sserve comp.mail.elm:9276 comp.os.386bsd.bugs:879
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!natinst.com!hrd769.brooks.af.mil!not-for-mail
From: burgess@hrd769.brooks.af.mil (Dave Burgess)
Newsgroups: comp.mail.elm,comp.os.386bsd.bugs
Subject: NetBSD/386bsd elm problem - empty message bodies
Date: 6 Jun 1993 13:26:59 -0500
Organization: Armstrong Lab MIS, Brooks AFB TX
Lines: 48
Message-ID: <1utcu1INNfu9@hrd769.brooks.af.mil>
NNTP-Posting-Host: hrd769.brooks.af.mil

I have been working to install elm on my newly installed NetBSD/386bsd
system and came across a problem with elm 2.4, pl20.  Whenever I would
try to send a E-Mail message, everything would appear to work, except
that the message would be delivered with no message body.  The signature
block and headers were OK, but the manually input message would be gone.
The same occurred on a reply.  I have found a solution which allows the
messages to go through, although I am quite uncertain why the change
makes any difference.

In pl20, the sendmail line is constructed to look like this:
( ( sendmail -options name ; rm tmpfile ) < tmpfile) & )

I changed the sequence to look like this:
( ( sendmail -options name <tmpfile ; rm tmpfile) & )

Here is a patch that implements this change:

*** mailmsg2.c.orig	Wed Jan  6 16:19:38 1993
--- mailmsg2.c	Sun Jun  6 13:10:00 1993
***************
*** 562,570 ****
  	    strcpy(expanded_to, very_long_buffer);
  	  }
  
! 	  sprintf(very_long_buffer,"( (%s %s %s ; %s %s) & ) < %s", 
! 		mailer, mailerflags, expanded_to,
! 		remove_cmd, whole_msg_file, whole_msg_file);
  	}
  	
  	fclose(reply);
--- 562,570 ----
  	    strcpy(expanded_to, very_long_buffer);
  	  }
  
! 	  sprintf(very_long_buffer,"( (%s %s %s < %s ; %s %s) & )", 
! 		mailer, mailerflags, expanded_to, whole_msg_file,
! 		remove_cmd, whole_msg_file);
  	}
  	
  	fclose(reply);

I hope this helps.

-- 
------
TSgt Dave Burgess
NCOIC AL/Management Information Systems Office
Brooks AFB, TX