noel        2003/02/06 13:06:02

  Modified:    src/java/org/apache/james/smtpserver Tag: branch_2_1_fcs
                        SMTPHandler.java
  Log:
  Fix bug 16847
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.35.4.5  +3 -9      
jakarta-james/src/java/org/apache/james/smtpserver/SMTPHandler.java
  
  Index: SMTPHandler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-james/src/java/org/apache/james/smtpserver/SMTPHandler.java,v
  retrieving revision 1.35.4.4
  retrieving revision 1.35.4.5
  diff -u -r1.35.4.4 -r1.35.4.5
  --- SMTPHandler.java  16 Jan 2003 20:52:15 -0000      1.35.4.4
  +++ SMTPHandler.java  6 Feb 2003 21:06:02 -0000       1.35.4.5
  @@ -30,13 +30,6 @@
    * Provides SMTP functionality by carrying out the server side of the SMTP
    * interaction.
    *
  - * @author Serge Knystautas <[EMAIL PROTECTED]>
  - * @author Federico Barbieri <[EMAIL PROTECTED]>
  - * @author Jason Borden <[EMAIL PROTECTED]>
  - * @author Matthew Pangaro <[EMAIL PROTECTED]>
  - * @author Danny Angus <[EMAIL PROTECTED]>
  - * @author Peter M. Goldstein <[EMAIL PROTECTED]>
  - *
    * @version This is $Revision$
    */
   public class SMTPHandler
  @@ -843,7 +836,8 @@
               writeLoggedFlushedResponse(responseString);
           } else {
               sender = sender.trim();
  -            int lastChar = sender.lastIndexOf('>');
  +            // the next gt after the first lt ... AUTH may add more <>
  +            int lastChar = sender.indexOf('>', sender.indexOf('<'));
               // Check to see if any options are present and, if so, whether they are 
correctly formatted
               // (separated from the closing angle bracket by a ' ').
               if ((lastChar > 0) && (sender.length() > lastChar + 2) && 
(sender.charAt(lastChar + 1) == ' ')) {
  
  
  

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

Reply via email to