Article View: news.software.nn
Article #1694INEWS: adding a blank line before headers on moderated mail
From: Bill Irwin
Date: Tue, 21 May 1991 04:14
Date: Tue, 21 May 1991 04:14
67 lines
4030 bytes
4030 bytes
I have recently configured two local newsgroups which are fed from mail lists, as moderated newsgroups. I did this to allow the post/followup function to mail postings to the list distribution address, rather than requiring users to remember a mail address. The only glitch I seem to have is with inews mailing the posting. When inews processes the posted article it: checks the active file and notices that the newsgroup is moderated; determines that there is no "Approved:" header in the article; reads the mailpaths file looking for an entry for the newsgroup or "backbone", whichever comes first; determines from the mailpaths entry the address of the "moderator" (in this case the mail list distribution address); mails the article to the moderator. It is this last step that is causing the problem. Whatever method inews is using to mail the article is causing the entire article (headers and all) to be treated as mail body, rather than the header lines being used as header lines. The result is a few header lines produced by Smail2.5, a BLANK LINE, then the article headers and text. Since the article Subject: header comes after the blank line, the mail appears to have no Subject: line. An example of a posting to a moderated group that has my mail address as the moderator, produces the following into my mailbox: : From bill Mon May 20 16:02:50 1991 --------+ : Received: by twg.bc.ca (smail2.5) | : id AA08221; 20 May 91 16:02:49 PDT (Mon)| : To: bill | Smail headers : Date: Mon May 20 16:02:49 1991 | : Message-Id: <9105201602.AA08221@twg.bc.ca> | : From: bill@twg.bc.ca (Bill Irwin) --------+ : <-- Mystery blank line : To: bill --------+ : Path: twg!bill | : From: bill@twg.bc.ca (Bill Irwin) | : Newsgroups: twg.uug-list | : Subject: test recmail mailer | Article : Message-ID: <2117@twg.bc.ca> | headers : Date: 20 May 91 23:02:45 GMT | : Reply-To: bill@twg.bc.ca (Bill Irwin) | : Distribution: local | : Organization: The Westrheim Group, Vancouver, B.C., Canada : Lines: 7 --------+ : : : Article text : text I have tested piping an article to Bnews recmail, Smail2.5's replacement for /usr/lib/mail/execmail, and directly to smail. None of these three methods treats the article headers as mail text. In the Bnews defs.h file, I have sendmail undefined because I don't use sendmail, but I do not see where/how Bnews is being instructed on what mailer to use. I don't know C well enough to determine the answer to this from looking at inews.c. What I need are suggestions on how to get inews to send its mail a little differently, so that the headers which are part of the article are seen and interpreted as headers by execmail/smail. -- 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:
<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!usc!zaphod.mps.ohio-state.edu!van-bc!twg!billShow Full Headers
Complete Article Headers
Message-ID: <2124@twg.bc.ca> Subject: INEWS: adding a blank line before headers on moderated mail Date: Tue, 21 May 1991 04:14:15 +0000 From: bill@twg.bc.ca (Bill Irwin) 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!usc!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: 66