Thread View: news.software.nntp
20 messages
20 total messages
Started by Edmund H. Ramm
Thu, 30 Sep 2010 22:59
[INN] POST instead of IHAVE?
Author: Edmund H. Ramm
Date: Thu, 30 Sep 2010 22:59
Date: Thu, 30 Sep 2010 22:59
9 lines
1298 bytes
1298 bytes
Is there a way to persuade or even convince nntpsend & innxmit
to use POST instead of IHAVE?
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!
Re: [INN] POST instead of IHAVE?
Author: Julien ÉLIE
Date: Fri, 01 Oct 2010 18:20
Date: Fri, 01 Oct 2010 18:20
22 lines
2063 bytes
2063 bytes
Hi Edmund, Didn't you receive my answer at the beginning of the week? > Is there a way to persuade or even convince nntpsend/innxmit > to use POST instead of IHAVE? They currently do not handle POST. What would you want to do? (Isn't it possible to have them directly speak with innd? or allow the use of IHAVE in nnrpd?) -- Julien ÉLIE « The hardest thing is to go to sleep at night, when there are so many urgent things needing to be done. A huge gap exists between what we know is possible with today's machines and what we have so far been able to finish. » (Donald Knuth)
Re: [INN] POST instead of IHAVE?
Author: Edmund H. Ramm
Date: Fri, 01 Oct 2010 23:14
Date: Fri, 01 Oct 2010 23:14
23 lines
1846 bytes
1846 bytes
In <i858pc$a9s$1@news.trigofacile.com> =?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> writes:
Cher ami Julien,
> Didn't you receive my answer at the beginning of the week?
no, I didn't, sorry.
>> Is there a way to persuade or even convince nntpsend/innxmit
>> to use POST instead of IHAVE?
> They currently do not handle POST.
> What would you want to do?
> [...]
One of the usenet providers I subscribe to only allows POST for
end users.
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!
Re: [INN] POST instead of IHAVE?
Author: Russ Allbery
Date: Sat, 02 Oct 2010 03:41
Date: Sat, 02 Oct 2010 03:41
15 lines
1698 bytes
1698 bytes
ehramm@dk3uz.ampr.org (Edmund H. Ramm) writes:
> One of the usenet providers I subscribe to only allows POST for
> end users.
You probably want something like "suck", then.
Its web site seems to have disappeared, but you can get the source code
from http://packages.debian.org/suck.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: [INN] POST instead of IHAVE?
Author: John F. Morse
Date: Sat, 02 Oct 2010 04:35
Date: Sat, 02 Oct 2010 04:35
30 lines
2020 bytes
2020 bytes
Russ Allbery wrote: > ehramm@dk3uz.ampr.org (Edmund H. Ramm) writes >> One of the usenet providers I subscribe to only allows POST for >> end users. >> > > You probably want something like "suck", then. > > Its web site seems to have disappeared, but you can get the source code > from http://packages.debian.org/suck. > Here are a couple of still-good links: http://oss.basjes.nl/SuckMT http://www.rime.com.au/suck And, of course: http://www.google.com/search?q=suck+nntp Pullnews might work if the load isn't too large. http://www.google.com/search?hl=en&safe=off&q=pullnews -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: [INN] POST instead of IHAVE?
Author: Julien ÉLIE
Date: Sat, 02 Oct 2010 08:47
Date: Sat, 02 Oct 2010 08:47
29 lines
2254 bytes
2254 bytes
Hi Edmund,
>> Didn't you receive my answer at the beginning of the week?
>
> no, I didn't, sorry.
Well, I bet that was because I sent an empty Injection-Date: header
field in my answer. That was a mistake, and the article must have
been rejected by your news server.
> One of the usenet providers I subscribe to only allows POST for
> end users.
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.
--
Julien ÉLIE
« Depuis que j'ai changé mon clavier qwerty pour un clavier azerty,
je tape deux fois plus vite. Pourquoi ?
Parce qu'un homme azerty en vaut deux ! »
Re: [INN] POST instead of IHAVE?
Author: Edmund H. Ramm
Date: Sat, 09 Oct 2010 23:27
Date: Sat, 09 Oct 2010 23:27
31 lines
2261 bytes
2261 bytes
Cher ami Julien,
merci pour les infos.
In <i86rij$34j$1@news.trigofacile.com> =?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> writes:
> [...]
> 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>
There also seems to be no provision for passing user-id and password
to <to-server>.
Any ideas?
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!
Re: [INN] POST instead of IHAVE?
Author: Julien ÉLIE
Date: Sun, 10 Oct 2010 08:34
Date: Sun, 10 Oct 2010 08:34
93 lines
4250 bytes
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)
Re: [INN] POST instead of IHAVE?
Author: Edmund H. Ramm
Date: Sun, 10 Oct 2010 22:22
Date: Sun, 10 Oct 2010 22:22
79 lines
3745 bytes
3745 bytes
Bonjour Julien,
In <i8rtpv$iv1$1@news.trigofacile.com> =?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> writes:
> [...]
> You should try -m "\!Path:<feed1> \!Path:<feed2>" with quotes.
yes, indeed, should've thought of that myself.
> [...]
> Could you please try the following patch?
Sure I will, thank you.
> [...]
> 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
Added above entry flush left.
> Could you please tell me whether it works fine?
> [...]
It does, after a fashion:
] Sun Oct 10 21:33:58 2010 start
]
] Connecting to downstream host: news.xxxxxxx.com port: 119 ...done.
So that works.
] 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.
That's me.
So far so good. I've posted a few test messages to altnews.test,
but they don't get sent to the downstream host.
] [...]
] altnet.test:
] last checked: Sun Oct 10 21:33:33 2010
] 30 articles available. First 1 Last 17
] Our current highest: 17 (nothing to get)
Those 30 articles are on the downstream host, not on my machine.
pullnews should have found 4 articles on my machine. pullnews seems
to determine the "17" from the config file, which of course doesn't
get updated when I post an article.
] connecting to upstream server news.xxxxxxx.com...done.
And the above shouldn't happen, too, I think. I doesn't hurt though.
] Saving config
]
] 0 articles were offered to server on news.xxxxxxx.com
]
] Done Sun Oct 10 21:34:01 2010
As I'm not really conversant in Perl (I hate it, in fact), I haven't
yet found out how pullnews determines which articles to POST to the
downstream server. I have ":Tf,Wnm:news.xxxxxxx.com" in newsfeeds, but
pullnews does not appear to look in .../outgoing/news.xxxxxxx.com
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!
Re: [INN] POST instead of IHAVE?
Author: Julien ÉLIE
Date: Mon, 11 Oct 2010 21:47
Date: Mon, 11 Oct 2010 21:47
75 lines
3877 bytes
3877 bytes
Hi Edmund,
> ] altnet.test:
> ] last checked: Sun Oct 10 21:33:33 2010
> ] 30 articles available. First 1 Last 17
> ] Our current highest: 17 (nothing to get)
>
> Those 30 articles are on the downstream host, not on my machine.
These 30 articles are on the upstream host. pullnews here indicates
what it can see on the upstream host, that is to say your machine.
I do not understand why "30 articles available" when the last one is 17!
Were there cancels?
Problem with your overview?
> pullnews should have found 4 articles on my machine. pullnews seems
> to determine the "17" from the config file, which of course doesn't
> get updated when I post an article.
But a run of pullnews should see that the last article has increased.
Otherwise, there is a problem. Do you see the new articles in your
usual news reader?
> ] connecting to upstream server news.xxxxxxx.com...done.
>
> And the above shouldn't happen, too, I think. I doesn't hurt though.
Yes, you're right.
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;
{{
> As I'm not really conversant in Perl (I hate it, in fact), I haven't
> yet found out how pullnews determines which articles to POST to the
> downstream server.
All the new ones from upstream servers (amongst them, your own server).
> I have ":Tf,Wnm:news.xxxxxxx.com" in newsfeeds, but
> pullnews does not appear to look in .../outgoing/news.xxxxxxx.com
pullnews does not look at these files. It looks at what is present
on upstream servers. pullnews connects to upstream servers, and reads
the new articles (as any news client would do). It then posts them
to the downstream server.
--
Julien ÉLIE
« Un sourire coûte moins cher que l'électricité
mais donne autant de lumière. » (Abbé Pierre)
Re: [INN] pullnews WAS: POST instead of IHAVE?
Author: Edmund H. Ramm
Date: Tue, 12 Oct 2010 19:58
Date: Tue, 12 Oct 2010 19:58
58 lines
3668 bytes
3668 bytes
Bonjour Julien,
In <i900m5$6f9$1@news.trigofacile.com> =?ISO-8859-15?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> writes:
>> ] altnet.test:
>> ] last checked: Sun Oct 10 21:33:33 2010
>> ] 30 articles available. First 1 Last 17
>> ] Our current highest: 17 (nothing to get)
>>
>> Those 30 articles are on the downstream host, not on my machine.
> These 30 articles are on the upstream host. pullnews here indicates
> what it can see on the upstream host, that is to say your machine.
The above 'trace' depicts the situation on the remote and in this
case downstream host. When I run pullnews with parameter "-w -0" and my
machine as the upstream and the remote one as the downstream host, the
config file gets updated to the situation on the downstream machine.
Thus pullnews is unable to determine if there are new articles to post
from my to the remote machine.
> I do not understand why "30 articles available" when the last one is 17!
> Were there cancels?
> Problem with your overview?
30 articles on the remote host, of which my pullnews fetched 17,
the other 13 being too old.
>> pullnews should have found 4 articles on my machine. pullnews seems
>> to determine the "17" from the config file, which of course doesn't
>> get updated when I post an article.
> But a run of pullnews should see that the last article has increased.
> Otherwise, there is a problem.
This is also my opinion. And as it seems to be a bigger one which
can't be solved with just a patch, I'll meanwhile try to work around
it with a combination of a newsfeed-entry, sm and postnews.
> Do you see the new articles in your usual news reader?
Yes, I do.
>> ] connecting to upstream server news.xxxxxxx.com...done.
>>
>> And the above shouldn't happen, too, I think. I doesn't hurt though.
> [...]
> Patch to prevent that connection:
> [...]
Thank you for the patch, I will try it in due course.
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!
Re: [INN] POST instead of IHAVE?
Author: Edmund H. Ramm
Date: Wed, 13 Oct 2010 17:09
Date: Wed, 13 Oct 2010 17:09
60 lines
2904 bytes
2904 bytes
Bonjour Julien,
In <i900m5$6f9$1@news.trigofacile.com> =?ISO-8859-15?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> writes:
> [...]
> Patch to prevent that connection:
> [...]
>+ # No need to connect to the upstream server when there is no newsgroup
> [...]
the patch works fine, thank you. News don't get "pushed" to the
downstream server, though.
I worked around this problem using the usual NNTP newsfeed entry
and the -external to INN- postnews (administrative code omitted):
-----
#!/bin/bash
dest=news.xxxxxxx.com
outgoing=/var/spool/news/outgoing
pass=topsecret
postnews=/usr/bin/postnews
skip1="/usr/bin/tail -n +2" # get rid of "#! rnews"
sm=/var/lib/news/bin/sm
user=me.moi.et.I
wrk=${dest}.wrk
cd $outgoing
cp $dest $wrk
cp /dev/null $dest
if /usr/bin/fping $dest > /dev/null 2>&1
then
tokens=`/usr/bin/cut -f1 -d" " $wrk`
for token in $tokens
do
/bin/echo "sending: $token"
$sm -S $token | $skip1 | $postnews -v --user $user --pass $pass $dest
done
if [ $? -eq 0 ]
then
rm $wrk
else
/bin/echo "$0: could not send all articles to $dest"
/bin/echo "$0: handle $wrk manually"
fi
else
/bin/echo "$0: unable to reach $dest"
exit 1
fi
exit 0
-----
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!
Re: [INN] pullnews WAS: POST instead of IHAVE?
Author: Julien ÉLIE
Date: Wed, 13 Oct 2010 18:58
Date: Wed, 13 Oct 2010 18:58
109 lines
4610 bytes
4610 bytes
Hi Edmund,
What is the version of INN you are using?
>>> ] altnet.test:
>>> ] last checked: Sun Oct 10 21:33:33 2010
>>> ] 30 articles available. First 1 Last 17
>>> ] Our current highest: 17 (nothing to get)
>>>
>>> Those 30 articles are on the downstream host, not on my machine.
>>
>> These 30 articles are on the upstream host. pullnews here indicates
>> what it can see on the upstream host, that is to say your machine.
>
> The above 'trace' depicts the situation on the remote and in this
> case downstream host.
You mean the situation on the server *from* which you get your articles ?
I thought it was your own machine.
Otherwise, I do not understand what you are talking about.
Anyway, I still do not understand the counts.
These numbers are the result of the GROUP command.
The number of available articles must be inferior to the difference
between the last one and the first one plus one, that is to say 18 here.
% telnet news.trigofacile.com 119
200 news.trigofacile.com InterNetNews server INN 2.6.0 (20100810 prerelease) ready
(transit mode)
MODE READER
200 news.trigofacile.com InterNetNews NNRP server INN 2.6.0 (20100810 prerelease)
ready (posting ok)
GROUP news.software.nntp
211 5345 1 9147 news.software.nntp
QUIT
205 Bye!
Whence:
news.software.nntp:
last checked: Mon Oct 11 23:38:57 2010
5345 articles available. First 1 Last 9147
Our current highest: 9145 (2 to get)
Could you please telnet your downstream host and tell us the result of:
MODE READER
GROUP altnet.test
QUIT
and the same for your own machine.
Use "AUTHINFO USER xxx" and "AUTHINFO PASS yyy" if you need to authenticate
on these servers before sending a GROUP command.
> When I run pullnews with parameter "-w -0" and my
> machine as the upstream and the remote one as the downstream host, the
> config file gets updated to the situation on the downstream machine.
The machine *from* which you get your articles.
It is named the upstream server, the source.
The config file gets updated to the situation on the upstream machine
with "-w -0", that is to say your own machine.
> Thus pullnews is unable to determine if there are new articles to post
> from my to the remote machine.
And that is normal because you have just reset the count with "-w -0".
Nothing to get from your machine (upstream).
>> I do not understand why "30 articles available" when the last one is 17!
>> Were there cancels?
>> Problem with your overview?
>
> 30 articles on the remote host, of which my pullnews fetched 17,
> the other 13 being too old.
No.
The high water mark seems wrong (17) if there are really 30 articles.
>> Do you see the new articles in your usual news reader?
>
> Yes, I do.
I would be interested to know the result of the GROUP commands
mentioned above.
--
Julien ÉLIE
« -- Poussez pas derrière !
-- Pas si vite devant ! » (Astérix)
Re: [INN] pullnews WAS: POST instead of IHAVE?
Author: Edmund H. Ramm
Date: Wed, 13 Oct 2010 22:41
Date: Wed, 13 Oct 2010 22:41
85 lines
4221 bytes
4221 bytes
Bonjour Julien,
In <i94vfv$p5j$1@news.trigofacile.com> =?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> writes:
> What is the version of INN you are using?
2.4.5
> You mean the situation on the server *from* which you get your articles?
Unfortunately it's the situation on the remote server, not my machine.
> I thought it was your own machine.
Using a .config file with my machine as the upstream host (and
group names following it) and the remote machine as the downstream
host (with only user and passwd on the same line and no group names
following it), issuing
pullnews -w -0 -s <downstream>
results in said .config file being updated to the situation on the down-
stream host when it should be updated to reflect the situation on the
upstream i.e. in this case localhost.
> Otherwise, I do not understand what you are talking about.
I hope I expressed myself more clearly this time.
> Anyway, I still do not understand the counts.
> These numbers are the result of the GROUP command.
> The number of available articles must be inferior to the difference
> between the last one and the first one plus one, that is to say 18 here.
> % telnet news.trigofacile.com 119
> 200 news.trigofacile.com InterNetNews server INN 2.6.0 (20100810 prerelease) ready
> (transit mode)
> MODE READER
> 200 news.trigofacile.com InterNetNews NNRP server INN 2.6.0 (20100810 prerelease)
> ready (posting ok)
> GROUP news.software.nntp
> 211 5345 1 9147 news.software.nntp
> QUIT
> 205 Bye!
This is what I get on the remote machine:
GROUP news.software.nntp
211 106 143157 143262 news.software.nntp
And this on mine:
GROUP news.software.nntp
211 279 21 191 news.software.nntp
> [...]
>> When I run pullnews with parameter "-w -0" and my
>> machine as the upstream and the remote one as the downstream host, the
>> config file gets updated to the situation on the downstream machine.
> The machine *from* which you get your articles.
> It is named the upstream server, the source.
Yes, understood.
> The config file gets updated to the situation on the upstream machine
> with "-w -0", that is to say your own machine.
This is what I'm trying to get across: The config file gets updated
to the situation on the remote and in this case downstream host. IAW,
if I run -w -0 once with the remote machine as the upstream host and
again with localhost as the upstream host (using two different config
files) I end up with two identical config files, apart from the host
entries of course.
> [...]
HTH, 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!
Re: [INN] POST instead of IHAVE?
Author: Edmund H. Ramm
Date: Thu, 14 Oct 2010 15:24
Date: Thu, 14 Oct 2010 15:24
78 lines
3463 bytes
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!
Re: [INN] pullnews WAS: POST instead of IHAVE?
Author: Julien ÉLIE
Date: Thu, 14 Oct 2010 19:18
Date: Thu, 14 Oct 2010 19:18
50 lines
3250 bytes
3250 bytes
Hi Edmund, >> I thought it was your own machine. > > Using a .config file with my machine as the upstream host (and > group names following it) and the remote machine as the downstream > host (with only user and passwd on the same line and no group names > following it), issuing > > pullnews -w -0 -s <downstream> OK, that's pretty clear. > results in said .config file being updated to the situation on the down- > stream host when it should be updated to reflect the situation on the > upstream i.e. in this case localhost. I do not understand this behaviour. It is not what the code does, and I have just checked it. "-w -0" uses the situation on the upstream server and the number returned by the GROUP command on the upstream server. Anyway, no GROUP command is sent on the downstream server. How do you know the file reflects the situation on the upstream? > This is what I get on the remote machine: > > GROUP news.software.nntp > 211 106 143157 143262 news.software.nntp > > And this on mine: > > GROUP news.software.nntp > 211 279 21 191 news.software.nntp It's broken. The count of 279 is too high on your news server. Which overview method do you use? Do you run news.daily every day? -- Julien ÉLIE « -- Le bureau des renseignements ? -- Sais pas. Adressez-vous aux renseignements, ils vous renseigneront. » (Astérix)
Re: [INN] POST instead of IHAVE?
Author: Julien ÉLIE
Date: Thu, 14 Oct 2010 19:45
Date: Thu, 14 Oct 2010 19:45
59 lines
3451 bytes
3451 bytes
Hi Edmund,
>> 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.
I don't understand why.
Very weird.
> In compensation the superflous second connection is still made
Even weirder.
> 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.
It would be a better behaviour, thanks!
--- pullnews.in (révision 9112)
+++ pullnews.in (copie de travail)
@@ -420,7 +429,10 @@
next if $group eq '_order';
next if (@groupsToGet && !grep ($_ eq $group, @groupsToGet));
- last if !crossFeedGroup ($upstream,$localcxn,$server,$group,$shash);
+ # crossFeedGroup returns 1 when the newsgroup is successfully
+ # pulled. No need to check the return value because we do not
+ # want to abort on the first error.
+ crossFeedGroup ($upstream,$localcxn,$server,$group,$shash);
last if defined $opt_S and time >= $^T+$opt_S;
sleep $opt_Z if defined $opt_Z;
}
--
Julien ÉLIE
« -- Le bureau des renseignements ?
-- Sais pas. Adressez-vous aux renseignements, ils vous renseigneront. » (Astérix)
Re: [INN] POST instead of IHAVE?
Author: Edmund H. Ramm
Date: Thu, 14 Oct 2010 23:01
Date: Thu, 14 Oct 2010 23:01
33 lines
2654 bytes
2654 bytes
Bonjour Julien,
In <i97mkc$qot$1@news.trigofacile.com> =?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> writes:
> [...]
>> 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.
>It would be a better behaviour, thanks!
>--- pullnews.in (révision 9112)
>+++ pullnews.in (copie de travail)
>@@ -420,7 +429,10 @@
> next if $group eq '_order';
> next if (@groupsToGet && !grep ($_ eq $group, @groupsToGet));
>- last if !crossFeedGroup ($upstream,$localcxn,$server,$group,$shash);
>+ # crossFeedGroup returns 1 when the newsgroup is successfully
>+ # pulled. No need to check the return value because we do not
>+ # want to abort on the first error.
>+ crossFeedGroup ($upstream,$localcxn,$server,$group,$shash);
> last if defined $opt_S and time >= $^T+$opt_S;
> sleep $opt_Z if defined $opt_Z;
> }
works, mci bcp.
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!
Re: [INN] POST instead of IHAVE?
Author: Julien ÉLIE
Date: Sun, 24 Oct 2010 15:28
Date: Sun, 24 Oct 2010 15:28
22 lines
2234 bytes
2234 bytes
FYI: > Incidentally, with the current syntax, we cannot use spaces in user names or > passwords. We cannot use a username without any password. Anyway, Net::NNTP (the Perl module used by pullnews) does not handle a username without any password... Neither does it handle SASL authentication. > And with the "-s" flag, we cannot use > IPv6 addresses because ":" is matched for a port. Solution: mentioning a port works. -s '::1' -p 119 does the trick :-) -- Julien ÉLIE « Dans l'algèbre comme dans la police, il faut identifier X. » (André Frédérique)
Re: [INN] POST instead of IHAVE?
Author: Julien ÉLIE
Date: Sun, 24 Oct 2010 16:39
Date: Sun, 24 Oct 2010 16:39
40 lines
2717 bytes
2717 bytes
>> And with the "-s" flag, we cannot use
>> IPv6 addresses because ":" is matched for a port.
>
> Solution: mentioning a port works.
> -s '::1' -p 119
> does the trick :-)
Or also with this patch:
-$localPort = $1 if not defined $opt_p and $localServer =~ s/:(\d+)$//;
+# Find a possible port at the end of the news server name.
+# Count the number of ":" to check that it is not an IPv6 address.
+if (not defined $opt_p) {
+ my @colons = split(/:/, $localServer);
+ $localPort = $1 if ((scalar(@colons) == 2) and ($localServer =~ s/:(\d+)$//));
+}
But it still does not work...
% ./pullnews -s '::1'
Sun Oct 24 18:37:11 2010 start
Connecting to downstream host: ::1 port: 119 ...Can't connect to server ::1
!!
I see that IO::Socket::INET (used by Net::NNTP) is still IPv4-only in Perl...
http://leonerds-code.blogspot.com/2010/09/module-name-suggestions-proper-iosocket.html
Well, at least the code will work when IPv6 support exists in one of these two
Perl modules.
--
Julien ÉLIE
« Dans l'algèbre comme dans la police, il faut identifier X. » (André Frédérique)
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