1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-11-10 11:25:00 -05:00

Fix 3103349: Cannot login if display name contains [brackets], regression after first patch

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1527 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-11-07 20:38:49 +00:00
parent eb6e224855
commit 974c8cf9cd

View File

@ -2842,10 +2842,9 @@ public abstract class ExchangeSession {
int start = line.toLowerCase().lastIndexOf(MAILBOX_BASE) + MAILBOX_BASE.length();
int end = line.indexOf('<', start);
alias = line.substring(start, end);
start = line.lastIndexOf('[') + 1;
end = line.lastIndexOf(']', start);
end = line.lastIndexOf(']');
start = line.lastIndexOf('[', end) + 1;
email = line.substring(start, end);
}
} catch (IOException e) {
// restore cookies on error