mail-index-sync.c revision 3b80595fcf2001cf7b2fcc6290823e38f4a142fc
#include "lib.h"
#include "array.h"
#include "mail-index-view-private.h"
#include "mail-index-sync-private.h"
#include "mail-index-transaction-private.h"
#include "mail-transaction-log-private.h"
#include "mail-cache.h"
#include <stdio.h>
#include <stdlib.h>
struct mail_index_sync_ctx {
const void *data;
for (i = 0; i < size; i++) {
for (i = 0; i < size; i++) {
if (u[i].add_flags != 0) {
u[i].add_flags);
if (u[i].remove_flags != 0) {
u[i].remove_flags);
t_push();
t_pop();
for (i = 0; i < size; i++) {
case MAIL_TRANSACTION_EXPUNGE:
case MAIL_TRANSACTION_APPEND:
return FALSE;
return TRUE;
unsigned int i, keyword_count;
int ret;
for (i = 0; i < keyword_count; i++) {
return ret;
return TRUE;
return TRUE;
bool reset;
int ret;
if (ret <= 0) {
int ret;
int ret;
if (ret == 0) {
flags);
for (i = 0; i < count; i++) {
next_i = i;
if (i == count) {
return TRUE;
return FALSE;
i = next_i;
&sync_list[i]);
return TRUE;
unsigned int i, count;
return TRUE;
for (i = 0; i < count; i++) {
return TRUE;
return FALSE;
unsigned int i, count;
for (i = 0; i < count; i++)
bool want_rotate;
int ret = 0;
return ret;
const unsigned int *keyword_indexes;
unsigned int i, count;
for (i = 0; i < count; i++) {
return FALSE;
return TRUE;
for (i = 0; i < count; i++) {
return TRUE;
return FALSE;
return FALSE;
return TRUE;
i_unreached();
return FALSE;
const char *fmt, ...)
t_push();
t_pop();