From a921c55790f388ef5af1e5a6b4183643ea4298ac Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 1 Nov 2020 19:38:12 +0100 Subject: [PATCH] Example convert forwarded to answered --- app/src/main/java/eu/faircode/email/Core.java | 8 +++++++- 1 file changed, 7 insertions(+), 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 8fcb57aa15..bb36d15bfd 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -715,8 +715,14 @@ class Core { if (message.uid == null) throw new IllegalArgumentException("keyword/uid"); - if (!ifolder.getPermanentFlags().contains(Flags.Flag.USER)) + if (!ifolder.getPermanentFlags().contains(Flags.Flag.USER)) { + if ("$Forwarded".equals(keyword) && false) { + JSONArray janswered = new JSONArray(); + janswered.put(true); + onAnswered(context, janswered, folder, message, ifolder); + } return; + } Message imessage = ifolder.getMessageByUID(message.uid); if (imessage == null)