1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-12 18:52:21 -05:00

Small failover fix

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1777 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-08-16 20:53:13 +00:00
parent d5f85ef7a1
commit e669bd7c8d

View File

@ -629,7 +629,11 @@ public class DavExchangeSession extends ExchangeSession {
// last failover: build email from domain name and mailbox display name
StringBuilder buffer = new StringBuilder();
// most reliable alias
alias = mailBoxPath;
if (mailBoxPath != null) {
alias = mailBoxPath;
} else {
alias = getAliasFromLogin();
}
buffer.append(alias);
if (alias.indexOf('@') < 0) {
buffer.append('@');