From e669bd7c8d8a6632752ba8f9451493c9be15472e Mon Sep 17 00:00:00 2001 From: mguessan Date: Tue, 16 Aug 2011 20:53:13 +0000 Subject: [PATCH] Small failover fix git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1777 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/dav/DavExchangeSession.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/dav/DavExchangeSession.java b/src/java/davmail/exchange/dav/DavExchangeSession.java index 097473c9..44445911 100644 --- a/src/java/davmail/exchange/dav/DavExchangeSession.java +++ b/src/java/davmail/exchange/dav/DavExchangeSession.java @@ -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('@');