diff --git a/openbas-api/src/main/java/io/openbas/injectors/email/service/ImapService.java b/openbas-api/src/main/java/io/openbas/injectors/email/service/ImapService.java index 5a3ffb2595..516d8f1f75 100644 --- a/openbas-api/src/main/java/io/openbas/injectors/email/service/ImapService.java +++ b/openbas-api/src/main/java/io/openbas/injectors/email/service/ImapService.java @@ -125,8 +125,6 @@ private void initStore(Environment env) throws Exception { sentBox.create(Folder.READ_WRITE); sentBox.setSubscribed(true); } - defaultFolder.close(); - sentBox.close(); } catch (Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); }