From b379a93ff783e5a80ea58dde54e04fae8d5ef522 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 15 Feb 2024 15:20:14 +0100 Subject: [PATCH] Import messages: check exists --- app/src/main/java/eu/faircode/email/FragmentFolders.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentFolders.java b/app/src/main/java/eu/faircode/email/FragmentFolders.java index 77cf0a3b8f..734487cc23 100644 --- a/app/src/main/java/eu/faircode/email/FragmentFolders.java +++ b/app/src/main/java/eu/faircode/email/FragmentFolders.java @@ -1545,6 +1545,11 @@ public class FragmentFolders extends FragmentBase { MessageHelper helper = new MessageHelper(imessage, context); String msgid = helper.getPOP3MessageID(); + + int count = db.message().countMessageByMsgId(folder.id, msgid, true); + if (count == 1) + continue; + Long sent = helper.getSent(); long received = helper.getPOP3Received();