From 4555c8f031d404f8b3c4053cbe225477a86e7484 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 19 Jan 2022 20:48:34 +0100 Subject: [PATCH] Invalidate headers on sync --- app/src/main/java/eu/faircode/email/Core.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index d8f6558e9b..ca7f0a551c 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -3196,6 +3196,10 @@ class Core { if (imessages == null) imessages = new Message[0]; + for (Message imessage : imessages) + if (imessage instanceof IMAPMessage) + ((IMAPMessage) imessage).invalidateHeaders(); + stats.search_ms = (SystemClock.elapsedRealtime() - search); Log.i(folder.name + " remote count=" + imessages.length + " search=" + stats.search_ms + " ms");