From: Aki Tuomi Date: Mon, 26 Feb 2018 16:20:30 +0000 (+0200) Subject: notify: Ignore flag and keywords update during saving X-Git-Tag: 2.2.35~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2cee938c920651970a37c18749eaf967e8abee3;p=thirdparty%2Fdovecot%2Fcore.git notify: Ignore flag and keywords update during saving They are part of the saving event --- 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;