1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-14 03:32:22 -05:00

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
This commit is contained in:
mguessan 2011-08-12 22:26:30 +00:00
parent ce05e794d5
commit e74f9bbdb2

View File

@ -2635,8 +2635,8 @@ public class DavExchangeSession extends ExchangeSession {
contentInputStream = getContentInputStream(message.messageUrl, restoreHostName); contentInputStream = getContentInputStream(message.messageUrl, restoreHostName);
} catch (UnknownHostException e) { } catch (UnknownHostException e) {
// failover for misconfigured Exchange server, replace host name in url // failover for misconfigured Exchange server, replace host name in url
contentInputStream = getContentInputStream(message.messageUrl, restoreHostName);
restoreHostName = true; restoreHostName = true;
contentInputStream = getContentInputStream(message.messageUrl, restoreHostName);
} }
} catch (HttpNotFoundException e) { } catch (HttpNotFoundException e) {
LOGGER.debug("Message not found at: " + message.messageUrl + ", retrying with permanenturl"); LOGGER.debug("Message not found at: " + message.messageUrl + ", retrying with permanenturl");