🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38752

Re: E-mail --> Newsgroup

#38752
From: Mohan Khurana
Date: Mon, 19 Jul 1999 00:00
53 lines
2454 bytes
Actually, I was hoping I could use mail2news without actually having to
install inn on the mail server.  As for postie, I was also hoping that I
could get something for free.  I think this is really quite
unfortunate.  It seems like something that would have been implemented
several times as it would be so useful.  I guess not...

Thanks for your replies and for trying to help, 

mohan

dannyman@dannyland.org wrote:
> 
> Hi.
> 
> I'm new to innd myself, and got really pissed off the other day with this same
> problem.
> 
> So ...
> 
> 1-16:48 root@noneedto /usr/local/news/etc# cat /usr/local/news/bin/mail2news
> #!/usr/bin/perl
> 
> $ENV{NNTPSERVER} = 'news.tellme.com';
> 
> my $ng = $ARGV[0];
> 
> die unless ( $ng );
> 
> open( OUT, "| /usr/local/news/bin/inews -h" ) or die "inews: $!";
> 
> print OUT "Newsgroups: $ng\n";
> while( <STDIN> ) {
>         if( ! $headers_done ) {
>                 s/^From:\s+(.*) <(.*)>/From: $2 ($1)/;
>                 s/Message-Id/Message-ID/;
>                 s/^From\s+(\S+)@(\S+).*/Path: $2!$1/ ||
>                 s/^From\s+(\S+)[^@]*$/Path: $1\n/;
>                 s/^Received:\s+(.*)/X-Original-Received: $1/;
>                 if( /^$/ ) { $headers_done++; }
>         }
>         print OUT;
> }
> 0-16:48 root@noneedto /usr/local/news/etc# grep jobs /etc/aliases
> news-jobs:      "| /usr/local/news/bin/mail2news tellme.jobs"
> 
> Some of that code I ripped out of another script, which claimed to be Perl3.
> 
> -danny
> 
> --
> dannyman - http://www.dannyland.org/~dannyman/

Technical Details
Message-ID: <3793DF53.3BC3B3E@razorfish.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <37908383.AE13C1A0@razorfish.com> <7n0dmb$ena$1@eve.enteract.com>

Show Full Headers
Complete Article Headers
Message-ID: <3793DF53.3BC3B3E@razorfish.com>
Subject: Re: E-mail --> Newsgroup
Date: Mon, 19 Jul 1999 00:00:00 +0000
From: Mohan Khurana <mohan@razorfish.com>
References: <37908383.AE13C1A0@razorfish.com> <7n0dmb$ena$1@eve.enteract.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 502968012
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc01.worldnet.att.net 932438077 9897 12.79.55.100 (20 Jul 1999 02:34:37 GMT)
Organization: AT&T WorldNet Services
Mime-Version: 1.0
NNTP-Posting-Date: 20 Jul 1999 02:34:37 GMT
Newsgroups: news.software.nntp