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 no...@apache.org on 2005/04/08 23:45:13 UTC
svn commit: r160621 -
james/server/branches/branch_2_1_fcs/src/java/org/apache/james/transport/mailets/CommandListservManager.java
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