Mercurial > dovecot > core-2.2
changeset 22872:b47c291ae2af
notify: Ignore flag and keywords update during saving
They are part of the saving event
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Mon, 26 Feb 2018 18:20:30 +0200 |
parents | 9a52b8a91de0 |
children | 61143106dee6 |
files | src/plugins/notify/notify-plugin.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/notify/notify-plugin.c Sun Feb 18 18:07:16 2018 -0500 +++ b/src/plugins/notify/notify-plugin.c Mon Feb 26 18:20:30 2018 +0200 @@ -95,6 +95,9 @@ 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 @@ 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;