🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #58387

RE: [Xnews] Little Bug in Mail Reply

#58387
From: H. Merijn Brand
Date: Wed, 23 Feb 2000 00:00
47 lines
2501 bytes
Zoot@mailops.com (John Murphy) wrote in 
<88v2mb.3vvokhf.0@murphology.co.uk>:

>H. Merijn Brand wrote :
>
>>My .pm is at C:\Util\Perl\lib\News\NNTPClient.pm where it's the
>>only file. If you don't have CPAN, tar or gzip, I'd gladly mail
>>NNTPClient.pm to you.
>
>I have NNTPClient but don't know how to install it or where to put it. :-)
>
>>BTW. You're using ActivePerl 5.00503 (build 522) aren't you?
>
>Yes
>

If your perl binary (perl.exe) is in i.e. C:\Util\Perl\bin, just
create directory C:\Util\Perl\lib\News and copy NNTPClient.pm
there. That's really all there is to is. This is one of those
modules that doesn't need anything more...

Your script will look like:
------------8<-------------
#!perl

use strict;
use News::NNTPClient;

my $server = News::NNTPClient->new ("news.local.net");
$server->postok () or die "Cannot post to server";
$server->post (
    "Newsgroups: my.group",
    "From: Zoot@mailops.com (John Murphy)",
    "Date: 28 Feb 2000, 18:30 MET",
    "",
    "Body") or die "Post failed: $!";
$server->quit ();

------------>8-------------
-- 
H.Merijn Brand
using perl5.005.03 on HP-UX 10.20, HP-UX 11.00, AIX 4.2, AIX 4.3, DEC
  OSF/1 4.0 and WinNT 4.0 SP-6a, often with perlTk 800.015 or 800.018
ftp://ftp.funet.fi:/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/
Member of Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)

Technical Details
Message-ID: <8EE36FAEBMerijn@192.0.1.90>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <88mn6l.3vvm251.0@x501.de> <88mmu2.3vvnauf.0@murphology.co.uk> <88mrud.3vvpuc1.0@x501.de> <88msog.3vvnhi7.0@murphology.co.uk> <88os8h.8e.0@behrle.ddns.org> <88p6bv.3vvnf59.0@murphology.co.uk> <88psqk.7a.0@behrle.ddns.org> <88rv7t.3vvtliv.0@murphology.co.uk> <8EE25E039Merijn@192.0.1.90> <88v2mb.3vvokhf.0@murphology.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <8EE36FAEBMerijn@192.0.1.90>
Subject: RE: [Xnews] Little Bug in Mail Reply
Date: Wed, 23 Feb 2000 00:00:00 +0000
From: h.m.brand@hccnet.nl (H. Merijn Brand)
References: <88mn6l.3vvm251.0@x501.de> <88mmu2.3vvnauf.0@murphology.co.uk> <88mrud.3vvpuc1.0@x501.de> <88msog.3vvnhi7.0@murphology.co.uk> <88os8h.8e.0@behrle.ddns.org> <88p6bv.3vvnf59.0@murphology.co.uk> <88psqk.7a.0@behrle.ddns.org> <88rv7t.3vvtliv.0@murphology.co.uk> <8EE25E039Merijn@192.0.1.90> <88v2mb.3vvokhf.0@murphology.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 588763221
X-Posting-IP-Address: 192.0.1.19
X-Complaints-To: newsmaster@compuserve.com
X-Trace: ssauraaa-i-1.production.compuserve.com 951297422 28622 212.211.22.11 (23 Feb 2000 09:17:02 GMT)
Organization: PROCURA B.V.
User-Agent: Xnews/03.02.04
NNTP-Posting-Date: 23 Feb 2000 09:17:02 GMT
Newsgroups: news.software.readers