mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
EWS: improved email/alias failover fix
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1592 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
10f82dc08d
commit
ef7cfae687
@ -152,7 +152,9 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
method.releaseConnection();
|
||||
// need to retrieve email and alias
|
||||
getEmailAndAliasFromOptions();
|
||||
} else {
|
||||
}
|
||||
|
||||
if (email == null || alias == null) {
|
||||
// OWA authentication failed, get email address from login
|
||||
if (userName.indexOf('@') >= 0) {
|
||||
// userName is email address
|
||||
@ -171,12 +173,8 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
}
|
||||
}
|
||||
|
||||
if (email == null || alias == null) {
|
||||
throw new DavMailAuthenticationException("EXCEPTION_EWS_NOT_AVAILABLE");
|
||||
}
|
||||
currentMailboxPath = "/users/" + email.toLowerCase();
|
||||
|
||||
// nothing to do, mailPath not used in EWS mode
|
||||
// check EWS access
|
||||
try {
|
||||
checkEndPointUrl("/ews/exchange.asmx");
|
||||
|
Loading…
Reference in New Issue
Block a user