From f688ccc7cf54f568214dbb71d2c96bdeff9a6b03 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 5 Nov 2022 08:03:55 +0100 Subject: [PATCH] Purge: fixed concurrent modification --- app/src/main/java/eu/faircode/email/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 354bfa391f..173ac301e8 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2911,7 +2911,7 @@ class Core { ifolder.setFlags(list.toArray(new Message[0]), flags, true); } catch (MessagingException ex) { Log.w(ex); - for (Message imessage : list) + for (Message imessage : new ArrayList<>(list)) try { imessage.setFlag(Flags.Flag.DELETED, true); } catch (MessagingException mex) {