diff src/lib-storage/index/dbox-single/sdbox-sync.c @ 18975:f78bd5be4e47

lib-storage: Moved most of the \Recent flag handling code to mailbox-recent-flags.c There are also some API changes, because functions were renamed and the recent_* fields were moved to struct mailbox. I'm not aware of any plugins using these though, except for index_mailbox_set_recent_seq() which for now is kept as a backwards compatibility macro. No changes were made to the actual code logic.
author Timo Sirainen <tss@iki.fi>
date Wed, 19 Aug 2015 12:56:55 +0300
parents 3009a1a6f6d5
children e29d2f7fe53f
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-single/sdbox-sync.c	Wed Aug 19 11:34:36 2015 +0300
+++ b/src/lib-storage/index/dbox-single/sdbox-sync.c	Wed Aug 19 12:56:55 2015 +0300
@@ -125,7 +125,7 @@
 	/* mark the newly seen messages as recent */
 	if (mail_index_lookup_seq_range(ctx->sync_view, hdr->first_recent_uid,
 					hdr->next_uid, &seq1, &seq2))
-		index_mailbox_set_recent_seq(box, ctx->sync_view, seq1, seq2);
+		mailbox_recent_flags_set_seqs(box, ctx->sync_view, seq1, seq2);
 
 	while (mail_index_sync_next(ctx->index_sync_ctx, &sync_rec))
 		sdbox_sync_add(ctx, &sync_rec);