Article View: news.software.nntp
Article #866Re: mailing lists -> newsgroups
From: Neal Dalton
Date: Wed, 19 Dec 1990 21:45
Date: Wed, 19 Dec 1990 21:45
42 lines
2714 bytes
2714 bytes
In article <d4a=02WLf9wm01@amdahl.uts.amdahl.com>, 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
/ \/_</_(_/\_/ ( o o ) _________ 655-F Lone Oak Dr.
\ ^ / / \ Eagan, MN 55121
\ 0 / < OH NO, )
Internet: nrd@cray.com \_/ \ not him!/ Fax: (612) 683-5599
uucp: uunet!cray!nrd \_______/ Phone: (612) 683-5607
Technical Details
Message-ID:
<151530.10128@timbuk.cray.com>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!cs.utexas.edu!uunet!timbuk!nrdReferences:
<MEYER.90Dec17124939@cambium.uoregon.edu> <d4a=02WLf9wm01@amdahl.uts.amdahl.com>Show Full Headers
Complete Article Headers
Message-ID: <151530.10128@timbuk.cray.com> Subject: Re: mailing lists -> newsgroups Date: Wed, 19 Dec 1990 21:45:26 +0000 From: nrd@redwood22.cray.com (Neal Dalton) References: <MEYER.90Dec17124939@cambium.uoregon.edu> <d4a=02WLf9wm01@amdahl.uts.amdahl.com> 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!cs.utexas.edu!uunet!timbuk!nrd Newsgroups: news.misc,news.sysadmin,news.software.nntp Reply-To: nrd@cray.com Distribution: news Organization: Cray Research, inc. Lines: 41