From 966cb4851372db477a0e715a83d9fb49d5fa6888 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 12 Mar 2021 07:45:02 +0100 Subject: [PATCH] Replace correlation header --- app/src/main/java/eu/faircode/email/Core.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index ebdbd6114b..26ba92de18 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -957,7 +957,10 @@ class Core { try (InputStream is = new BufferedInputStream(new FileInputStream(file))) { imessage = new MimeMessageEx(isession, is, message.msgid); } + + imessage.removeHeader(MessageHelper.HEADER_CORRELATION_ID); imessage.addHeader(MessageHelper.HEADER_CORRELATION_ID, message.msgid); + imessage.saveChanges(); }