Browse Source

IMAP: fix 587 log and skip broken messages

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2324 3d1905a2-6b24-0410-a738-b14d5a86fcbd
master
mguessan 8 years ago
parent
commit
0eb069b834
  1. 4
      src/java/davmail/imap/ImapConnection.java

4
src/java/davmail/imap/ImapConnection.java

@ -314,7 +314,7 @@ public class ImapConnection extends AbstractConnection { @@ -314,7 +314,7 @@ public class ImapConnection extends AbstractConnection {
throw e;
} catch (IOException e) {
DavGatewayTray.log(e);
sendClient(commandId + " NO Unable to retrieve message: " + e.getMessage());
LOGGER.warn("Ignore broken message " + uidRangeIterator.currentIndex + ' ' + e.getMessage());
}
}
sendClient(commandId + " OK UID FETCH completed");
@ -400,7 +400,7 @@ public class ImapConnection extends AbstractConnection { @@ -400,7 +400,7 @@ public class ImapConnection extends AbstractConnection {
throw e;
} catch (IOException e) {
DavGatewayTray.log(e);
sendClient(commandId + " NO Unable to retrieve message: " + e.getMessage());
LOGGER.warn("Ignore broken message " + rangeIterator.currentIndex+ ' ' +e.getMessage());
}
}

Loading…
Cancel
Save