🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83527

Re: [INN] POST instead of IHAVE?

#83527
From: Edmund H. Ramm
Date: Thu, 14 Oct 2010 15:24
78 lines
3463 bytes
Bonjour Julien,

In <i900m5$6f9$1@news.trigofacile.com> =?ISO-8859-15?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> writes:

> [...]
> That behaviour was already present when a server is marked, but without any
> newsgroup to fetch.

> Patch to prevent that connection:

>--- pullnews.in (révision 9112)
>+++ pullnews.in (copie de travail)
>@@ -385,6 +390,10 @@

>     my $shash = $servers->{$server};

>+    # No need to connect to the upstream server when there is no newsgroup
>+    # to fetch.  (The value 1 is for the "_order" key in the hash.)
>+    next if keys(%{$shash}) == 1;
>+
>     my $connectionAttempts = 0;
>     my $upstream;
>     {{
[...]

   Unexpectedly pullnews will now post articles to the remote downstream
host after I applied above patch. In compensation the superflous second
connection is still made:

-----
Thu Oct 14 15:14:52 2010 start

Connecting to downstream host: news.xxxxxxx.com port: 119 ...done.

Legend: ``.'' is an article the downstream server refused
        ``*'' is an article the downstream server rejected
        ``+'' is an article the downstream server accepted
        ``x'' is an article the upstream server couldn't give out
        ``m'' is an article skipped due to headers (-m)

connecting to upstream server dk3uz.ampr.org...done.

[...]

altnet.test:
	last checked: Thu Oct 14 15:12:06 2010
	63 articles available.  First 1 Last 24
	Our current highest: 23 (1 to get)
+
1 article retrieved in 2 seconds (595 bytes, 297 cps)

:-)))

[...]

connecting to upstream server news.xxxxxxx.com...done.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Saving config

1 article was offered to server on news.xxxxxxx.com
1 article was accepted

Upstream server dk3uz.ampr.org:
	altnet.test 1

Done Thu Oct 14 15:14:56 2010
-----

   BTW, pullnews aborts when a newsgroup in the config file does not
exist on the upstream host. IMO it should just skip said group and
continue with the next.

   slt, Eddi ._._.
-- 
      e-mail: dk3uz AT arrl DOT net  |  AMPRNET: dk3uz@db0hht.ampr.org
      If replying to a Usenet article, please use above e-mail address.
               Linux/m68k, the best U**x ever to hit an Atari!
Technical Details
Message-ID: <i977c2$6ui$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!goblin1!goblin2!goblin.stu.neva.ru!xlned.com!feeder7.xlned.com!news.alt.net!dk3uz!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> <i8rtpv$iv1$1@news.trigofacile.com> <i8tebe$d42$1@dk3uz.ampr.org> <i900m5$6f9$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <i977c2$6ui$1@dk3uz.ampr.org>
Subject: Re: [INN] POST instead of IHAVE?
Date: Thu, 14 Oct 2010 15:24:50 +0000
From: ehramm@dk3uz.ampr.org (Edmund H. Ramm)
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> <i8rtpv$iv1$1@news.trigofacile.com> <i8tebe$d42$1@dk3uz.ampr.org> <i900m5$6f9$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!goblin1!goblin2!goblin.stu.neva.ru!xlned.com!feeder7.xlned.com!news.alt.net!dk3uz!not-for-mail
Newsgroups: news.software.nntp
Organization: Private Linux/68k site
Lines: 78
Sender: ehramm@dk3uz.ampr.org
NNTP-Posting-Host: dk3uz.ampr.org
X-Trace: dk3uz.ampr.org 1287069890 7122 44.130.0.81 (14 Oct 2010 15:24:50 GMT)
X-Complaints-To: usenet@dk3uz.ampr.org
NNTP-Posting-Date: Thu, 14 Oct 2010 15:24:50 +0000 (UTC)
X-No-Archive: yes
X-No-HTML: yes
User-Agent: nn/6.7.3