Skip to content

Commit

Permalink
virtual: Do not store recent flags to virtual index
Browse files Browse the repository at this point in the history
Setting the flag here would case unnecessary index update
to clear the flag later on.
  • Loading branch information
cmouse authored and villesavolainen committed Aug 10, 2017
1 parent 0585f7f commit 6758aa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/virtual/virtual-sync.c
Expand Up @@ -78,7 +78,9 @@ static void virtual_sync_external_flags(struct virtual_sync_context *ctx,

/* copy flags */
flags = mail_get_flags(bbox->sync_mail);
mail_index_update_flags(ctx->trans, vseq, MODIFY_REPLACE, flags);

/* we don't need to keep recent flags here */
mail_index_update_flags(ctx->trans, vseq, MODIFY_REPLACE, flags & ~(MAIL_RECENT));

/* copy keywords */
kw_names = mail_get_keywords(bbox->sync_mail);
Expand Down

0 comments on commit 6758aa2

Please sign in to comment.