Article View: news.software.nn
Article #1693Re: INEWS: adding a blank line before headers on moderated mail
From: Bill Irwin
Date: Tue, 21 May 1991 07:35
Date: Tue, 21 May 1991 07:35
42 lines
2648 bytes
2648 bytes
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
Technical Details
Message-ID:
<2139@twg.bc.ca>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!van-bc!twg!billReferences:
<2124@twg.bc.ca>Show Full Headers
Complete Article Headers
Message-ID: <2139@twg.bc.ca> Subject: Re: INEWS: adding a blank line before headers on moderated mail Date: Tue, 21 May 1991 07:35:53 +0000 From: bill@twg.bc.ca (Bill Irwin) References: <2124@twg.bc.ca> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!van-bc!twg!bill Newsgroups: news.software.b,news.software.nn Reply-To: bill@twg.bc.ca (Bill Irwin) Organization: The Westrheim Group, Vancouver, B.C., Canada Lines: 41