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 Timo Sirainen committed Aug 9, 2017
1 parent 68d25b7 commit 9badddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/virtual/virtual-sync.c
Expand Up @@ -79,7 +79,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 9badddc

Please sign in to comment.