🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Mohan Khurana Sat, 17 Jul 1999 00:00
E-mail --> Newsgroup
#38739
Author: Mohan Khurana
Date: Sat, 17 Jul 1999 00:00
20 lines
1523 bytes
Hi everyone:

I am currently looking for something that will work with sendmail that
will allow people to send mail to a certain group on a news server.  So,
for example, nntpgroup@mycompany.com would get on news.mycompany.com and
post the message on news.software.nntp.  The program/script that does
this would need to work with sendmail.

I am wondering what kind of success people have had with mail2news?  Is
there anything better?  I was just reading the docs for mail2news and
from what I can understand, it uses the source of INN 2.11.  I am
wondering if there is a solution that works without using INN source? 
Can anyone tell me what success they have had with an e-mail to
newsgroup gateway?

Thanks,

mohan

Re: E-mail --> Newsgroup
#38744
Author: Alan Strassberg
Date: Sun, 18 Jul 1999 00:00
18 lines
1090 bytes
In article <37908383.AE13C1A0@razorfish.com>,
Mohan Khurana  <mohan@razorfish.com> wrote:

>I am currently looking for something that will work with sendmail that
>will allow people to send mail to a certain group on a news server.  So,
>for example, nntpgroup@mycompany.com would get on news.mycompany.com and
>post the message on news.software.nntp.  The program/script that does
>this would need to work with sendmail.

	Have a look at postie ...

	http://www.infradig.com/ipostie.html

					alan
-- 
alan@svg.com

Re: E-mail --> Newsgroup
#38746
Author: dannyman
Date: Mon, 19 Jul 1999 00:00
41 lines
1697 bytes
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/

Re: E-mail --> Newsgroup
#38752
Author: 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/

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