From 48c2dd9b205c580519d411d436f742a299a8eccd Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 17 Sep 2019 16:46:36 +0200 Subject: [PATCH] Run rules / update contact info on message add --- app/src/main/java/eu/faircode/email/Core.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 664f22deb9..a6cf34e245 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -595,6 +595,10 @@ class Core { Log.i(folder.name + " appended uid=" + uid); db.message().setMessageUid(message.id, uid); + List rules = db.rule().getEnabledRules(folder.id); + runRules(context, imessage, message, rules); + updateContactInfo(context, folder, message); + for (Message iexisting : imessages) { long muid = ifolder.getUID(iexisting); if (muid != uid)