diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 6db2ff9901..b891d449ec 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1884,7 +1884,7 @@ class Core { istore, ifolder, (MimeMessage) isub[j], false, download, rules, state); - ids[from + j] = (message == null ? null : message.id); + ids[from + j] = (message == null || message.ui_hide ? null : message.id); } catch (MessageRemovedException ex) { Log.w(folder.name, ex); } catch (FolderClosedException ex) {