Thread View: news.software.readers
10 messages
10 total messages
Started by John Murphy
Sat, 19 Feb 2000 00:00
Re: [Xnews] Little Bug in Mail Reply
Author: John Murphy
Date: Sat, 19 Feb 2000 00:00
Date: Sat, 19 Feb 2000 00:00
16 lines
1180 bytes
1180 bytes
Jurgen Denzler wrote : >I love Xnews for it's quoting and scoring behavior. > >So I decidet to convert incoming mail from the hamster-mailing list >to a local newsgroup (lists.hamster). >With C. Biedl's Perl-Script it runs well. He mentioned recently that he has a new version coming out (with an English language manual, YES!). Have you seen any sign of it. I've just looked on the site and the downloaded file is the same as the one I have. -- John Murphy
Re: [Xnews] Little Bug in Mail Reply
Author: John Murphy
Date: Sun, 20 Feb 2000 00:00
Date: Sun, 20 Feb 2000 00:00
41 lines
1715 bytes
1715 bytes
Mathias Behrle wrote : >If you follow the guidelines for the installation of all the cpan- >modules, there should be no problem. IIRC the modules create the needed >dirs themselves. Sorry Mathias, but what modules? > >But it is important to create the local group, to which you want to >post. Done that. In the script there is the possibilty to turn logging on. >Did you try that? No. From what I can make out it is already on # Logging: # 0: keines # 1: die wichtigsten Informationen # 2: _sehr_ ausf�hrlich $logging = 1; # Wohin mit dem Log? # '>Dateiname' mit > am Anfang: In eine Datei # 'Newsgroup' sonst: Eine Newsgroup im Server wie oben #$logTo = '>log'; $logTo = 'hamster.misc'; $log = ''; but I don't know where the log is or goes. There is nothing showing in hamster.misc. Thanks for your help. -- John Murphy
Re: [Xnews] Little Bug in Mail Reply
Author: Mathias Behrle
Date: Sun, 20 Feb 2000 00:00
Date: Sun, 20 Feb 2000 00:00
50 lines
2547 bytes
2547 bytes
John Murphy wrote (<88msog.3vvnhi7.0@murphology.co.uk>):
> Jurgen Denzler wrote :
>
>> some tips:
>> i made 2 new directories (news and mail) in c:\perl\...
>> for the modules of the CPAN
>
> Thanks for trying but I do not know how to use this information.
If you follow the guidelines for the installation of all the cpan-
modules, there should be no problem. IIRC the modules create the needed
dirs themselves.
>> user by default is 'admin' with '.' for password
>> for an other user change in 'mail2news.pl'
>
> I changed it for the admin password. Okay I hope?
Depends on whoose mails you want to be posted.
That user must be configured in Hamster and in M2N:
$NNTPUser = 'username';
$NNTPPass = 'password';
>> the m2nrules.txt is badly explained - but very simple
>>
>> only _one_ line (-> means Tabs)
>>
>> list.hamster.english->To:
>> ehamster@onelist.com->ehamster@onelist.com
>
> Tried that but I'm still not getting the mail to appear in Xnews.
> I'll have to wait for those instructions. :-). I am right in
> thinking that the script will take the mail files from the admin
> mail directory. Or have I got that wrong?
See above. You can configure any user.
But it is important to create the local group, to which you want to
post. In the script there is the possibilty to turn logging on.
Did you try that?
Mathias
--
Non-usenetconform addresses and those with spamspoilers
are filtered out by my newsserver. I don't see them.
PGP-Keys: RSA 0x4307382D / DH 0x43226785
Re: [Xnews] Little Bug in Mail Reply
Author: Mathias Behrle
Date: Mon, 21 Feb 2000 00:00
Date: Mon, 21 Feb 2000 00:00
60 lines
2736 bytes
2736 bytes
John Murphy wrote (<88p6bv.3vvnf59.0@murphology.co.uk>):
> Mathias Behrle wrote :
>
>> If you follow the guidelines for the installation of all the cpan-
>> modules, there should be no problem. IIRC the modules create the
>> needed dirs themselves.
>
> Sorry Mathias, but what modules?
You have to install two modules for perl:
POP3Client and NNTPClient
for enabling the script to contact Hamster. You find them at the CPAN-
Site. Follow the instructions described there.
>> But it is important to create the local group, to which you want to
>> post.
>
> Done that.
>
> In the script there is the possibilty to turn logging on.
>> Did you try that?
>
> No. From what I can make out it is already on
>
> # Logging:
> # 0: keines
> # 1: die wichtigsten Informationen
> # 2: _sehr_ ausf�hrlich
> $logging = 1;
Logging of the most important informations is enabled in your script.
> # Wohin mit dem Log?
> # '>Dateiname' mit > am Anfang: In eine Datei
> # 'Newsgroup' sonst: Eine Newsgroup im Server wie oben
Instead to the newsgroup you can change logging to a file. Then you
have to delete the # at the begin of the following line and set it at
the next line, where log is the name of the file to log to.
> #$logTo = '>log';
> $logTo = 'hamster.misc';
> $log = '';
>
> but I don't know where the log is or goes. There is nothing showing
> in hamster.misc.
If you didn't install the perl-modules, there can't be anything.
HTH
Mathias
--
Non-usenetconform addresses and those with spamspoilers
are filtered out by my newsserver. I don't see them.
PGP-Keys: RSA 0x4307382D / DH 0x43226785
Re: [Xnews] Little Bug in Mail Reply
Author: John Murphy
Date: Mon, 21 Feb 2000 00:00
Date: Mon, 21 Feb 2000 00:00
33 lines
1784 bytes
1784 bytes
Mathias Behrle wrote : >You have to install two modules for perl: >POP3Client and NNTPClient >for enabling the script to contact Hamster. You find them at the CPAN- >Site. Follow the instructions described there. Had a go but Install package 'nntpclient?' (y/N): y Retrieving package 'nntpclient'... Error installing package 'nntpclient': Could not locate a PPD file for package ntpclient PPM> install nntpclient.pm Install package 'nntpclient.pm?' (y/N): y Retrieving package 'nntpclient.pm'... Error installing package 'nntpclient.pm': Could not locate a PPD file for package nntpclient.pm PPM> install c:\hamster\nntpclient.pm Install package 'c:\hamster\nntpclient.pm?' (y/N): y Retrieving package 'c:\hamster\nntpclient.pm'... syntax error at line 1, column 0, byte 0 at C:/Perl/site/lib/XML/Parser.pm line 168 This is hard work -- John Murphy
RE: [Xnews] Little Bug in Mail Reply
Author: H. Merijn Brand
Date: Tue, 22 Feb 2000 00:00
Date: Tue, 22 Feb 2000 00:00
39 lines
2367 bytes
2367 bytes
Zoot@mailops.com (John Murphy) wrote in <88rv7t.3vvtliv.0@murphology.co.uk>: >Mathias Behrle wrote : > >>You have to install two modules for perl: >>POP3Client and NNTPClient >>for enabling the script to contact Hamster. You find them at the CPAN- >>Site. Follow the instructions described there. > >Had a go but > >Install package 'nntpclient?' (y/N): y >Retrieving package 'nntpclient'... >Error installing package 'nntpclient': Could not locate a PPD file for >: NNTPClient.pm can be taken from CPAN and put in the perl lib architecture without installing the way described above. of my head ... ftp://ftp.funet.fi/pub/languages/perl/CPAN/Modules/by-module/News/NN... You'll need gzip.exe and tar.exe, but they're two widely spread and well implemented Unix utilities for both NT and 9x 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. BTW. You're using ActivePerl 5.00503 (build 522) aren't you? -- 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/)
RE: [Xnews] Little Bug in Mail Reply
Author: John Murphy
Date: Tue, 22 Feb 2000 00:00
Date: Tue, 22 Feb 2000 00:00
16 lines
1315 bytes
1315 bytes
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 -- John Murphy
RE: [Xnews] Little Bug in Mail Reply
Author: John Murphy
Date: Wed, 23 Feb 2000 00:00
Date: Wed, 23 Feb 2000 00:00
12 lines
1307 bytes
1307 bytes
H. Merijn Brand & Jurgen Denzlet & Mathias Behrle wrote : <loads of help> Thanks, I nearly gave up just before the end but it's WORKING and it looked very good. Thanks to all who posted. I haven't tried replying yet, so set your kill filters now.:-) -- John Murphy
RE: [Xnews] Little Bug in Mail Reply
Author: Gernot Rehberger
Date: Wed, 23 Feb 2000 00:00
Date: Wed, 23 Feb 2000 00:00
13 lines
1347 bytes
1347 bytes
On 22 Feb 2000 (23:33), John Murphy wrote: > I have NNTPClient but don't know how to install it or where to put > it. :-) > Create a folder 'mail' in Perl\site\lib for Pop3client.pm Create a folder 'news' in Perl\site\lib for NNTPClient.pm -- Regards, Gernot
RE: [Xnews] Little Bug in Mail Reply
Author: H. Merijn Brand
Date: Wed, 23 Feb 2000 00:00
Date: Wed, 23 Feb 2000 00:00
47 lines
2501 bytes
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/)
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