From 481a6a11e2477395c54fcb4bd7a9290188a41d4f Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Mon, 26 Feb 2018 18:20:30 +0200 Subject: [PATCH] notify: Ignore flag and keywords update during saving They are part of the saving event --- src/plugins/notify/notify-plugin.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/notify/notify-plugin.c b/src/plugins/notify/notify-plugin.c index 7b4a9de7d9..664452440f 100644 --- a/src/plugins/notify/notify-plugin.c +++ b/src/plugins/notify/notify-plugin.c @@ -95,6 +95,9 @@ void notify_contexts_mail_update_flags(struct mail *mail, struct notify_context *ctx; struct notify_mail_txn *mail_txn; + if (mail->saving) + return; + for (ctx = ctx_list; ctx != NULL; ctx = ctx->next) { if (ctx->v.mail_update_flags == NULL) continue; @@ -109,6 +112,9 @@ void notify_contexts_mail_update_keywords(struct mail *mail, struct notify_context *ctx; struct notify_mail_txn *mail_txn; + if (mail->saving) + return; + for (ctx = ctx_list; ctx != NULL; ctx = ctx->next) { if (ctx->v.mail_update_keywords == NULL) continue; -- 2.47.3