mail-cache-transaction.c revision 17118d434fcd48b0f0211bdac2747276f0b05223
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Copyright (c) 2003-2007 Dovecot authors, see the included COPYING file */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync ARRAY_DEFINE(reservations, struct mail_cache_reservation);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncstatic int mail_cache_link_unlocked(struct mail_cache *cache,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncmail_cache_get_transaction(struct mail_cache_view *view,
return t->cache_trans_ctx;
return ctx;
int ret;
return ret;
while (offset != 0) {
return FALSE;
return FALSE;
if (offset == 0)
return FALSE;
if (prev_offset == 0)
return FALSE;
return TRUE;
unsigned int i, count;
for (i = 0; i < count; i++) {
unsigned int count;
count--;
if (!locked) {
if (!locked) {
bool commit)
int ret;
if (!locked) {
return ret;
commit);
if (!locked) {
if (ret < 0)
if (old_offset != 0) {
write_offset) < 0)
old_offset) < 0)
*seq_idx = i;
unsigned int seq_count;
int ret;
bool commit;
if (commit) {
seq_limit = 0;
if (ret <= 0) {
return ret;
seq_limit++;
&write_size) < 0)
void *data;
int ret = 0;
return ret;
unsigned int count;
while (count > 0) {
count--;
unsigned int field_idx)
int ret;
t_push();
t_pop();
if (ret == 0) {
return ret;
unsigned int fixed_size;
sizeof(data_size32));
return FALSE;
return FALSE;
t_push();
if (offset == 0) {
ret = 0;
t_pop();
return ret;