Xref: utzoo news.misc:5822 news.sysadmin:3458 news.software.nntp:996 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!timbuk!nrd From: nrd@redwood22.cray.com (Neal Dalton) Newsgroups: news.misc,news.sysadmin,news.software.nntp Subject: Re: mailing lists -> newsgroups Message-ID: <151530.10128@timbuk.cray.com> Date: 19 Dec 90 21:45:26 GMT References: Reply-To: nrd@cray.com Distribution: news Organization: Cray Research, inc. Lines: 41 In article , krs@uts.amdahl.com (Kris Stephens [Hail Eris!]) writes: |> > Does anyone have a script that they like for injecting |> > news from a mailing list (e.g., an alias) into a local |> > news group (i.e., that does the "right" thing with |> > headers, subject lines, etc)? |> > |> > Thanks, |> > Dave |> |> In its simplest form, all the program needs to do is strip the leading |> 'From ' header (without a colon) and feed it into inews -h... |> |> -- |> # Replace "newslist" with the phantom username that's on the mailing list |> # Replace "news.group" with the newsgroup name |> aliases: (for sendmail) |> newslist:"|/bin/sed 1d | /usr/lib/news/inews -h -n news.group" |> aliases: (for smail) |> newslist:"|/bin/sed 1d | /usr/lib/news/inews -h -f\"$SENDER\" -n news.group" |> -- This wouldn't work on my site, because we have (the "brain-dead" :) inews that came with the NNTP release (I guess). It doesn't know any of the normal inews flags. So I got recnews from the B-news stuff and hack it until it worked. What I did in end I found out, for some reason our site needs the PATH: field. So I regerated the mail for News with recnews and piped it into inews. What may work is a awk/sed script that added the Newsgroup field and the Path: `whoami` to the mail headers piped into inews -h. If you have problems with the previous post make sure which inews you have and if you need Path:. Good luck and keep us informed of problem/solutions. ---- Neal /\ / _ / \|||/ Neal Dalton / \ / _ _\ / / \ Cray Research, inc / \/_