Author: rdonkin
Date: Mon Dec 15 14:10:12 2008
New Revision: 726839
URL: http://svn.apache.org/viewvc?rev=726839&view=rev
Log:
Fixed buggy parsing
Modified:
james/server/trunk/imapserver-function/src/main/java/org/apache/james/imapserver/ImapServer.java
Modified:
james/server/trunk/imapserver-function/src/main/java/org/apache/james/imapserver/ImapServer.java
URL:
http://svn.apache.org/viewvc/james/server/trunk/imapserver-function/src/main/java/org/apache/james/imapserver/ImapServer.java?rev=726839&r1=726838&r2=726839&view=diff
==============================================================================
---
james/server/trunk/imapserver-function/src/main/java/org/apache/james/imapserver/ImapServer.java
(original)
+++
james/server/trunk/imapserver-function/src/main/java/org/apache/james/imapserver/ImapServer.java
Mon Dec 15 14:10:12 2008
@@ -131,7 +131,7 @@
} else {
final String scheme = url.substring(0, endOfScheme);
if ("mailbox".equals(scheme)) {
- final int startOfUser = endOfScheme + 2;
+ final int startOfUser = endOfScheme + 3;
final int endOfUser = url.indexOf('@', startOfUser);
if (endOfUser < 0) {
// TODO: when user missing, append to a default location
@@ -147,7 +147,7 @@
} else {
final String urlPath;
final int length = url.length();
- if (endOfHost == length) {
+ if (endOfHost + 1 == length) {
urlPath = "INBOX";
} else {
urlPath = url.substring(endOfHost, length);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]