From 1141d4b31cfbac938eceee4f129ffdd6368cb997 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 5 Jul 2024 11:42:57 +0200 Subject: [PATCH] Web.de: Unbekannt contains similar messages --- app/src/main/java/eu/faircode/email/EntityAccount.java | 4 ++++ app/src/main/java/eu/faircode/email/EntityOperation.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/EntityAccount.java b/app/src/main/java/eu/faircode/email/EntityAccount.java index 0c46534082..21f45b6053 100644 --- a/app/src/main/java/eu/faircode/email/EntityAccount.java +++ b/app/src/main/java/eu/faircode/email/EntityAccount.java @@ -218,6 +218,10 @@ public class EntityAccount extends EntityOrder implements Serializable { return "imap.wp.pl".equalsIgnoreCase(host); } + boolean isWebDe() { + return "imap.web.de".equalsIgnoreCase(host); + } + boolean isICloud() { return "imap.mail.me.com".equalsIgnoreCase(host); } diff --git a/app/src/main/java/eu/faircode/email/EntityOperation.java b/app/src/main/java/eu/faircode/email/EntityOperation.java index bad96788dc..9e2a6abd9b 100644 --- a/app/src/main/java/eu/faircode/email/EntityOperation.java +++ b/app/src/main/java/eu/faircode/email/EntityOperation.java @@ -125,7 +125,7 @@ public class EntityOperation { boolean ignore = jargs.optBoolean(1, true); EntityAccount account = db.account().getAccount(message.id); for (EntityMessage similar : db.message().getMessagesBySimilarity(message.account, message.id, message.msgid, message.hash)) { - if ((account != null && !account.isGmail()) && + if ((account != null && !account.isGmail() && !account.isWebDe()) && !Objects.equals(message.id, similar.id) && Objects.equals(message.msgid, similar.msgid)) continue;