Return to BSD News archive
Path: sserve!manuel!munnari.oz.au!uunet!mcsun!sun4nl!tuegate.tue.nl!svin02!wzv!gvr.win.tue.nl!guido From: guido@gvr.win.tue.nl (Guido van Rooij) Newsgroups: comp.unix.bsd Subject: Re: ELM and News Ports Keywords: 386bsd news mailreaders Message-ID: <3691@wzv.win.tue.nl> Date: 3 Aug 92 19:03:59 GMT References: <2439@nic.cerf.net> Sender: news@wzv.win.tue.nl Organization: Guido's home 486 box Lines: 54 In article <2439@nic.cerf.net> greggb@nic.cerf.net (Gregg Brekke) writes: >Problem With Elm... After getting it to compile by editing almost every >source file to either #define or #undef some of 386bsd's functions, it >compiled. The problem is that when I go to send a message with it, the >command line information gets sent to the program, but the /tmp/elm* file >doesn't get appended to the header. ELM only creates a minimal header >from the command line so 'elm joe@abc.edu' will get passed to ELM so joe >will get a blank message. If anyone else has looked at the problem, it >seems to be in mailmsg2.c. I just can't quite figure out where it is >messing up... permissions, location, string copy? I ported it montyhs ago to 386bsd 0.0. Only few changes had to be made. I think the problem youy refer to is the fact that ash seems to incorrectly handle a forked command. It indeed is located in mailmsg2. The problem is that sendmail doesnt receive much...not elm. However if you look at the original elm code, and my patch you'll see that my patch really simplifies the forked command. But still ash is wrong here.... Well...see for yourself. *** /usr/guido/tmp/elm/src/mailmsg2.c Sat Jun 13 17:30:32 1992 --- /usr/guido/tmp/elm/src/mailmsg2.c.orig Mon Oct 8 00:48:00 1990 *************** *** 389,397 **** 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); --- 389,397 ---- 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); > >I hope to get these all working on my machine in the next week, so your >input is greatly appreciated. > >Gregg >-- >--------------------------------------------------------------------------- > Gregg D. Brekke greggb@fred.org Ask Me About FrEd! > FrEdMail - The K-12 link to the InterNet I hope this was it.... -Guido