🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83518

Re: [INN] POST instead of IHAVE?

#83518
From: Julien ÉLIE
Date: Sun, 10 Oct 2010 08:34
93 lines
4250 bytes
Bonjour Edmund,

> merci pour les infos.

De rien ; tant mieux si cela a pu vous être utile !


>> I would probably use either suck or pullnews (mentioned by Russ and John).
>> The advantage of pullnews is that it is already shipped with INN.
>> See its documentation:
>>    http://www.eyrie.org/~eagle/software/inn/docs-2.5/pullnews.html
>>
>> Use the "-R" flag.
>
>   While it was easy to configure pullnews for pulling, I can't make it
> to "push" my articles. "No such upstream host 5 configured." is all I
> get after
>
> pullnews -c localhost.conf -R -m \!Path:<feed1> \!Path:<feed2> \
>         -s <to-server>

You should try -m "\!Path:<feed1> \!Path:<feed2>" with quotes.

I will change the pullnews documentation to mention
    -m "Hdr1:regexp1 !Hdr2:regexp2"
instead of
    Hdr1:regexp1 !Hdr2:regexp2
because it can be confusing!



> There also seems to be no provision for passing user-id and password
> to <to-server>.
>
> Any ideas?

Oh, you're right.  I do not see any option to give credentials for the
downstream server.  Only for the upstream ones... :-/


Could you please try the following patch?


--- pullnews.in (révision 9112)
+++ pullnews.in (copie de travail)
@@ -339,6 +339,11 @@
     my %localopts = ("Port" => "$localPort", "Reader" => $reader, %NNTP_Args);
     $localcxn = Net::NNTP->new($localServer, %localopts) ||
         die "Can't connect to server $localServer\n";
+
+    if (exists $passwd{$localServer} && 
!$localcxn->authinfo(@{$passwd{$localServer}})) {
+        warn sprintf ("failed to authorize: %s %s\n",
+                      $localcxn->code(), $localcxn->message());
+    }
 }

 if ( not $quiet and not $quietness ) {



Only that if() clause to add.

Then, in your .pullnews file (which is the name of the config file for INN 2.5),
add a line for your downstream news server.  No group.  Only its name and the 
credentials:

    news.server user password


Could you please tell me whether it works fine?

Normally, it should.  I have just tested and I obtain:
    failed to authorize: 481 Authentication failed
if the credentials are wrong on my news server.




Incidentally, with the current syntax, we cannot use spaces in user names or 
passwords.
We cannot use a username without any password.  And with the "-s" flag, we cannot 
use
IPv6 addresses because ":" is matched for a port.
Well, these are a few nits I have just seen...  But well, no need to fix them in 
your case.

-- 
Julien ÉLIE

« Le meilleur moyen de faire tourner la tête à une femme,
  c'est de lui dire qu'elle a un joli profil. » (Sacha Guitry) 
Technical Details
Message-ID: <i8rtpv$iv1$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!feeder.ecngs.de!ecngs!feeder2.ecngs.de!78.46.240.70.MISMATCH!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-74-104.w81-48.abo.wanadoo.fr!not-for-mail
References: <i834on$hg6$1@dk3uz.ampr.org> <i858pc$a9s$1@news.trigofacile.com> <i85q09$i4f$1@dk3uz.ampr.org> <i86rij$34j$1@news.trigofacile.com> <i8qtpl$g9i$1@dk3uz.ampr.org>

Show Full Headers
Complete Article Headers
Message-ID: <i8rtpv$iv1$1@news.trigofacile.com>
Subject: Re: [INN] POST instead of IHAVE?
Date: Sun, 10 Oct 2010 10:34:10 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <i834on$hg6$1@dk3uz.ampr.org> <i858pc$a9s$1@news.trigofacile.com> <i85q09$i4f$1@dk3uz.ampr.org> <i86rij$34j$1@news.trigofacile.com> <i8qtpl$g9i$1@dk3uz.ampr.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!feeder.ecngs.de!ecngs!feeder2.ecngs.de!78.46.240.70.MISMATCH!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-74-104.w81-48.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 93
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Oct 2010 08:34:07 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-151-1-74-104.w81-48.abo.wanadoo.fr:81.48.13.104";
 logging-data="19425"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <i8qtpl$g9i$1@dk3uz.ampr.org>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263