You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bu...@apache.org on 2003/05/30 22:31:02 UTC
DO NOT REPLY [Bug 20370] New: -
CR or LF will improperly terminate SMTP command
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20370>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20370
CR or LF will improperly terminate SMTP command
Summary: CR or LF will improperly terminate SMTP command
Product: James
Version: 2.1
Platform: All
OS/Version: All
Status: NEW
Severity: Minor
Priority: Other
Component: SMTPServer
AssignedTo: james-dev@jakarta.apache.org
ReportedBy: rohammer@earthlink.net
RFC 2821 section 2.3.7 tells that lines which contain SMTP commands should end
with CRLF, and servers must not recognize any other character sequence as a line
terminator.
In James 2.1.2, james.smptserver.SMTPHandler uses the BufferedReader readLine()
method to read envelope command lines from the input stream. According to the
JavaDoc, this method terminates a line upon receiving any one of: a line feed
('\n'); a carriage return ('\r'); or a carriage return followed immediately by a
linefeed. I have confirmed this with tests: James accepts either a line feed or
carriage return alone as a line terminator for envelope command lines.
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org