From fe4017eeabce467e5751d2f2ffd66ccc757ddd19 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 6 Jan 2021 14:29:47 +0100 Subject: [PATCH] Added logging --- app/src/main/java/eu/faircode/email/Core.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 717178319b..8e35c01460 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2595,8 +2595,10 @@ class Core { } // Delete not synchronized messages without uid - if (!EntityFolder.isOutgoing(folder.type)) - db.message().deleteOrphans(folder.id); + if (!EntityFolder.isOutgoing(folder.type)) { + int orphans = db.message().deleteOrphans(folder.id); + Log.i(folder.name + " deleted orphans=" + orphans); + } int count = MessageHelper.getMessageCount(ifolder); db.folder().setFolderTotal(folder.id, count < 0 ? null : count);