DAV: Another email address failover

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2302 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2014-07-15 22:09:42 +00:00
parent 1226796b99
commit 2cb098132f
1 changed files with 3 additions and 0 deletions

View File

@ -640,6 +640,9 @@ public class DavExchangeSession extends ExchangeSession {
buffer.append(alias);
if (alias.indexOf('@') < 0) {
buffer.append('@');
if (hostName == null) {
hostName = "mail.unknown.com";
}
int dotIndex = hostName.indexOf('.');
if (dotIndex >= 0) {
buffer.append(hostName.substring(dotIndex + 1));