Thread View: news.software.nntp
24 messages
24 total messages
Started by Mateusz Viste
Fri, 29 May 2009 21:28
Have I to issue a GROUP command before POSTing?
Author: Mateusz Viste
Date: Fri, 29 May 2009 21:28
Date: Fri, 29 May 2009 21:28
66 lines
3722 bytes
3722 bytes
Hi there! I'm totally new on this group, so sorry if I brake any rule, or if my question seems stupid to you :-) I recently wrote my own NNTP server, called BasicNews. It is destinated to serve some leaf sites (ie without any possible synchronisation with external servers): http://www.viste-family.net/mateusz/software/basicnews/ It still lacks some commands, and doesn't handle some cases properly, but it's on a very good way so far :) I tested it with PAN and KNode, and it works great, but recently, I tried it with PHPNews (a PHP WEB-NNTP gateway), and I noticed that I can't post. In fact, the gateway is sending a POST command without issuing a GROUP command before. So there comes my question: is it legal? I read RFC 977 and 3977 several times, but I could not find any clear information about that... The RFC doesn't tell that a "no group selected" answer is possible to a "POST" command, so it makes me think that the GROUP is not required... On the other hand, it seems weird to me, because: If my server holds two groups, one called X, which is read-only, and the second called Y, which is read-write, how could I possibly know what I have to answer to a client which tries to POST without specifying the group first? Of course, I could answer "Ok, give me your stuff", receive the message, check the Newsgroups header, and then answer with an error if he tried to post to the read-only group, but such behavior seems tricky to me... Do you know what is the *right* way to handle that? If it helps, here is the dump of the NNTP dialog: S: 200 Welcome to the BasicNews Server! C: MODE READER S: 200 Reader mode, posting permitted. C: POST S: 412 No newsgroup selected. C: From: Mateusz <mateusz@test.test> S: 500 I don't know such command. Sorry. C: Newsgroups: fr.lesgranges.test S: 500 I don't know such command. Sorry. C: Subject: Test WEB S: 500 I don't know such command. Sorry. C: Organization: XXX News Server S: 500 I don't know such command. Sorry. C: X-User-Real-E-Mail: %u@mail.domain S: 500 I don't know such command. Sorry. C: User-Agent: PHP News Reader v2.6.5 (CDSHEEN) S: 500 I don't know such command. Sorry. C: Mime-Version: 1.0 S: 500 I don't know such command. Sorry. C: Content-Type: text/plain; charset="utf-8" S: 500 I don't know such command. Sorry. C: Content-Transfer-Encoding: 8bit S: 500 I don't know such command. Sorry. C: X-HTTP-Posting-Host: 192.168.190.20 S: 500 I don't know such command. Sorry. C: C: Test message from PHP-NEWS. Best regards, Mateusz Viste
Re: Have I to issue a GROUP command before POSTing?
Author: Julien ÉLIE
Date: Fri, 29 May 2009 22:23
Date: Fri, 29 May 2009 22:23
121 lines
4856 bytes
4856 bytes
Hi Mateusz,
> It still lacks some commands, and doesn't handle some cases properly, but
> it's on a very good way so far :)
In case it helps... Quickly glancing at your code:
CASE "HEAD" ' nnn or <msgid>
PRINT "501 Sorry, not implemented yet..." + CRLF; ' WRITE ME!
Be careful it is not 501 to send (syntax error on a recognized command,
for instance "HEAD 1a2" or "HEAD msg-id-without-brackets" or
"HEAD <msg-id-with-300-octets>"). Here, it would be 500.
The same goes for other commands.
"CAPABILITIES A" returns 501 whereas "CAPABILITIES TEST" returns 101.
...
CASE "XOVER", "OVER"
Xover(LastCommand(2))
Be careful XOVER and OVER are not the same commands.
OVER <test>
503 Overview by message-ID unsupported
XOVER <test>
501 Syntax error in range
GROUP fr.test
211 7501 1760 10030 fr.test
OVER 1
423 No articles in 1
XOVER 1
224 No articles in 1
..
PRINT "101 Capability list:" + CRLF;
PRINT "VERSION 2" + CRLF;
PRINT "READER" + CRLF;
PRINT "LIST ACTIVE NEWSGROUPS OVERVIEW.FMT" + CRLF;
PRINT "OVER" + CRLF;
PRINT "." + CRLF;
No "POST"? (when WriteAccess = 1)
And "AUTHINFO USER", in case you wish to advertise it?
PRINT "502 Authentication rejected."
Not a valid answer. It must be 481 (see RFC 4643). Or 482 in case
it is out of sequence (which is dealt afterwards in your code).
> the gateway is sending a POST command without issuing a GROUP command
> before.
> So there comes my question: is it legal? I read RFC 977 and 3977 several
> times, but I could not find any clear information about that...
Yes it is perfectly legal.
> The RFC
> doesn't tell that a "no group selected" answer is possible to a "POST"
> command, so it makes me think that the GROUP is not required...
GROUP is not required and 412 is not a valid answer to POST!
By the way, there is "dot-stuffing" to handle (maybe you already takes
care of that but better warn you):
A single dot (".") on a line indicates the end of the text, and lines
starting with a dot in the original text have that dot doubled during
transmission.
> On the other hand, it seems weird to me, because: If my server holds two
> groups, one called X, which is read-only, and the second called Y, which is
> read-write, how could I possibly know what I have to answer to a client
> which tries to POST without specifying the group first?
340 :)
He sends his article and you see afterwards.
> Of course, I could answer "Ok, give me your stuff", receive the message,
> check the Newsgroups header, and then answer with an error if he tried to
> post to the read-only group, but such behavior seems tricky to me...
It is what you should do.
Incidentally, I have a question which will show you why GROUP is not required:
** how do you handle crossposts? :) **
> Do you know what is the *right* way to handle that?
340.
> If it helps, here is the dump of the NNTP dialog:
>
> S: 200 Welcome to the BasicNews Server!
> C: MODE READER
> S: 200 Reader mode, posting permitted.
> C: POST
> S: 412 No newsgroup selected.
You shouldn't have answered 412.
> C: From: Mateusz <mateusz@test.test>
> S: 500 I don't know such command. Sorry.
He shouldn't have gone on sending the article... 412 (4xx) was
not a 3xx answer!
--
Julien ÉLIE
« Rien, ce n'est pas rien ! La preuve, c'est que l'on peut le soustraire.
Exemple : rien moins rien = moins que rien ! » (Raymond Devos)
Re: Have I to issue a GROUP command before POSTing?
Author: Antti-Juhani Kaijanaho
Date: Sat, 30 May 2009 08:22
Date: Sat, 30 May 2009 08:22
26 lines
2288 bytes
2288 bytes
Mateusz Viste kirjoitti: > On the other hand, it seems weird to me, because: If my server holds two > groups, one called X, which is read-only, and the second called Y, which is > read-write, how could I possibly know what I have to answer to a client > which tries to POST without specifying the group first? You check if the connection has posting authority in general, and issue your response to POST based on that. If you give the client the leave to post, you then have to receive the post and do the usual injection checks (see the soon-to-be-RFC draft-ietf-usefor-usepro for what checks are expected), including checking that it does not violate local policy (eg. post to a read-only group). You decide whether to accept or reject based on *these* checks. > Of course, I could answer "Ok, give me your stuff", receive the message, > check the Newsgroups header, and then answer with an error if he tried to > post to the read-only group, but such behavior seems tricky to me... There is no trickiness - it is what you'll have to do anyway. There is no requirement that a POST be directed to the currently selected group even if a group is selected, and, like Julien says, how else do you handle crossposts? -- Mr. Antti-Juhani Kaijanaho, Jyväskylä, Finland
Re: Have I to issue a GROUP command before POSTing?
Author: Mateusz Viste
Date: Sat, 30 May 2009 11:23
Date: Sat, 30 May 2009 11:23
128 lines
5476 bytes
5476 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! Many thanks for your impressive analyse :-) I didn't expected so much :-D BasicNews is still buggy in some aspects, as it is the very first version so far (v0.10). It will be better soon. On Saturday 30 May 2009 00:23, Julien ÉLIE wrote: > In case it helps... Quickly glancing at your code: > > CASE "HEAD" ' nnn or <msgid> > PRINT "501 Sorry, not implemented yet..." + CRLF; ' WRITE > ME! > > Be careful it is not 501 to send (syntax error on a recognized command, > for instance "HEAD 1a2" or "HEAD msg-id-without-brackets" or > "HEAD <msg-id-with-300-octets>"). Here, it would be 500. Yes, you are right. The RFC 3977 is quite explicit about that: "501 MUST be used when the base command is implemented but the requested variant is not, and 500 MUST be used only when the base command itself is not implemented." I probably done it the wrong way, as it is a highly beta version, and those commands will be supported in the next version anyway... > CASE "XOVER", "OVER" > Xover(LastCommand(2)) > > Be careful XOVER and OVER are not the same commands. Again, you're right... I though that RFC 3977 simply took OVER from the XOVER specification (RFC 2980), but indeed, I see now that XOVER works only on ranges, while OVER may also take a MsgID as a parameter... I will fix that. > GROUP fr.test > 211 7501 1760 10030 fr.test > OVER 1 > 423 No articles in 1 > XOVER 1 > 224 No articles in 1 > . Seems wrong there.. RFC 2980 states that: "If no articles are in the range specified, a 420 error response is returned by the server." (about the XOVER command). > PRINT "101 Capability list:" + CRLF; > PRINT "VERSION 2" + CRLF; > PRINT "READER" + CRLF; > PRINT "LIST ACTIVE NEWSGROUPS OVERVIEW.FMT" + CRLF; > PRINT "OVER" + CRLF; > PRINT "." + CRLF; > > No "POST"? (when WriteAccess = 1) I though about that, but I found no mention in any RFC, telling that "POST" may be advertised, so I assumed that advertising "READER" is implicitly telling that the POST command is supported... Do you have any sources which would indicate POST as a valid advertisment? > And "AUTHINFO USER", in case you wish to advertise it? Good idea! I missed that one :) > PRINT "502 Authentication rejected." > > Not a valid answer. It must be 481 (see RFC 4643). Ooops, yet another bug! > GROUP is not required and 412 is not a valid answer to POST! Argh, now I now that. I was sure that there must be a group selected before POST, my fault. So okay, I will always respond to POST with a 340 (unless the whole server is read-only), and then I will check what are the destination groups... > By the way, there is "dot-stuffing" to handle (maybe you already takes > care of that but better warn you): Yeah, I do know about that, but as far as I understand, I doesn't have to care about that (dot-stuffing is done by the sending NewsReader, and dot-unstuffing is done by the receiving NewsReader). Am I right? > 340 :) > He sends his article and you see afterwards. Yup. Understood. > Incidentally, I have a question which will show you why GROUP is not > required: ** how do you handle crossposts? :) ** Ah, good question. It doesn't came to my mind, but indeed - it explain much things... :) >> S: 200 Welcome to the BasicNews Server! >> C: MODE READER >> S: 200 Reader mode, posting permitted. >> C: POST >> S: 412 No newsgroup selected. > > You shouldn't have answered 412. Thank you for your help! I will fix my server and release a (hopefully) better version soon. :-) Best regards, Mateusz Viste - -- You'll find my public OpenPGP key at http://www.viste-family.net/mateusz/pub_key -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iQEcBAEBAgAGBQJKIRdVAAoJEC30Ty9xnkvbVM8IAKtPq4JGp/7E3PQmVRZykx0I lSHKxhqdnilfUliDYTdnjasHcymzCevE3MDeTJSB0W5MrBfl6igU/cIpN2NQpoJR kJm0K6XpIkhrXc3AQYFV2BI6S7a50Lo6Al2+UKfeX4NpyKH1yQ0EMrbfFCZK7Uzl OEbl/RSXUiST9P6U5n6ei0/mo66cwR8N+MeyL8tkCj7U4LedpBwvMDFTw8W2yZY1 y0poNsBg/TsbE7iPwHBYPK8pvUpn6austZDRSGJdX3Ne9Wzx4eYt28MGsG5ue1k2 qZb699AK83TIQ2Yep+5r4H2jEehuskqlco0Z686toIiIE4DVyMXrtDpqcQCGTok= =O66w -----END PGP SIGNATURE-----
Re: Have I to issue a GROUP command before POSTing?
Author: Mateusz Viste
Date: Sat, 30 May 2009 11:40
Date: Sat, 30 May 2009 11:40
40 lines
2822 bytes
2822 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 30 May 2009 10:22, Antti-Juhani Kaijanaho "kirjoitti" [whatever it means :-)]: > You check if the connection has posting authority in general, and issue > your response to POST based on that. Yes, that's indeed what I understood from Julien's answer :) > If you give the client the leave to post, you then have to receive the > post and do the usual injection checks (see the soon-to-be-RFC > draft-ietf-usefor-usepro for what checks are expected) That's interesting! Where could I find this document? So far, I'm only checking for some headers (date, from, NNTP-POSTING-HOST, sender, lines, date-received, message-id). > checking that it does not violate local policy (eg. post to a read-only > group). You decide whether to accept or reject based on *these* checks. Ok. In fact, it was strange to me to answer to anyone "Ok, post whatever you want", process all the data, and then only tell "sorry, finally I don't want your message". > (...) like Julien says, how else do you > handle crossposts? That's definitely a good reason! :-) Best regards, Mateusz Viste - -- You'll find my public OpenPGP key at http://www.viste-family.net/mateusz/pub_key -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iQEcBAEBAgAGBQJKIRscAAoJEC30Ty9xnkvbnhMH/jqH/zyvEbLocqjMptOjx6BG vSdC+Q5kNVejA1a4h8cJtb/twHMLDyAXFqvUGDk99i68Ac0RmLqzj4U2Lp5YcW/Q UfqcGyDLVK48C9xRhMCocv3X4dTeJ5qQAZq/+Fdcsvvp9h/pM7i/cZ+ICUVTpoWl RgAfwZac9wz7C7xavM6fsEGqUz1UZ7q8F5KN+poeyBokBd+K6zCLQxON1bMULvaq nvQR3taV2FMIlxnKRi640NOsyke3Z0jUbsAr9FHXC3rr8Z80Cnnz2nL3drBNBwHV KY4sUqsKvLINZ4JoW2f1y3n4+a2Sfq7uPK9CMgCtyP8K8ZjDKsSdyBf2JELlv+E= =C7Y7 -----END PGP SIGNATURE-----
Re: Have I to issue a GROUP command before POSTing?
Author: Julien ÉLIE
Date: Sat, 30 May 2009 12:20
Date: Sat, 30 May 2009 12:20
232 lines
10649 bytes
10649 bytes
Hi Mateusz,
>> CASE "XOVER", "OVER"
>> Xover(LastCommand(2))
>>
>> Be careful XOVER and OVER are not the same commands.
>
> Again, you're right... I though that RFC 3977 simply took OVER from the
> XOVER specification (RFC 2980), but indeed, I see now that XOVER works only
> on ranges, while OVER may also take a MsgID as a parameter... I will fix
> that.
>
>> GROUP fr.test
>> 211 7501 1760 10030 fr.test
>> OVER 1
>> 423 No articles in 1
>> XOVER 1
>> 224 No articles in 1
>> .
>
> Seems wrong there..
> RFC 2980 states that: "If no articles are in the range specified, a 420
> error response is returned by the server." (about the XOVER command).
:)
Yeah, I know. The problem is that RFC 2980 is wrong.
XOVER definitely answers 224 with no articles after.
In case you answer 420 to XOVER here, you will probably break some clients
(Outlook Express/Windows Mail gives an error to the user, Thunderbird
silently fails [it sends XOVER and, just after, an unnecessary HEAD,
which returns 423]).
RFC 2980 was written a posteriori and got a few stuff wrong. Current NNTP
implementations are right and it is what you should look at for commands
not detailed in RFC 3977, 4642, 4643 or 4644. That's one of the reasons
why XOVER was standardized as OVER because you cannot change return codes
for existing widely-used commands. With a new command name, we can start
from nought and fix historic problems.
Note that INN, Diablo and Dnews use 224. (Columbus nntp.perl.org uses 420
as far as I know.)
By the way, 420 means that the current article number is invalid (not
selected) whereas 423 means that there is no such article number in
the group. 423 would then be a better answer for XOVER, but never
mentioned in RFC 2980.
Do not trust RFC 2980! Trust existing implementations!
>> PRINT "101 Capability list:" + CRLF;
>> PRINT "VERSION 2" + CRLF;
>> PRINT "READER" + CRLF;
>> PRINT "LIST ACTIVE NEWSGROUPS OVERVIEW.FMT" + CRLF;
>> PRINT "OVER" + CRLF;
>> PRINT "." + CRLF;
>>
>> No "POST"? (when WriteAccess = 1)
>
> I though about that, but I found no mention in any RFC, telling that "POST"
> may be advertised, so I assumed that advertising "READER" is implicitly
> telling that the POST command is supported...
> Do you have any sources which would indicate POST as a valid advertisment?
Sure!
In RFC 3977:
3.3.2. Standard Capabilities
POST
This capability indicates that the server implements the POST
command.
5.2.3. Examples
Example of a response from a server that has a range of facilities
and that also describes itself:
[C] CAPABILITIES
[S] 101 Capability list:
[S] VERSION 2
[S] READER
[S] IHAVE
[S] POST
[S] NEWNEWS
[S] LIST ACTIVE NEWSGROUPS ACTIVE.TIMES OVERVIEW.FMT
[S] IMPLEMENTATION INN 4.2 2004-12-25
[S] OVER MSGID
[S] STREAMING
[S] XSECRET
[S] .
6.3.1. POST
6.3.1.1. Usage
Indicating capability: POST
9.5. Capability Lines
capability-entry =/
post-capability
post-capability = "POST"
Appendix B. Summary of Commands
+-------------------+-----------------------+---------------+
| Command | Indicating capability | Definition |
+-------------------+-----------------------+---------------+
| ARTICLE | READER | Section 6.2.1 |
| BODY | READER | Section 6.2.3 |
| CAPABILITIES | mandatory | Section 5.2 |
| DATE | READER | Section 7.1 |
| GROUP | READER | Section 6.1.1 |
| HDR | HDR | Section 8.5 |
| HEAD | mandatory | Section 6.2.2 |
| HELP | mandatory | Section 7.2 |
| IHAVE | IHAVE | Section 6.3.2 |
| LAST | READER | Section 6.1.3 |
| LIST | LIST | Section 7.6.1 |
| LIST ACTIVE.TIMES | LIST | Section 7.6.4 |
| LIST ACTIVE | LIST | Section 7.6.3 |
| LIST DISTRIB.PATS | LIST | Section 7.6.5 |
| LIST HEADERS | HDR | Section 8.6 |
| LIST NEWSGROUPS | LIST | Section 7.6.6 |
| LIST OVERVIEW.FMT | OVER | Section 8.4 |
| LISTGROUP | READER | Section 6.1.2 |
| MODE READER | MODE-READER | Section 5.3 |
| NEWGROUPS | READER | Section 7.3 |
| NEWNEWS | NEWNEWS | Section 7.4 |
| NEXT | READER | Section 6.1.4 |
| OVER | OVER | Section 8.3 |
| POST | POST | Section 6.3.1 |
| QUIT | mandatory | Section 5.4 |
| STAT | mandatory | Section 6.2.4 |
+-------------------+-----------------------+---------------+
I hope this last table will help :)
There also exist STREAMING, AUTHINFO USER, AUTHINFO SASL and STARTTLS.
>> And "AUTHINFO USER", in case you wish to advertise it?
>
> Good idea! I missed that one :)
Note that you are not required to advertise it, because of that note:
The "USER" argument indicates that AUTHINFO USER/PASS is supported as
defined by Section 2.3 of this document. The "USER" argument MUST
NOT be advertised, and the AUTHINFO USER/PASS commands SHOULD NOT be
provided, unless a strong encryption layer (e.g., Transport Layer
Security (TLS) [NNTP-TLS]) is in use or backward compatibility
dictates otherwise.
INN 2.5.0 for instance advertises AUTHINFO USER even though a secure layer
is not used. (It is not advertised only when the require_ssl: parameter
is set on each auth block.)
Note that after a successful AUTHINFO, you should not avertise it any
longer and the knowledge from the client is reset (for instance,
any GROUP command issued before is cleared).
>> PRINT "502 Authentication rejected."
>>
>> Not a valid answer. It must be 481 (see RFC 4643).
>
> Ooops, yet another bug!
I assume you followed RFC 2980 :)
Not a big deal, though, 502 instead of 481 because 502 is well understood
by news clients :->
> Argh, now I now that. I was sure that there must be a group selected before
> POST, my fault. So okay, I will always respond to POST with a 340 (unless
> the whole server is read-only), and then I will check what are the
> destination groups...
And also, as Antti-Juhani said, you should have a look at:
http://www.eyrie.org/~eagle/usefor/drafts/draft-ietf-usefor-usepro-14.html#injecting
(Part "3.5. Duties of an Injecting Agent" of RFC 5537, in case the link
is not valid -- in the future.)
>> By the way, there is "dot-stuffing" to handle (maybe you already takes
>> care of that but better warn you):
>
> Yeah, I do know about that, but as far as I understand, I doesn't have to
> care about that (dot-stuffing is done by the sending NewsReader, and
> dot-unstuffing is done by the receiving NewsReader). Am I right?
:)
OK. That's fine.
Nonetheless, do not forget to take it into account when implementing
the ":bytes" part in OVER!
I also assume that Curt will warn you that in case there is a problem
in your news spool/file system, you may end up sending a bad article,
with a mere dot at the beginning of a line, thus breaking the rest
of the article.
See <20090410161411.260$qR@newsreader.com> (Curt Welch):
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
One issue that happens in some servers, is that they send articles from
disk without checking for proper dot protocol. If their disk data gets
corrupted (disk errors/server crash leaving disk data corrupted), they can
sometimes send invalid data - such as a CR LF DOT CR LF in the middle of
the article without realizing it happened. The receiving system then
starts to read some raw article data as if they were commands, and then
starts to do things like send 5xx codes back as errors. When something
like that happens, you don't want the sending server to just start dropping
all the articles from the queue. You want the queue to hang, until the
admin on the sending side fixes his problem. If it takes any of the 5xx
responses to mean reject, then the entire feed could just get flushed or
dropped causing some very large blocks of articles to be lost and making it
very hard to re-feed the lost articles since there is probably no good
documentation on what was lost.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Have a nice week-end,
--
Julien ÉLIE
« Il y a des sciences bonnes dont l'existence est nécessaire
et dont la culture est inutile. Telles sont les mathématiques. » (Joseph Joubert)
Re: Have I to issue a GROUP command before POSTing?
Author: Julien ÉLIE
Date: Sat, 30 May 2009 12:25
Date: Sat, 30 May 2009 12:25
23 lines
2195 bytes
2195 bytes
Hi Mateusz,
>> If you give the client the leave to post, you then have to receive the
>> post and do the usual injection checks (see the soon-to-be-RFC
>> draft-ietf-usefor-usepro for what checks are expected)
>
> That's interesting! Where could I find this document? So far, I'm only
> checking for some headers (date, from, NNTP-POSTING-HOST, sender, lines,
> date-received, message-id).
I had not seen your response (I was busy writing my other anwser in this
thread). Have a look at:
http://www.eyrie.org/~eagle/usefor/drafts/draft-ietf-usefor-usepro-14.html#injecting
(Part "3.5. Duties of an Injecting Agent" of RFC 5537, in case the link
is not valid -- in the future.)
--
Julien ÉLIE
« Ambo florentes aetatibus, Arcades ambo » (Virgile, _Églogue VII_)
Re: Have I to issue a GROUP command before POSTing?
Author: Mateusz Viste
Date: Thu, 04 Jun 2009 15:44
Date: Thu, 04 Jun 2009 15:44
45 lines
3253 bytes
3253 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 29 May 2009 23:28, Mateusz Viste wrote: > I recently wrote my own NNTP server, called BasicNews. It is destinated to > serve some leaf sites (ie without any possible synchronisation with > external servers) Hi there! I'm pleased to announce a new version (the second, in fact) of my NNTP server. Many bugs has been fixed. :-) http://www.viste-family.net/mateusz/software/basicnews/ What's new in v0.11 (04 Jun 2009): - Parameters to the LIST command are case insensitive now, - The server is returning a 481 code (was: 502) for authentication failure (as stated by the RFC 4643), - The "POST" capability is advertised (only if the server is write-enabled), - Fixed a nasty bug in the POST handler (the client do not have to select the group before posting anymore), - Posted articles are checked for their "Newsgroups" and "Followup-to" headers, instead of basing on the current selected group, - Adding the PATH header to messages, - Following commands has been implemented: HEAD; BODY; STAT; XGTITLE; LAST; NEXT; NEWGROUPS, - Message-IDs are generated in a much more unique way, - GROUP selection is not case-sensitive anymore, - Loging server's activity is possible now (and activated by default), - Added support for wildcards (for LIST and XGTITLE commands), - Fixed a bug in the authentication politic (retrieving an article by MsgID from a protected group was possible without authentication), - Any date headers are generated in the correct syntax (wdy, dd mmm yyyy hh:mm:ss timezone) - Time is handled integrally in GMT. Best regards, Mateusz Viste - -- You'll find my public OpenPGP key at http://www.viste-family.net/mateusz/pub_key -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iQEcBAEBAgAGBQJKJ+vmAAoJEC30Ty9xnkvbsXYIAJfyOZogB28NCSE64PjOAOGR Z+aQbOrg1VRMKMuW1SlMldO6hjjIMp+xEeZEBjSIHBRFzAN9HrJ0cDpTPL8c6oY7 sZ4xOdt53cWowMIaUUYHbXazK3/KHeiB8SlOPsKZxljW9u4C7DKILlfjTBthkA1D gdDYxXRmTBRMiXxotULtnpa9deRE6vAJTbs9db15VkDroWiHb94mxBatKhEodGMu Tfi0cEuHKINopRdrJDf+yY2BCe53Jfw3ejedVyPeb8dAqhw/SVLG61obZP9VAtrG ShHg4lpgD5CxFzOaJmrNbe5j8C20gCHJO8HFcdSjVL/qO8YvVKJRHrLvIDunE08= =ao7n -----END PGP SIGNATURE-----
Re: Have I to issue a GROUP command before POSTing?
Author: Julien ÉLIE
Date: Thu, 04 Jun 2009 18:41
Date: Thu, 04 Jun 2009 18:41
19 lines
1761 bytes
1761 bytes
Hi Mateusz, > - GROUP selection is not case-sensitive anymore Do you speak about the argument of GROUP? (the newsgroups name) GROUP news.software.nntp 211 3219 149 6892 news.software.nntp GROUP news.software.NNTP 411 No such group news.software.NNTP -- Julien ÉLIE « Love isn't all smiles and laughs for the moment; but crying and fighting for what you believe is right and will last forever. »
Re: Have I to issue a GROUP command before POSTing?
Author: Urs Janßen
Date: Thu, 04 Jun 2009 18:55
Date: Thu, 04 Jun 2009 18:55
73 lines
2976 bytes
2976 bytes
In <7o6lf6-lup.ln1@mail.viste-family.net>, Mateusz Viste wrote: > I'm pleased to announce a new version (the second, in fact) of my NNTP server. Many bugs has been fixed. :-) |< 201 Welcome to this BasicNews Server! |> CAPABILITIES |< 101 Capability list: |< VERSION 2 |< READER |< LIST ACTIVE NEWSGROUPS OVERVIEW.FMT |< OVER |< . |> LISTGROUP test |< 500 I don't know such command. RFC 3977 requires LISTGROUP when READER is announced |> list overview.fmt |< 215 Order of fields in overview database: |< Subject: |< From: |< Date: |< Message-ID: |< References: |< :bytes |< :lines |< Xref:full |< . |> group test |< 211 18 4198 4216 test group selected. |> over 4198-4216 |< 224 Overview information follows: |< . the included faq doesn't say anything about the overview data - will it be created on the fly? if not, what todo to get overview data back... |> article 4200 |< 220 4200 <gh8bfj$qmr$1@example.org> Article follows: [...] |< end no taling "."-line here - clients may hang there and wait for the . till doomsday. when I configure the server to need auth, CAPABILITIES doesn't mention any valid auth-methods: |> CAPABILITIES |< 101 Capability list: |< VERSION 2 |< READER |< LIST ACTIVE NEWSGROUPS OVERVIEW.FMT |< OVER |< . |> group test |< 480 Permission denied. |> AUTHINFO USER test |< 381 Gimme your password, now. |> AUTHINFO PASS test |< 281 Authentication accepted. Be my guest! > - Following commands has been implemented: HEAD; BODY; STAT; XGTITLE; LAST; NEXT; NEWGROUPS, XGTITLE is obsolete and replaced by "list newsgroups [pattern]" > list newsgroups f* < 215 List of available newsgroups follows < test < . f* doesn't match test (so your server doesn't handle list newsgroups correct but you advertize it).
Re: Have I to issue a GROUP command before POSTing?
Author: Mateusz Viste
Date: Thu, 04 Jun 2009 19:28
Date: Thu, 04 Jun 2009 19:28
31 lines
1911 bytes
1911 bytes
On Thursday 04 June 2009 20:41, Julien ÉLIE wrote: > Do you speak about the argument of GROUP? (the newsgroups name) Yes. > GROUP news.software.nntp > 211 3219 149 6892 news.software.nntp > > GROUP news.software.NNTP > 411 No such group news.software.NNTP Gah! What the hell...... I was sure I saw such recomendation in some RFC. ... Okay, found it: "Commands and command parameters are not case sensitive. That is, a command or parameter word may be upper case, lower case, or any mixture of upper and lower case." - RFC 977 Hmm, now I am doubting... Does any recomendations from RFC 977 are still applicable, or should I forget about it and follow *only* what's written in RFC 3977? Best regards, Mateusz Viste -- You'll find my public OpenPGP key at http://www.viste-family.net/mateusz/pub_key
Re: Have I to issue a GROUP command before POSTing?
Author: Julien ÉLIE
Date: Thu, 04 Jun 2009 20:01
Date: Thu, 04 Jun 2009 20:01
78 lines
4255 bytes
4255 bytes
Hi Mateusz,
>> GROUP news.software.NNTP
>> 411 No such group news.software.NNTP
>
> Gah! What the hell......
>
> I was sure I saw such recomendation in some RFC.
>
> ...
>
> Okay, found it:
> "Commands and command parameters are not case sensitive. That is, a command
> or parameter word may be upper case, lower case, or any mixture of upper
> and lower case." - RFC 977
>
> Hmm, now I am doubting... Does any recomendations from RFC 977 are still
> applicable, or should I forget about it and follow *only* what's written in
> RFC 3977?
Drop RFC 977 and do not follow it! It is obsolete.
However, you have a good point and I'm not sure.
It is true that keywords are case insensitive in RFC 3977 and I do not
see well where it is stated that a newsgroup is case-insensitive.
group-command = "GROUP" [WS newsgroup-name]
newsgroup-name = 1*wildmat-exact
wildmat-exact = %x22-29 / %x2B / %x2D-3E / %x40-5A / %x5E-7E /
UTF8-non-ascii ; exclude ! * , ? [ \ ]
10.3. Outstanding Issues
Restricting newsgroup names to UTF-8 is not a complete solution. In
particular, when new newsgroup names are created or a user is asked
to enter a newsgroup name, some scheme of canonicalisation will need
to take place. This specification does not attempt to define that
canonicalization; further work is needed in this area, in conjunction
with the article format specifications. Until such specifications
are published, implementations SHOULD match newsgroup names octet by
octet. It is anticipated that any approved scheme will be applied
"at the edges", and therefore octet-by-octet comparison will continue
to apply to most, if not all, uses of newsgroup names in NNTP.
Would it be only said in that paragraph? Because a news server SHOULD
match a newsgroup name octet by octet?
Wildmats are case-sensitive too (unless I am mistaken). And message-IDs
too. But it is not clearly said.
Are they case-insensitive?!?
I read in RFC 5536 (USEFOR):
Some software will try to match the <id-right> of a <msg-id> in a
case-insensitive fashion; some will match it in a case-sensitive
fashion. Implementations MUST NOT generate a Message-ID where the
only difference from another Message-ID is the case of characters in
the <id-right> part.
NOTE: All-digit <component>s conflict with one widely used storage
scheme for articles. Mixed-case groups cause confusion between
systems with case-sensitive matching and systems with case-
insensitive matching of <newsgroup-name>s.
It does not say what should in fact be done.
Are they in fact case-insensitive?
--
Julien ÉLIE
« La vie est un sommeil, l'amour en est le rêve et vous aurez vécu
si vous avez aimé. » (Alfred de Musset)
Re: Have I to issue a GROUP command before POSTing?
Author: Mateusz Viste
Date: Thu, 04 Jun 2009 20:16
Date: Thu, 04 Jun 2009 20:16
87 lines
4366 bytes
4366 bytes
Hi! That's a surpise... I couldn't imagine that anyone would beta-test my software :-) On Thursday 04 June 2009 20:55, Urs Janßen wrote: > RFC 3977 requires LISTGROUP when READER is announced Yup, you are right. I added that to my TODO list for the very next release. > the included faq doesn't say anything about the overview data - will > it be created on the fly? if not, what todo to get overview data > back... Well, the overview data is created when the first article is received. The overview data will contain only those articles, which the server received himself, via a POST command. How have you performed your test? I guess that you copied several files from another NNTP server into the BasicNews spool directory, am I right? :) > |> article 4200 > |< 220 4200 <gh8bfj$qmr$1@example.org> Article follows: > [...] > |< end > > no taling "."-line here - clients may hang there and wait for the > . till doomsday. WOW! I have no idea what happened there... ... Ah, okay, I now - that's still your hand-copied spool files, right? BasicNews is saving the article along with the final dot, so this same dot is then provided back to the client when he retrieves the article... If your file haven't any final dot, then BasicNews won't make it on his own (but in normal work it shouldn't ever happen, as the posting client have to send it each time). But anyway, it could lead to some weird situations... I will add a check routine to BasicNews, to make it check wheter the article on disk is terminated by a dot or not, and if not, it will add that missing dot. hmm... or maybe storing articles without that dot at all would be a better idea? > when I configure the server to need auth, CAPABILITIES doesn't > mention any valid auth-methods: Right. I will add a capability line for AUTHINFO USER, unless the user is already authenticated. That's no big deal :-) > XGTITLE is obsolete and replaced by "list newsgroups [pattern]" Yes, I know. I implemented it, because all NNTP-HTTP gateways I tested so far were using XGTITLE to retrieve group's descriptions. I do not think that implementing an (even obsolete) command may harm anything... Of course, there's no need to advertise it, but IF a client decide to use it, it's nice to be able to answer in the way the client is waiting for. Or am I wrong? >> list newsgroups f* > < 215 List of available newsgroups follows > < test > < . > > f* doesn't match test (so your server doesn't handle list newsgroups > correct but you advertize it). Oh my. Stupid me. Stupid stupid stupid :( My routines for wildmats is working very well, but I forgot to provide the (optional) wildmat parameter to the listing function... Argh... Note, that wildmats do work at least with XGTITLE (that's the command I was testing wildmats on) :-P Anyway, I fixed that stupid bug right now. Many thanks for the cool testing you performed, Urs :-) It will help me to improve BasicNews (I will do my best to release a minor version this weekend). Thank you very much! Best regards, Mateusz Viste -- You'll find my public OpenPGP key at http://www.viste-family.net/mateusz/pub_key
Re: Have I to issue a GROUP command before POSTing?
Author: Russ Allbery
Date: Thu, 04 Jun 2009 20:53
Date: Thu, 04 Jun 2009 20:53
83 lines
4582 bytes
4582 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> However, you have a good point and I'm not sure.
>
> It is true that keywords are case insensitive in RFC 3977 and I do not
> see well where it is stated that a newsgroup is case-insensitive.
>
> group-command = "GROUP" [WS newsgroup-name]
> newsgroup-name = 1*wildmat-exact
> wildmat-exact = %x22-29 / %x2B / %x2D-3E / %x40-5A / %x5E-7E /
> UTF8-non-ascii ; exclude ! * , ? [ \ ]
>From the RFC 3977 perspective, newsgroup names are opaque tokens.
draft-ietf-usefor-usefor-12 says that one SHOULD NOT use uppercase
characters in newsgroup names. I don't see something that says
explicitly that newsgroups are case-sensitive, but since nothing says
they're case-insensitive, they're case-sensitive (which was the
intention).
They are definitely case-sensitive in practice.
> 10.3. Outstanding Issues
>
> Restricting newsgroup names to UTF-8 is not a complete solution. In
> particular, when new newsgroup names are created or a user is asked
> to enter a newsgroup name, some scheme of canonicalisation will need
> to take place. This specification does not attempt to define that
> canonicalization; further work is needed in this area, in
> conjunction with the article format specifications. Until such
> specifications are published, implementations SHOULD match newsgroup
> names octet by octet. It is anticipated that any approved scheme
> will be applied "at the edges", and therefore octet-by-octet
> comparison will continue to apply to most, if not all, uses of
> newsgroup names in NNTP.
> Would it be only said in that paragraph? Because a news server SHOULD
> match a newsgroup name octet by octet?
This was really just meant to deal with UTF-8 canonicalization (which
wouldn't change case).
> Wildmats are case-sensitive too (unless I am mistaken).
RFC 3977:
A <wildmat-exact> matches the same character (which may be more than
one octet in UTF-8).
so yes. Upper- and lower-case versions of a letter are different
characters.
> And message-IDs too. But it is not clearly said. Are they
> case-insensitive?!?
No.
> I read in RFC 5536 (USEFOR):
>
> Some software will try to match the <id-right> of a <msg-id> in a
> case-insensitive fashion; some will match it in a case-sensitive
> fashion. Implementations MUST NOT generate a Message-ID where the
> only difference from another Message-ID is the case of characters in
> the <id-right> part.
>
> NOTE: All-digit <component>s conflict with one widely used storage
> scheme for articles. Mixed-case groups cause confusion between
> systems with case-sensitive matching and systems with case-
> insensitive matching of <newsgroup-name>s.
>
> It does not say what should in fact be done. Are they in fact
> case-insensitive?
It guarantees that you will never get different results if you compare
them case-sensitively or case-insensitively on the right-hand side, so
you can do whichever you want.
The left-hand side is explicitly stated to be case-sensitive.
--
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: Have I to issue a GROUP command before POSTing?
Author: Urs Janßen
Date: Thu, 04 Jun 2009 21:29
Date: Thu, 04 Jun 2009 21:29
41 lines
3147 bytes
3147 bytes
In <87zlcnn2jv.fsf@windlord.stanford.edu>, Russ Allbery wrote: > characters in newsgroup names. I don't see something that says > explicitly that newsgroups are case-sensitive, but since nothing says spencer said it back in 1994 | 2.5. Case-Sensitivity | | Text in newsgroup names, header parameters, etc. is case- | sensitive unless stated otherwise. | | NOTE: This is at variance with MAIL, which is | case-insensitive unless stated otherwise, but is | consistent with news historical practice and | existing news software. See the comments on back- | ward compatibility in section 1. | 5.5. Newsgroups [...] | NOTE: Possibly newsgroup names should have been | case-insensitive, but all existing software treats | them as case-sensitive. (RFC 977 [rrr] claims | that they are case-insensitive in NNTP, but exist- | ing implementations are believed to ignore this.) | The simplest solution is just to ban use of upper- | case letters, since no widespread newsgroup name | uses them anyway; this avoids any possibility of | confusion. > It guarantees that you will never get different results if you compare > them case-sensitively or case-insensitively on the right-hand side, so > you can do whichever you want. > > The left-hand side is explicitly stated to be case-sensitive. JFTR, spencer 5.3: | As with From addresses, a message ID's local part is case- | sensitive and its domain is case-insensitive. The "<" and | ">" are parts of the message ID, not peculiarities of the | Message-ID header.
Re: Have I to issue a GROUP command before POSTing?
Author: Urs Janßen
Date: Thu, 04 Jun 2009 21:43
Date: Thu, 04 Jun 2009 21:43
38 lines
2737 bytes
2737 bytes
In <mmmlf6-v5r.ln1@mail.viste-family.net>, Mateusz Viste wrote: > himself, via a POST command. How have you performed your test? I guess that > you copied several files from another NNTP server into the BasicNews spool > directory, am I right? :) I pointed BasicNews to an existing spool. btw. it would be much nicer if BasicNews would use the traditional spool format (that would avoid problems with groups named *.conf as well, currently you can't have a group foo.test with a group configuration and a group foo.test.conf), that way readers which can read traditional spool (i.e. the format used by inn < 2.3 when not using cnfs or the like; guess why I still run inn 2.2.3 ,-) without nntp-overhead (i.e. tin) could be used on a BasicNews spool. your format is $SPOOLBASE/news.group.name/articles traditional spool format is $SPOOLBASE/news/group/name/articles > hmm... or maybe storing articles without that dot at all would be a better > idea? IMHO the right approach > I do not think that implementing an (even obsolete) command may harm > anything... Of course, there's no need to advertise it, but IF a client > decide to use it, it's nice to be able to answer in the way the client is > waiting for. Or am I wrong? it does no harm > Many thanks for the cool testing you performed, Urs :-) actually im testing tin against various newsservers to see if the client is buggy and/or if the server is buggy (and I can add a simple workaround).
Re: Have I to issue a GROUP command before POSTing?
Author: Julien ÉLIE
Date: Thu, 04 Jun 2009 21:51
Date: Thu, 04 Jun 2009 21:51
32 lines
2604 bytes
2604 bytes
Hi Russ, > From the RFC 3977 perspective, newsgroup names are opaque tokens. > draft-ietf-usefor-usefor-12 says that one SHOULD NOT use uppercase > characters in newsgroup names. I don't see something that says > explicitly that newsgroups are case-sensitive, but since nothing says > they're case-insensitive, they're case-sensitive (which was the > intention). The problem is that, in the absence of information, the following paragraph from RFC 3977 applies (already seen by Mateusz): 3.1. Commands and Responses Keywords are case insensitive; the case of keywords for commands MUST be ignored by the server. Command and response arguments are case or language specific only when stated, either in this document or in other relevant specifications. > They are definitely case-sensitive in practice. I agree, but it is not shown in RFC 3977. And USEFOR does not explicitly tell that they are case-sensitive, so there may be a problem here... -- Julien ÉLIE « -- Vous croyez qu'on s'est fait rouler, chef ? -- P'têt ben qu'oui, p'têt ben qu'non... » (Astérix)
Re: Have I to issue a GROUP command before POSTing?
Author: Russ Allbery
Date: Thu, 04 Jun 2009 22:01
Date: Thu, 04 Jun 2009 22:01
35 lines
2793 bytes
2793 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Hi Russ,
>
>> From the RFC 3977 perspective, newsgroup names are opaque tokens.
>> draft-ietf-usefor-usefor-12 says that one SHOULD NOT use uppercase
>> characters in newsgroup names. I don't see something that says
>> explicitly that newsgroups are case-sensitive, but since nothing says
>> they're case-insensitive, they're case-sensitive (which was the
>> intention).
>
> The problem is that, in the absence of information, the following
> paragraph from RFC 3977 applies (already seen by Mateusz):
>
> 3.1. Commands and Responses
>
> Keywords are case insensitive; the case of keywords for commands MUST
> be ignored by the server. Command and response arguments are case or
> language specific only when stated, either in this document or in
> other relevant specifications.
>
>> They are definitely case-sensitive in practice.
>
> I agree, but it is not shown in RFC 3977.
> And USEFOR does not explicitly tell that they are case-sensitive,
> so there may be a problem here...
Could you raise this on the USEFOR mailing list? We may want to fix
this for the Newsgroups description in USEFOR during AUTH48.
--
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: Have I to issue a GROUP command before POSTing?
Author: Urs Janßen
Date: Thu, 04 Jun 2009 22:02
Date: Thu, 04 Jun 2009 22:02
23 lines
1967 bytes
1967 bytes
In <mmmlf6-v5r.ln1@mail.viste-family.net>, Mateusz Viste wrote: > Well, the overview data is created when the first article is received. The | > list overview.fmt | < 215 Order of fields in overview database: | < Subject: | < From: | < Date: | < Message-ID: | < References: | < :bytes | < :lines | < Xref:full | <. | > over 4198- | < 224 Overview information follows: | < 4217 foo bar Thu, 04 Jun 2009 21:48:58 +0000 <4217-test-04062009214858-63@127.0.0.1> 52 1 | <. the xref filed is missing from the created overview data (the article went into a single group, i didn't check crossposts). and the created message-id is suboptimal (don't use a (private) ip-adress in the rhs), from wasn't checked at all, ...
Re: Have I to issue a GROUP command before POSTing?
Author: Julien ÉLIE
Date: Fri, 05 Jun 2009 05:40
Date: Fri, 05 Jun 2009 05:40
16 lines
1979 bytes
1979 bytes
Hi Russ, >> I agree, but it is not shown in RFC 3977. >> And USEFOR does not explicitly tell that they are case-sensitive, >> so there may be a problem here... > > Could you raise this on the USEFOR mailing list? We may want to fix > this for the Newsgroups description in USEFOR during AUTH48. OK, just raised. -- Julien ÉLIE « Les idées fausses ne sont pas toujours mauvaises. » (Marcel Aymé)
Re: Have I to issue a GROUP command before POSTing?
Author: Mateusz Viste
Date: Fri, 05 Jun 2009 19:46
Date: Fri, 05 Jun 2009 19:46
42 lines
2656 bytes
2656 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi :) On Saturday 30 May 2009 00:23, Julien ÉLIE wrote: > CASE "XOVER", "OVER" > Xover(LastCommand(2)) > > Be careful XOVER and OVER are not the same commands. What about this extract from RFC 3977? o The XOVER command in RFC 2980 has been formalised as the new OVER (Section 8.3) and LIST OVERVIEW.FMT (Section 8.4) commands. The former can be applied to a message-id as well as to a range. I understand that the *only* difference between these two, is that OVER may support retrieving by MsgID, while XOVER don't. Then, if I decide to implement OVER without the MsgID feature, it will be strictly identical to XOVER, right? (obviously, I won't advertise "OVER MSGID", but just a single "OVER" capability) ...that would make things easier for me, as I will be able to ruse the same function in my server for both OVER and XOVER. :-P Best regards, Mateusz Viste - -- You'll find my public OpenPGP key at http://www.viste-family.net/mateusz/pub_key -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iQEcBAEBAgAGBQJKKXYAAAoJEC30Ty9xnkvbYsAH/j/UZbYmcCZuNpuiMOPv62Uj 6fvYQqFtiNxTUmfnxUAPQeV8fV4mVGOMFOXcVHckdLNXXE0grQz5NfS3Uo3qbYaj VMsK959HtXSVT/JMDcznb30uZ7zHKZQJd6S+MNHN8/iBymvETwOmaGckzvLd7x+l PMLmXKPyyDZYBnBbPFYeAnz/EAjCkQ1bw+ty1A1HTYHyh5TpZohGRVE1v9AoKLJn ATTWbvGTlB4R2AxtQaNt/zOIX25oKqio5BWH74nWgEIPBLE3+VOQPPjJA7b2/lX5 4vFUC2STVK0TYS016mGU1OIM/EV1Bg+yOHwhl3tu/CVIMUtZl7UNaWdpDbf4r+E= =XJpi -----END PGP SIGNATURE-----
Re: Have I to issue a GROUP command before POSTing?
Author: Mateusz Viste
Date: Fri, 05 Jun 2009 20:03
Date: Fri, 05 Jun 2009 20:03
22 lines
2175 bytes
2175 bytes
On Thursday 04 June 2009 23:51, Julien ÉLIE wrote: > The problem is that, in the absence of information, the following > paragraph from RFC 3977 applies (already seen by Mateusz): I found a nice one, in RFC 2980 (yeah, I know, obsolete, etc... but it's a good starting point anyway): "Note that the name of the news group is not case-dependent. It must otherwise match a news group obtained from the LIST command or an error will result." The above is about the LISTGROUP command. So I guess we can easily assume that many implementations will work in a case-insensitive way, and that setting up groups like pl.test and pl.TEST is impossible (or at least wrong), so there's no harm in processing groups names in a case-insensitive way anyway... :) Best regards, Mateusz Viste -- You'll find my public OpenPGP key at http://www.viste-family.net/mateusz/pub_key
Re: Have I to issue a GROUP command before POSTing?
Author: Julien ÉLIE
Date: Fri, 05 Jun 2009 20:10
Date: Fri, 05 Jun 2009 20:10
70 lines
2918 bytes
2918 bytes
Hi Mateusz, >> Be careful XOVER and OVER are not the same commands. > > What about this extract from RFC 3977? > > o The XOVER command in RFC 2980 has been formalised as the new OVER > (Section 8.3) and LIST OVERVIEW.FMT (Section 8.4) commands. Formalising does not mean that they are equal. > I understand that the *only* difference between these two, is that OVER may > support retrieving by MsgID, while XOVER don't. It is not the only difference. > Then, if I decide to implement OVER without the MsgID feature, it will be > strictly identical to XOVER, right? No! > (obviously, I won't advertise "OVER > MSGID", but just a single "OVER" capability) ...that would make things > easier for me, as I will be able to ruse the same function in my server for > both OVER and XOVER. :-P But that's not the case. There are exactly three differences between OVER and XOVER: * when you ask for a message-ID: OVER <good-msgid> 503 Overview by message-ID unsupported (or of course an accurate result, if supported) XOVER <good-msgid> 501 Syntax error in range * when there is no article in the provided argument (range or article number): OVER 1-5 423 No articles in 1-5 XOVER 1-5 224 No articles in 1-5 .. * when the current article (42 for instance) is invalid: OVER 420 Current article number 42 is invalid XOVER 224 Current article number 42 is invalid .. Have a nice week-end, -- Julien ÉLIE « Et s'il n'en reste qu'un, je serai celui-là ! » (Victor Hugo)
Re: Have I to issue a GROUP command before POSTing?
Author: Julien ÉLIE
Date: Fri, 05 Jun 2009 20:14
Date: Fri, 05 Jun 2009 20:14
26 lines
2334 bytes
2334 bytes
Hi Mateusz, > I found a nice one, in RFC 2980 (yeah, I know, obsolete, etc... but it's a > good starting point anyway): > > "Note that the name of the news group is not case-dependent. It must > otherwise match a news group obtained from the LIST command or an > error will result." > > The above is about the LISTGROUP command. So I guess we can easily assume > that many implementations will work in a case-insensitive way Why would you "easily" assume that? > and that setting up groups like pl.test and pl.TEST is impossible (or at least > wrong) How could you be sure? Another solution: RFC 2980 (written *after* existing implementations) is wrong. -- Julien ÉLIE « Quand je raconterai mon odyssée, personne ne me croira ! » (Astérix)
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