mail-news gw + message delete

Krisztian VASAS iron at ironiq.hu
Tue Feb 10 22:28:24 UTC 2004


2004-02-10, k keltez=E9ssel 02:03-kor Russ Allbery ezt =EDrta:
> I highly recommend this approach to mail to news gatewaying.  I'm not
> doing it myself yet, but will shortly.  You don't want to spawn a new NNT=
P
> connection for every incoming mail message if you end up doing any real
> volume of gatewaying (and since we throw postmaster at stanford.edu into a
> newsgroup, we do a fairly high volume).  The great thing about this
> approach is that you can just munge the format of the message and drop it
> into spool/incoming, and then let rnews -U pick it up periodically.

After I've read this message, I've started thinking a bit. And I've
solved the problem. I've read the rnews manual and I've found that rnews
gets message from stdin if no input was given. I've remembered that the
mailpost script gives the tmpfile to the $inn::inews command. So I've
had to change 2 lines in mailpost and now works...

The 2 lines:

my $Submit =3D "/usr/bin/rnews";  #$inn::inews . " -S -h";
my $WhereTo =3D $Submit; #$opt_o || $Submit ;

And here transfers the message:

if (!open INEWS, "$WhereTo < $tmpfile 2>&1 |") {
    mailArtAndDie ("cant start: $WhereTo: $!") ;
}

So thanks a lot... Or if anyone has a much more simple solution, please
send me.=20


IroNiQ
--=20
Web: http://ironiq.hu
Email: iron at ironiq.hu
LinuxCounter: #331532



More information about the inn-workers mailing list