Xref: utzoo news.software.b:7850 news.software.nn:2003 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!van-bc!twg!bill From: bill@twg.bc.ca (Bill Irwin) Newsgroups: news.software.b,news.software.nn Subject: Re: INEWS: adding a blank line before headers on moderated mail Message-ID: <2139@twg.bc.ca> Date: 21 May 91 07:35:53 GMT References: <2124@twg.bc.ca> Reply-To: bill@twg.bc.ca (Bill Irwin) Organization: The Westrheim Group, Vancouver, B.C., Canada Lines: 41 Well, I've done some more hacking and found that inews is definately using the "mail" program, which in my case is "/usr/bin/mail". When I renamed it and posted to a local moderated group, inews choked. I found some code in the Bnews program "control.c" that seems to be testing for sendmail or mmdf. If these aren't defined it resorts to various flavours of "mail". I replaced the definition for "mail" with a definition for "smail", recompiled and posted to the newsgroup again. This time, the article headers were interpretted by smail as being part of the mail and the mailed article had no corrupting blank line in the middle of the headers. It would appear as though the problem is resolved, but I have a little voice that keeps asking me what else I just broke by actually hacking the C source for Bnews. It does seem like a rather drastic measure. I included the piece of code I changed and ask that if anyone sees any potential problem with it, that they speak up. ----- portion of code from control.c ------------------- #ifdef SENDMAIL execl(SENDMAIL, "sendmail", "-oi", "-oeq", sendto, (char *)NULL); #endif /* SENDMAIL */ #ifdef MMDF execl(MMDF, "inews-mail", "-smuxto,cc*", (char *)NULL); #endif /* MMDF */ was this --> /*execl("/usr/bin/mail", "mail", sendto, (char *)NULL);*/ now this --> execl("/usr/bin/smail", "smail", sendto, (char *)NULL); execl("/usr/ucb/mail", "mail", sendto, (char *)NULL); execl("/bin/mail", "mail", sendto, (char *)NULL); execl("/usr/bin/mailx", "mail", sendto, (char *)NULL); _exit(1); -- Bill Irwin - The Westrheim Group - Vancouver, BC, Canada ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ uunet!van-bc!twg!bill (604) 431-9600 (voice) | Your Computer bill@twg.bc.ca (604) 430-4329 (fax) | Systems Partner