Mail2News Mini-Howto: Setting up mail2news
4. Setting up mail2newsPut the mail2news.pl script in a suitable location. I favour
/usr/local/scripts, but the location is up to you.You will need to edit script as follows:-At the top of the script, make sure you are pointing at the local
Perl binary
#!/usr/bin/perl
# point at the correct location of perlI had problems with the three following lines. Commenting them out
does not cause a problem.
( $version ) = $] =~ /(\d+\.\d+).*\nPatch level/;
die "$program: requires at least version 3 of perl\n"
if $version < 3;Edit the following lines to point at the posting program (I use
rnews) and you news host:-
# $inews = "/usr/bin/inews";
# $iopts = "-h -o \"mail2news gateway\"";
$inews = "/usr/bin/rnews";
$iopts = "";
$postinghost = "your.news.server"; # points at your news serverMake sure that the script is exectuable (mode 755).
t
Wyszukiwarka