🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
13 messages
13 total messages Started by Gawelek Sun, 02 Nov 2003 19:57
Authorization
#67061
Author: Gawelek
Date: Sun, 02 Nov 2003 19:57
6 lines
1173 bytes
How to get to know  - any command - that authorization is required ?


Gawel

Re: Authorization
#67056
Author: Gawelek
Date: Sun, 02 Nov 2003 20:33
7 lines
1325 bytes
And one more question, is it possible to get Article by date&time without
NewNews that
is often disabled ?

Gawel

Re: Authorization
#67057
Author: Dirk Nimmich
Date: Sun, 02 Nov 2003 21:09
7 lines
1325 bytes
Gawelek wrote:
> How to get to know  - any command - that authorization is required ?

If authorization is required the server will ask for it using a 480
response. You should then send the crendentials and repeat the
command that returned 480. See RFC 2980 for details.
Re: Authorization
#67058
Author: Dirk Nimmich
Date: Sun, 02 Nov 2003 21:15
8 lines
1428 bytes
Gawelek wrote:
> And one more question, is it possible to get Article by date&time
> without NewNews that is often disabled ?

No. But articles are numbered monotonic in the order they arrive, so
you can use the last article number in a group from your previous
session as an estimation.
Re: Authorization
#67059
Author: Gawelek
Date: Sun, 02 Nov 2003 21:26
13 lines
1499 bytes
> No. But articles are numbered monotonic in the order they arrive, so
> you can use the last article number in a group from your previous
> session as an estimation.

Well, but  I would like to get messages of the same group from different
servers.
And I observed that the same group can have different numbers on different
servers.
That's my problem

Gawel

Re: Authorization
#67060
Author: Gawelek
Date: Sun, 02 Nov 2003 21:30
12 lines
1511 bytes
> If authorization is required the server will ask for it using a 480
> response. You should then send the crendentials and repeat the
> command that returned 480. See RFC 2980 for details.

Yes, I know, but it isn't convenient, becasue I have to
chcek all the time if 480 is returned. I try to find command, that
tell me at the beginning that this server reuqiers or not authorization.


Gawel

Re: Authorization
#67063
Author: Russ Allbery
Date: Sun, 02 Nov 2003 21:47
14 lines
1750 bytes
Gawelek <gawelek@NOSPAMEKpoczta.gazeta.pl> writes:

> Yes, I know, but it isn't convenient, becasue I have to chcek all the
> time if 480 is returned. I try to find command, that tell me at the
> beginning that this server reuqiers or not authorization.

That would be a nice thing to have, but unfortunately it's not currently
available in the protocol.

-- 
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: Authorization
#67062
Author: Dirk Nimmich
Date: Sun, 02 Nov 2003 22:08
20 lines
1970 bytes
Gawelek wrote:
>> No. But articles are numbered monotonic in the order they arrive,
>> so you can use the last article number in a group from your
>> previous session as an estimation.
> 
> Well, but  I would like to get messages of the same group from
> different servers.

Get the overview of newly arrived postings in each group as
described above and extract the Message-ID field. Then only fetch
articles (by number or Message-ID) that aren't already in your
history and add the Message-ID to your history.

> And I observed that the same group can have different numbers on
> different servers.

Yes. That's why you have to cache the highest article numbers for
each group on every server. You would also do this for the timestamp
if you used NEWNEWS.
Re: Authorization
#67066
Author: Gawelek
Date: Mon, 03 Nov 2003 01:49
7 lines
1302 bytes
> if you used NEWNEWS.

This will be the best solution, but it is often disabled ....

Gawel

Re: Authorization
#67067
Author: Gawelek
Date: Mon, 03 Nov 2003 02:12
14 lines
1790 bytes
> Get the overview of newly arrived postings in each group as
> described above and extract the Message-ID field. Then only fetch
> articles (by number or Message-ID) that aren't already in your
> history and add the Message-ID to your history.

I should hold last Message-ID in order to find proper number in
other groups. But I can not obtain this number. It means I have Message-Id
of article in group, but I can not get its number.
STAT <Message-ID> always returns 0 :(


Gawel

Re: Authorization
#67069
Author: Dirk Nimmich
Date: Mon, 03 Nov 2003 05:39
15 lines
1752 bytes
Gawelek wrote:
>> Get the overview of newly arrived postings in each group as
>> described above and extract the Message-ID field. Then only fetch
>> articles (by number or Message-ID) that aren't already in your
>> history and add the Message-ID to your history.
> 
> I should hold last Message-ID in order to find proper number in
> other groups.

No. Please read again what I wrote.

> But I can not obtain this number.

Cache it; the Message-ID won't help you in any case.
Re: Authorization
#67070
Author: Dirk Nimmich
Date: Mon, 03 Nov 2003 05:40
8 lines
1415 bytes
Gawelek wrote:
>> if you used NEWNEWS.
> 
> This will be the best solution, but it is often disabled ....

That's why I described how you can simulate NEWNEWS from a client's
view.
Re: Authorization
#67071
Author: Jeffrey M. Vinocur
Date: Mon, 03 Nov 2003 06:57
17 lines
1709 bytes
In article <bo4dij$140$1@inews.gazeta.pl>,
Gawelek <gawelek@NOSPAMEKpoczta.gazeta.pl> wrote:
>
>I should hold last Message-ID in order to find proper number in
>other groups. But I can not obtain this number. It means I have Message-Id
>of article in group, but I can not get its number.
>STAT <Message-ID> always returns 0 :(

You should be able to use HEAD and examine the Xref header.

But remember that articles are not in the same order on all
servers.


-- 
Jeffrey M. Vinocur
jeff@litech.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