Skip to content

Commit

Permalink
notify: Ignore flag and keywords update during saving
Browse files Browse the repository at this point in the history
They are part of the saving event
  • Loading branch information
cmouse authored and sirainen committed Feb 27, 2018
1 parent 0001664 commit 1f1e601
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/notify/notify-plugin.c
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 1f1e601

Please sign in to comment.