mail-cache.c revision f519e4c2ad4ef826f1b08f3e0138b9b287a52c80
8da250dad4b11c4983031742a83fb8f358044fe0Stéphane Graber/* Copyright (C) 2003-2004 Timo Sirainen */
198b363fff1de9afcee2f26b9aa847316f589afeSerge Hallynvoid mail_cache_set_syscall_error(struct mail_cache *cache,
a5c28c86f56835fa3e0915558e05390dd0a79580Aleksandr Mezin "%s failed with index cache file %s: %m",
8da250dad4b11c4983031742a83fb8f358044fe0Stéphane Grabervoid mail_cache_set_corrupted(struct mail_cache *cache, const char *fmt, ...)
8da250dad4b11c4983031742a83fb8f358044fe0Stéphane Graber /* mark the cache as unusable */
8da250dad4b11c4983031742a83fb8f358044fe0Stéphane Graber mail_index_set_error(cache->index, "Corrupted index cache file %s: %s",
8da250dad4b11c4983031742a83fb8f358044fe0Stéphane Graber cache->filepath, t_strdup_vprintf(fmt, va));
return FALSE;
return FALSE;
return FALSE;
return TRUE;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
if (size == 0)
if (ret < 0) {
return cache;
return cache;
return cache;
int i, ret;
return ret;
if (ret <= 0)
ret = 0;
if (ret > 0) {
sizeof(struct mail_cache_header));
return ret;
unsigned int cont_percentage;
int ret = 0;
return ret;
struct mail_cache_view *
return view;