]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
notify: Ignore flag and keywords update during saving
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 26 Feb 2018 16:20:30 +0000 (18:20 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 27 Feb 2018 08:35:06 +0000 (10:35 +0200)
They are part of the saving event

src/plugins/notify/notify-plugin.c

index 7b4a9de7d9015c7af4e8c56ab0514b128c09174e..664452440f099782c349ae229e0a2865af76dc85 100644 (file)
@@ -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;