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 ji...@apache.org on 2004/06/06 22:47:56 UTC

[jira] Closed: (JAMES-107) CR or LF will improperly terminate SMTP command

Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAMES-107

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAMES-107
    Summary: CR or LF will improperly terminate SMTP command
       Type: Bug

     Status: Closed
 Resolution: FIXED

    Project: James
 Components: 
             SMTPServer
   Versions:
             2.1

   Assignee: 
   Reporter: Rich

    Created: Fri, 30 May 2003 8:31 PM
    Updated: Sun, 6 Jun 2004 1:46 PM
Environment: Operating System: All
Platform: All

Description:
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.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org