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

Fix 3103349: Cannot login if display name contains [brackets]

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1526 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-11-05 09:59:08 +00:00
parent c40da58305
commit eb6e224855

View File

@ -2842,8 +2842,8 @@ 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.indexOf('[') + 1;
end = line.indexOf(']', start);
start = line.lastIndexOf('[') + 1;
end = line.lastIndexOf(']', start);
email = line.substring(start, end);
}