*BSD News Article 16544


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!crcnis1.unl.edu!wupost!uunet!mailgate.mobil.com!dlsn31.dal.mobil.com!dlp016.dal.mobil.com!scwilson
From: scwilson@dlp016.dal.mobil.com (The Rhino Dreamer Scwilson)
Newsgroups: comp.os.386bsd.questions
Subject: Re: [NetBSD] Stupid problem with ELM
Date: 27 May 1993 11:46:41 GMT
Organization: Mobil Oil
Lines: 31
Distribution: world
Message-ID: <1u29n1$3r4@dlsn31.dal.mobil.com>
References: <738477181wkn6333@edmund>
NNTP-Posting-Host: dlp016.dal.mobil.com

In article <738477181wkn6333@edmund>, gillham@andrews.edu (Andrew Gillham) writes:
|> 
|> Unfortunately I don't fall into that "kernel hacker" category.
|> Could somebody explain how to get ELM2.4-PL21 working under
|> NetBSD??  I ran configure, which bombed at 1688 in the CPP options
|> section.  So I commented that out since I didn't really need any
|> and configure ran ok.  lib/opt_utils.c had a tolower() and toupper()
|> that conflicted with the gcc clib, but did the same thing, so I
|> deleted the one in opt_utils.c.
|> Commenting out POSIX_SIGNALS (sp?) and HASPROCSIGMASK (sp?) allowed
|> me to compile it ok.
|> It seems to work, reads mail fine, says it's sending it, but all the
|> messages it sends are empty.  I ran it with "-D 5" and it looks like
|> it is getting an errno=2 on a "stat" of the vi tmp file "/tmp.snd.xxx"
|> but tmp is 777 and elm is setgid!

I had the same problem last week. The problem I found was that elm "writes" 
a shell command that runs sendmail trying to send the temp file. Unfortunately
the shell command doesn't do what it should do. I just changed the way the shell
command is written until I got it to work.

The line is in src/mailmsg2.c and I made it look like this.

          sprintf(very_long_buffer,"(%s %s %s <%s; %s %s) &", 
                mailer, mailerflags, expanded_to,
                whole_msg_file, remove_cmd, whole_msg_file);

That seems to make the thing send the message just fine. It only took me a day
and a half to get this figured out, but then I'm not a programmer.

Good luck, Steve.