mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-10 05:08:08 -05:00
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:
parent
0da754e615
commit
c8d0186079
@ -139,7 +139,7 @@ public final class ExchangeSessionFactory {
|
|||||||
|
|
||||||
if (session == null) {
|
if (session == null) {
|
||||||
String enableEws = Settings.getProperty("davmail.enableEws", "auto");
|
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);
|
session = new EwsExchangeSession(poolKey.url, poolKey.userName, poolKey.password);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user