james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r160621 - james/server/branches/branch_2_1_fcs/src/java/org/apache/james/transport/mailets/CommandListservManager.java
Date Fri, 08 Apr 2005 21:45:13 GMT
Author: noel
Date: Fri Apr  8 14:45:13 2005
New Revision: 160621

URL: http://svn.apache.org/viewcvs?view=rev&rev=160621
Log:
FIX.  Did not handle list names with a '-' in the list name.  Fix by skipping the start of
the address for the length of the list name

Modified:
    james/server/branches/branch_2_1_fcs/src/java/org/apache/james/transport/mailets/CommandListservManager.java

Modified: james/server/branches/branch_2_1_fcs/src/java/org/apache/james/transport/mailets/CommandListservManager.java
URL: http://svn.apache.org/viewcvs/james/server/branches/branch_2_1_fcs/src/java/org/apache/james/transport/mailets/CommandListservManager.java?view=diff&r1=160620&r2=160621
==============================================================================
--- james/server/branches/branch_2_1_fcs/src/java/org/apache/james/transport/mailets/CommandListservManager.java
(original)
+++ james/server/branches/branch_2_1_fcs/src/java/org/apache/james/transport/mailets/CommandListservManager.java
Fri Apr  8 14:45:13 2005
@@ -85,7 +85,7 @@
  * <listName>-<commandName>-<optCommandParam>@domain
  * </pre>
  *
- * @version CVS $Revision: 1.1.2.4 $ $Date: 2004/03/30 02:15:24 $
+ * @version CVS $Revision: 1.1.2.4 $ $Date$
  * @since 2.2.0
  */
 public class CommandListservManager extends GenericMailet implements ICommandListservManager
{
@@ -305,7 +305,7 @@
      */
     protected String getCommandName(MailAddress mailAddress) {
         String user = mailAddress.getUser();
-        int index = user.indexOf('-');
+        int index = user.indexOf('-', listName.length());
         String commandName = user.substring(++index);
         return commandName;
     }



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


Mime
View raw message