mail-index-view-sync.c revision fb36dcb603524f860f1e4edf987fd3b028acac6f
48566ca412a7cf3b42512fd0ec112744778e5da0Timo Sirainen/* Copyright (c) 2003-2007 Dovecot authors, see the included COPYING file */
if (dest_count == 0) {
for (; i < dest_count; i++) {
first = i;
} else if (i == first) {
i++; first++;
first++;
if (i > first) {
i = first;
int ret;
if (quick_sync) {
reset_r);
if (ret <= 0) {
if (ret < 0)
unsigned int *expunge_count_r)
const void *data;
bool reset;
int ret;
if (ret < 0) {
count--;
dest++;
return TRUE;
return FALSE;
const void *data;
int ret;
unsigned int expunge_count = 0;
if (quick_sync) {
} else if (sync_expunges) {
&reset) < 0) {
#ifdef DEBUG
unsigned int i, count;
return FALSE;
for (i = 0; i < count; i++) {
return TRUE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
int ret;
bool synced_to_map;
if (ret <= 0) {
if (ret < 0)
store +flags.silent command) */
#define FLAG_UPDATE_IS_INTERNAL(u) \
~MAIL_INDEX_MAIL_FLAG_DIRTY) == 0)
case MAIL_TRANSACTION_APPEND: {
case MAIL_TRANSACTION_EXPUNGE: {
case MAIL_TRANSACTION_FLAG_UPDATE: {
case MAIL_TRANSACTION_KEYWORD_UPDATE: {
case MAIL_TRANSACTION_KEYWORD_RESET: {
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++) {
#ifdef DEBUG
return ret;
unsigned int length)