The following log lines appear to show a problem:

25/09/02 05:34:46 DEBUG smtpserver: Command received: MAIL FROM:<xxx>
SIZE=4439
25/09/02 05:34:46 DEBUG smtpserver: MAIL command had unrecognized/unexpected
option SIZ with value 4439

According to SMTP RFC 2821 #4.1.1.2, the syntax is:

   "MAIL FROM:" ("<>" / Reverse-Path) [SP Mail-parameters] CRLF

And according to RFC 1870 (http://www.ietf.org/rfc/rfc1870.txt), the
extension adds SIZE=<size> after the MAIL FROM: command.  We're allowed to
immediately issue a 452 or 552 in response.

Blah blah blah ... :-)  That's just the background for the problem, for
those who care.  The actual bug is here:

   mailOptionName = mailOption.substring(0, (equalIndex -
1)).toUpperCase(Locale.US);

which should be:

   mailOptionName = mailOption.substring(0,
equalIndex).toUpperCase(Locale.US);

Patch attached.

        --- Noel

Attachment: SMTPHandler.java.diff
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to