From e74f9bbdb25fb1e27b273a66747fc17446bc18aa Mon Sep 17 00:00:00 2001 From: mguessan Date: Fri, 12 Aug 2011 22:26:30 +0000 Subject: [PATCH] IMAP: fix failover for misconfigured Exchange server, replace host name in url git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1773 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/dav/DavExchangeSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/dav/DavExchangeSession.java b/src/java/davmail/exchange/dav/DavExchangeSession.java index c8918bfa..8aa3e7d8 100644 --- a/src/java/davmail/exchange/dav/DavExchangeSession.java +++ b/src/java/davmail/exchange/dav/DavExchangeSession.java @@ -2635,8 +2635,8 @@ public class DavExchangeSession extends ExchangeSession { contentInputStream = getContentInputStream(message.messageUrl, restoreHostName); } catch (UnknownHostException e) { // failover for misconfigured Exchange server, replace host name in url - contentInputStream = getContentInputStream(message.messageUrl, restoreHostName); restoreHostName = true; + contentInputStream = getContentInputStream(message.messageUrl, restoreHostName); } } catch (HttpNotFoundException e) { LOGGER.debug("Message not found at: " + message.messageUrl + ", retrying with permanenturl");