imap-sync.c revision 5a7acd67806132cbc1ec9578df60d712d307e4be
2348N/A#include "imap-common.h"
2348N/A#include "mail-user.h"
2348N/A#include "mail-storage.h"
2348N/A#include "mail-search-build.h"
2348N/A#include "imap-quote.h"
2348N/A#include "imap-util.h"
2348N/A#include "imap-fetch.h"
2348N/A#include "imap-notify.h"
2348N/A#include "imap-commands.h"
2348N/A#include "imap-sync.h"
2348N/Astruct client_sync_context {
2348N/Astruct imap_sync_context {
2348N/A struct mailbox_transaction_context *t;
2348N/A unsigned int search_update_idx;
2348N/A unsigned int messages_count;
} T_END;
int ret;
return ret;
bool removes_only)
if (ret == 0) {
return ret;
unsigned int i, count;
T_BEGIN {
} T_END;
if (ret <= 0)
return ret;
struct imap_sync_context *
i_unreached();
return ctx;
if (send_modseq == 0) {
(unsigned long long)send_modseq,
(unsigned long long)send_modseq));
return ret;
return ret;
if (ret < 0)
return ret;
int ret;
return ret;
const char *const *keywords;
MAILBOX_FEATURE_CONDSTORE) != 0) {
unsigned int i, count;
if (count == 0)
for (i = 0; i < count; i++) {
if (start_uid != 0) {
if (!comma)
prev_uid);
if (!comma)
if (ret == 0) {
return ret;
case MAILBOX_SYNC_TYPE_FLAGS:
if (ret == 0)
if (ret > 0) {
case MAILBOX_SYNC_TYPE_MODSEQ:
MAILBOX_FEATURE_CONDSTORE) == 0)
if (ret == 0)
if (ret == 0) {
if (ret > 0) {
return ret;
return FALSE;
return FALSE;
return TRUE;
return TRUE;
int ret;
return FALSE;
if (ret < 0)
*flags_r = 0;
*imap_flags_r = 0;
fast_count++;
count++;
bool no_newmail;
if (no_newmail) {
return FALSE;
return TRUE;
return TRUE;
return TRUE;
return FALSE;
return FALSE;
return ret;
return FALSE;
bool ret;
T_BEGIN {
} T_END;
return ret;