Lines Matching refs:messages

35 	/* messages expunged within this sync */
40 /* all messages in this sync, sorted by mailbox_id
473 /* mark the newly seen messages as recent */
562 /* remove the unwanted messages */
608 /* fast path: usually messages are appended */
741 uint32_t i, vseq, messages;
743 /* find the messages that currently exist in virtual index and add them
749 sync_mails = array_get(&ctx->all_mails, &messages);
750 for (i = ctx->all_mails_idx; i < messages; i++) {
771 messages = mail_index_view_get_messages_count(ctx->sync_view);
772 for (vseq = 1; vseq <= messages; vseq++) {
798 /* initialize the search result from all the existing messages in
810 /* these are all expunged messages. treat them separately from
811 "no longer matching messages" (=removed_uids) */
817 /* get list of changed old messages (messages already once seen by
838 new messages */
981 /* delay removing messages that don't match the search
982 criteria, but don't delay removing expunged messages */
1042 /* remember only the expunges for messages that
1296 uint32_t i, vseq, vuid, messages;
1299 messages = mail_index_view_get_messages_count(ctx->sync_view);
1300 if (messages == 0)
1303 /* sort the messages in current view by their backend mailbox and
1305 vmails = i_new(struct virtual_sync_mail, messages);
1306 for (vseq = 1; vseq <= messages; vseq++) {
1313 qsort(vmails, messages, sizeof(*vmails), virtual_sync_mail_uid_cmp);
1316 messages no longer matching the search rule */
1319 for (i = 0; i < messages; i++) {
1324 /* add the rest of the newly seen messages */
1369 /* finish adding messages to the last mailbox */
1383 /* if there are any mailboxes we didn't yet sync, add new messages in
1416 /* two messages in different mailboxes have the same received date
1428 /* get all messages' received dates */
1478 /* all messages are from a single mailbox. add them in
1481 /* sort new messages by received date to get the add order */
1503 /* assign UIDs to new messages */
1547 /* another process added messages to virtual index. get backend boxes'
1548 uid lists up-to-date by adding the new messages there. */
1623 uint32_t messages, vseq;
1628 messages = mail_index_view_get_messages_count(ctx->sync_view);
1629 i_array_init(&ctx->all_mails, messages);
1630 for (vseq = 1; vseq <= messages; vseq++) {
1668 /* initial sync: assign virtual UIDs to existing messages and
1738 /* Removed messages are expunged when