mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12: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:
parent
ce05e794d5
commit
e74f9bbdb2
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user