james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pgoldst...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/transport JamesSpoolManager.java
Date Sat, 14 Sep 2002 07:28:55 GMT
pgoldstein    2002/09/14 00:28:55

  Modified:    src/java/org/apache/james/pop3server POP3Handler.java
               src/java/org/apache/james/util
                        SchedulerNotifyInputStream.java
               src/java/org/apache/james/transport JamesSpoolManager.java
  Log:
  Minor commenting, formatting fixes.
  
  Revision  Changes    Path
  1.12      +16 -13    jakarta-james/src/java/org/apache/james/pop3server/POP3Handler.java
  
  Index: POP3Handler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/pop3server/POP3Handler.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- POP3Handler.java	23 Aug 2002 08:00:28 -0000	1.11
  +++ POP3Handler.java	14 Sep 2002 07:28:55 -0000	1.12
  @@ -285,6 +285,7 @@
           if (commandRaw == null) {
               return false;
           }
  +        boolean returnValue = true;
           String command = commandRaw.trim();
           commandRaw = command;
           StringTokenizer commandLine = new StringTokenizer(command, " ");
  @@ -311,31 +312,33 @@
               argument1 = commandLine.nextToken();
           }
   
  -        if (command.equals("USER"))
  +        if (command.equals("USER")) {
               doUSER(command,argument,argument1);
  -        else if (command.equals("PASS"))
  +        } else if (command.equals("PASS")) {
               doPASS(command,argument,argument1);
  -        else if (command.equals("STAT"))
  +        } else if (command.equals("STAT")) {
               doSTAT(command,argument,argument1);
  -        else if (command.equals("LIST"))
  +        } else if (command.equals("LIST")) {
               doLIST(command,argument,argument1);
  -        else if (command.equals("UIDL"))
  +        } else if (command.equals("UIDL")) {
               doUIDL(command,argument,argument1);
  -        else if (command.equals("RSET"))
  +        } else if (command.equals("RSET")) {
               doRSET(command,argument,argument1);
  -        else if (command.equals("DELE"))
  +        } else if (command.equals("DELE")) {
               doDELE(command,argument,argument1);
  -        else if (command.equals("NOOP"))
  +        } else if (command.equals("NOOP")) {
               doNOOP(command,argument,argument1);
  -        else if (command.equals("RETR"))
  +        } else if (command.equals("RETR")) {
               doRETR(command,argument,argument1);
  -        else if (command.equals("TOP"))
  +        } else if (command.equals("TOP")) {
               doTOP(command,argument,argument1);
  -        else if (command.equals("QUIT"))
  +        } else if (command.equals("QUIT")) {
  +            returnValue = false;
               doQUIT(command,argument,argument1);
  -        else
  +        } else {
               doUnknownCmd(command,argument,argument1);
  -        return (command.equals("QUIT") == false);
  +        }
  +        return returnValue;
       }
   
       /**
  
  
  
  1.4       +9 -0      jakarta-james/src/java/org/apache/james/util/SchedulerNotifyInputStream.java
  
  Index: SchedulerNotifyInputStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/util/SchedulerNotifyInputStream.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SchedulerNotifyInputStream.java	16 Aug 2002 21:06:32 -0000	1.3
  +++ SchedulerNotifyInputStream.java	14 Sep 2002 07:28:55 -0000	1.4
  @@ -25,6 +25,9 @@
        */
       InputStream in = null;
   
  +    /**
  +     * The scheduler managing the trigger to be reset by this stream
  +     */
       TimeScheduler scheduler = null;
   
       /**
  @@ -42,6 +45,12 @@
        */
       int readCounter = 0;
   
  +    /**
  +     * @param in the InputStream to be wrapped by this stream
  +     * @param scheduler the TimeScheduler managing the trigger to be reset by this stream
  +     * @param triggerName the name of the particular trigger to be reset by this stream
  +     * @param lengthReset the number of bytes to be read in between trigger resets
  +     */
       public SchedulerNotifyInputStream(InputStream in,
               TimeScheduler scheduler, String triggerName, int lengthReset) {
           this.in = in;
  
  
  
  1.15      +3 -3      jakarta-james/src/java/org/apache/james/transport/JamesSpoolManager.java
  
  Index: JamesSpoolManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/JamesSpoolManager.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- JamesSpoolManager.java	23 Aug 2002 04:43:48 -0000	1.14
  +++ JamesSpoolManager.java	14 Sep 2002 07:28:55 -0000	1.15
  @@ -245,7 +245,7 @@
                           //System.exit(1);
                           throw ex;
                       }
  -                    //Add this pair to the proces
  +                    //Add this pair to the processor
                       processor.add(matcher, mailet);
                   }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message