Thread View: news.software.readers
4 messages
4 total messages
Started by Jim Harkins
Tue, 03 Mar 1992 18:50
Mailing list to newsgroups?
Author: Jim Harkins
Date: Tue, 03 Mar 1992 18:50
Date: Tue, 03 Mar 1992 18:50
20 lines
1342 bytes
1342 bytes
I'm on a mailing list that seems to generate lots of traffic. What I would
like to do is intercept this mail and send it to a local newsgroup. This
newsgroup would be 'moderated', so that by following up an article the mail
is sent back to the moderator. Can some wizard tell me how easy/difficult
this would be?
I'm running cnews and trn on a Sun Sparcstation 2.
jim
--
Not all cookies are in the jar.
--------------------------------------------------------------
Jim Harkins [ucsd|uunet]!pacdata!jim
Pacific Data Products jim%pacdata@uunet.uu.net
jim@pacdata.com
pacdata!jim@uunet.UU.NET
<Insert wild guess here>
--------------------------------------------------------------
Re: Mailing list to newsgroups?
Author: Jonathan Kruger
Date: Wed, 04 Mar 1992 16:23
Date: Wed, 04 Mar 1992 16:23
13 lines
1197 bytes
1197 bytes
jimh@pacdata.com (Jim Harkins) writes: >I'm on a mailing list that seems to generate lots of traffic. What I would >like to do is intercept this mail and send it to a local newsgroup. I would like to be able to do this as well. More specifically, I'd like to gateway mail bi-directionally between Internet/Bitnet and usenet under either VMS with UCX and MX or HP-UX 8.0 c-news. I know the software exists, so could someone point me in the right direction? -- Jonathan Kruger jon@socrates.umd.edu UNIX & VMS Systems Staff "Do not taunt Happy Fun Ball."
Re: Mailing list to newsgroups?
Author: Joe Ilacqua
Date: Tue, 10 Mar 1992 17:26
Date: Tue, 10 Mar 1992 17:26
114 lines
4014 bytes
4014 bytes
Here is a pare of perl script I use to gateway between mailing
lists and local news groups in conjunction with C News. The seem to
work fine, but I consider them to be beta versions.
->Spike
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of shell archive."
# Contents: mail2news news2mail
# Wrapped by spike@world on Tue Mar 10 12:26:02 1992
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f mail2news -a "${1}" != "-c" ; then
echo shar: Will not over-write existing file \"mail2news\"
else
echo shar: Extracting \"mail2news\" \(815 characters\)
sed "s/^X//" >mail2news <<'END_OF_mail2news'
X#!/usr/local/bin/perl
X
X# Gateway a mailing list to a local news group.
X# Written by Spike (spike@world.std.com)
X# invoked for /etc/aliases with a alias like
X# mailing-list-rdist:
X# "|/usr/local/lib/news/mail2news local.news.group.name distribution"
X
X$group = shift;
X$dist = shift;
Xopen(INEWS,"|/bin/inews -h");
X
Xwhile (<>) {
X
X next if (/^From /);
X last unless (/^[^ \t]*:/ || (/^[ \t]/ && $. > 1));
X if (/^To: /i || /^Cc: /i || /^Received: /i || /Apparently-To: /i
X || /^Return-Path: /) {
X $killed_last = 1;
X next;
X }
X next if (/^\s+/ && $killed_last);
X $killed_last = 0;
X print INEWS $_;
X}
X
Xprint INEWS "Newsgroups: $group\n";
Xprint INEWS "Distribution: $dist\n";
Xprint INEWS "Approved: usenet@world.std.com\n";
X
Xprint INEWS "\n" if /\S+$/;
X
Xprint INEWS $_;
X
Xwhile (<>) { print INEWS $_ ; }
END_OF_mail2news
if test 815 -ne `wc -c <mail2news`; then
echo shar: \"mail2news\" unpacked with wrong size!
fi
chmod +x mail2news
# end of overwriting check
fi
if test -f news2mail -a "${1}" != "-c" ; then
echo shar: Will not over-write existing file \"news2mail\"
else
echo shar: Extracting \"news2mail\" \(770 characters\)
sed "s/^X//" >news2mail <<'END_OF_news2mail'
X#!/usr/local/bin/perl
X
X# Gateway a local news group back to a mailing list
X# Written by Spike (spike@world.std.com)
X# add "local.group.name local-mail-alias" to /usr/lib/news/moderators
X# add then add something like to /etc/aliases:
X# local-mail-alias:
X# "|/usr/local/lib/news/news2mail list-address@somehost"
X
X$list = shift;
X
Xopen(MAIL,"|/usr/lib/sendmail $list");
X
Xwhile (<>) {
X
X next if (/^From /);
X last unless (/^[^ \t]*:/ || (/^[ \t]/ && $. > 1));
X if (/^Newsgroups: /i || /^Distribution: /i || /Apparently-To: /i
X || /^Received: /i) {
X $killed_last = 1;
X next;
X }
X next if (/^\s+/ && $killed_last);
X $killed_last = 0;
X print MAIL $_;
X}
X
Xprint MAIL "To: $list\n";
X
Xprint MAIL "\n" if /\S+$/;
X
Xprint MAIL $_;
X
Xwhile (<>) { print MAIL $_ ; }
END_OF_news2mail
if test 770 -ne `wc -c <news2mail`; then
echo shar: \"news2mail\" unpacked with wrong size!
fi
chmod +x news2mail
# end of overwriting check
fi
echo shar: End of shell archive.
exit 0
--
The World - Public Access Unix - +1 617-739-9753 24hrs {3,12,24,96,192}00bps
Re: Mailing list to newsgroups?
Author: Jonathan I. Kamens
Date: Wed, 11 Mar 1992 00:51
Date: Wed, 11 Mar 1992 00:51
27 lines
1664 bytes
1664 bytes
Rich Salz recently posted his package for doing this (newsgate) in
alt.sources. I suggest you look there.
If you don't know how to do that, I suggest you read:
Subject: How to find sources (READ THIS BEFORE POSTING)
Newsgroups: comp.sources.wanted,alt.sources.wanted,news.answers
Available in the indicated USENET newsgroup(s), or via anonymous ftp from
pit-manager.mit.edu (18.172.1.27) in the file:
/pub/usenet/news.answers/finding-sources
Also available from mail-server@pit-manager.mit.edu by sending a mail message
containing:
send usenet/news.answers/finding-sources
Send a message containing "help" to get general information about the
mail server.
--
Jonathan Kamens jik@MIT.Edu
MIT Information Systems/Athena Moderator, news.answers
(Send correspondence related to the news.answers newsgroup
{and ONLY correspondence related to the newsgroup}
to news-answers-request@MIT.Edu.)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads