mail-index-view-sync.c revision e34d170f8f0e084bd94bfbc1a7085ece67e508df
2N/A#include "mail-index-view-private.h"
2N/A#include "mail-index-sync-private.h"
12N/A#include "mail-index-modseq.h"
2N/A#include "mail-transaction-log.h"
2N/Astruct mail_index_view_sync_ctx {
2N/A unsigned int finish_min_msg_count;
16N/A unsigned int lost_flag_idx;
9N/A return expunge_count;
unsigned int *expunge_count_r)
const void *data;
int ret;
return ret;
return TRUE;
return FALSE;
return TRUE;
return FALSE;
const void *data;
int ret;
return FALSE;
const unsigned int *kw_idx;
const char *const *kw_names;
unsigned int i, count;
if (count == 0)
for (i = 0; i < count; i++) {
&flag_update) < 0)
&kw_reset) < 0)
if (changed) {
if (changed)
unsigned int *expunge_count_r)
for (; i < old_count; i++) {
for (; j < new_count; j++) {
bool reset;
struct mail_index_view_sync_ctx *
unsigned int expunge_count = 0;
int ret;
if (sync_expunges)
return ctx;
return ctx;
if (ret < 0) {
return ctx;
if (ret == 0) {
if (!sync_expunges)
if (ret < 0) {
return ctx;
} else if (sync_expunges) {
return ctx;
if (!have_expunges) {
if (sync_expunges) {
#ifdef DEBUG
return ctx;
return FALSE;
return TRUE;
return FALSE;
MAIL_TRANSACTION_EXPUNGE_GUID)) != 0 &&
return FALSE;
return FALSE;
return FALSE;
return TRUE;
int ret;
bool synced_to_map;
if (ret <= 0) {
if (ret < 0)
MAIL_TRANSACTION_EXPUNGE_GUID)) == 0) {
if (ret < 0)
case MAIL_TRANSACTION_FLAG_UPDATE: {
case MAIL_TRANSACTION_KEYWORD_UPDATE: {
case MAIL_TRANSACTION_KEYWORD_RESET: {
return FALSE;
return TRUE;
unsigned int count;
return FALSE;
return TRUE;
int ret;
if (ret <= 0) {
if (ret < 0)
return FALSE;
return TRUE;
unsigned int i, count;
for (i = 0; i < count; i++) {
bool *delayed_expunges_r)
#ifdef DEBUG
return ret;
unsigned int length)