From 1479b818ea71851cdb115d33c156a19fae942dbf Mon Sep 17 00:00:00 2001 From: Benjamin Gamard Date: Mon, 5 Mar 2018 14:11:32 +0100 Subject: [PATCH] Closes #189: Ignore folderclosedexception on imap scanning --- .../main/java/com/sismics/docs/core/service/InboxService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java b/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java index 8005494b..d3b2d263 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java +++ b/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java @@ -88,6 +88,8 @@ public class InboxService extends AbstractScheduledService { importMessage(message); lastSyncMessageCount++; } + } catch (FolderClosedException e) { + // Ignore this, we will just continue importing on the next cycle } catch (Exception e) { log.error("Error synching the inbox", e); lastSyncError = e.getMessage();