Do not try WebDav mode if owa url ends with /ews/exchange.asmx

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2256 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2014-03-17 22:44:53 +00:00
parent 0da754e615
commit c8d0186079
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ public final class ExchangeSessionFactory {
if (session == null) {
String enableEws = Settings.getProperty("davmail.enableEws", "auto");
if ("true".equals(enableEws)) {
if ("true".equals(enableEws) || poolKey.url.toLowerCase().endsWith("/ews/exchange.asmx")) {
session = new EwsExchangeSession(poolKey.url, poolKey.userName, poolKey.password);
} else {
try {