diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 8866eaa0eb..095d2bd5cc 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2392,13 +2392,13 @@ class Core { " messages=" + (imessages == null ? null : imessages.length)); if (account.isOutlook() && (imessages == null || imessages.length == 0)) { + imessages = ifolder.search( + new HeaderTerm(MessageHelper.HEADER_MICROSOFT_ORIGINAL_MESSAGE_ID, message.msgid)); EntityLog.log(context, folder.name + " exists alt" + " retry=" + retry + " host=" + account.host + " outlook=" + account.isOutlook() + " messages=" + (imessages == null ? null : imessages.length)); - imessages = ifolder.search( - new HeaderTerm(MessageHelper.HEADER_MICROSOFT_ORIGINAL_MESSAGE_ID, message.msgid)); } // Searching for random header: