mail-index-view-sync.c revision cc6ed00c61fda24799c905e403b94a2a8c39ae5c
31a6661ff2a640fbcf97460df2415fd1bab309b5Sumit Bose/* Copyright (C) 2003-2004 Timo Sirainen */
31a6661ff2a640fbcf97460df2415fd1bab309b5Sumit Bose const void *data;
31a6661ff2a640fbcf97460df2415fd1bab309b5Sumit Bosemail_transaction_log_sort_expunges(ARRAY_TYPE(seq_range) *expunges,
31a6661ff2a640fbcf97460df2415fd1bab309b5Sumit Bose /* Note that all the sequences are actually still UIDs at this point */
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 (ret <= 0) {
if (ret == 0) {
const void *data;
unsigned int count;
int ret;
if (ret < 0) {
count--;
dest++;
#ifdef DEBUG
del++;
recent++;
seen++;
#define MAIL_INDEX_VIEW_VISIBLE_FLAGS_MASK \
#define MAIL_TRANSACTION_VISIBLE_SYNC_MASK \
#ifdef DEBUG
unsigned int i, count;
return FALSE;
for (i = 0; i < count; i++) {
return TRUE;
return FALSE;
case MAIL_TRANSACTION_EXPUNGE:
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) \
case MAIL_TRANSACTION_APPEND: {
case MAIL_TRANSACTION_EXPUNGE: {
case MAIL_TRANSACTION_FLAG_UPDATE: {
case MAIL_TRANSACTION_KEYWORD_UPDATE: {
case MAIL_TRANSACTION_KEYWORD_RESET: {
i_unreached();
int ret;
if (ret <= 0)
return ret;
unsigned int i, count;
for (i = 0; i < count; i++) {
#ifdef DEBUG
unsigned int length)