That was me jumping the gun a bit!
Looking at the code, there is a bug.
It should send:
the message content<CRLF>.<CRLF>
It does send:
the message content.<CRLF>
So, if there's a <CRLF> on the end of the message it works... but when the
message has no <CRLF> at the end, james screws up.
NNTPHandler.java line 1504 is:
writeLoggedFlushedResponse(".");
Should be:
writeLoggedFlushedResponse("\r\n.");
I havnt had a chance to edit/compile/test as i have to scoot.
If anyone wants to give it a try, and if someone can commit the change that
would be nice :)
Daniel.
> -----Original Message-----
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]
> Sent: 12 October 2004 18:10
> To: James Users List; [EMAIL PROTECTED]
> Subject: RE: Problem reading posts from NNTP server
>
>
> Guys,
>
> If some of you would like to help contribute to the NNTP handling, that
> would be great. Please note that we stick to the RFC specifications. In
> this case, RFCs 977 and 850 apply.
>
> According to RFC 977, section 3.10.2 (and related), the article
> being posted
> must end with <CR-LF>.<CR-LF>.
>
> > some clients arnt sending the first CRLF, so when the message gets sent
> > back, it doesnt include the CRLF on the end?
>
> What are they sending? The bug report,
> http://nagoya.apache.org/jira/browse/JAMES-311, says that they are sending
> <CRLF>.<CRLF>, but not <CRLF><CRLF>.<CRLF>. The latter is not necessary.
> If the code is not working properly for the former, then it is a
> bug in the
> code.
>
> --- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]