From 0eb069b834c7ab8a9c53f14e1d495c576d628dd9 Mon Sep 17 00:00:00 2001 From: mguessan Date: Sat, 27 Dec 2014 11:58:16 +0000 Subject: [PATCH] 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 --- src/java/davmail/imap/ImapConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 89503350..5fcea96f 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -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 { 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()); } }