fts-backend-lucene.c revision 969c10cf5624f7bbdc2c6f3111b16fbfd43e24aa
d80f37f025593d959bdfa9c378915e4322f4f504Timo Sirainen/* Copyright (c) 2006-2011 Dovecot authors, see the included COPYING file */
d80f37f025593d959bdfa9c378915e4322f4f504Timo Sirainen#define LUCENE_EXPUNGE_LOG_NAME "dovecot-expunges.log"
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen struct fts_expunge_log_append_ctx *expunge_ctx;
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainenstatic int fts_backend_lucene_mkdir(struct lucene_fts_backend *backend)
4654f788834c9d7920a351306b89cf5d1c21772eTimo Sirainen return mailbox_list_mkdir_root(backend->backend.ns->list,
96f2533c48ce5def0004931606a2fdf275578880Timo Sirainenfts_lucene_get_mailbox_guid(struct mailbox *box, guid_128_t guid_r)
96f2533c48ce5def0004931606a2fdf275578880Timo Sirainen if (mailbox_get_metadata(box, MAILBOX_METADATA_GUID,
96f2533c48ce5def0004931606a2fdf275578880Timo Sirainen i_error("lucene: Couldn't get mailbox %s GUID: %s",
96f2533c48ce5def0004931606a2fdf275578880Timo Sirainen box->vname, mailbox_get_last_error(box, NULL));
const char *path;
set_checksum)) {
*last_uid_r = 0;
static struct fts_backend_update_context *
unsigned int expunges;
return TRUE;
return FALSE;
return FALSE;
return expunges > 0 &&
int fd;
return ret;
i_unreached();
return TRUE;
int ret;
T_BEGIN {
} T_END;
return ret;
int ret;
if (ret == 0) {
if (ret >= 0)
return ret;
int ret;
T_BEGIN {
result);
} T_END;
return ret;
static unsigned int wstr_hash(const void *p)
const wchar_t *s = p;
const char *guid;
for (j = 0; j < MAILBOX_GUID_HEX_LENGTH; j++)
int ret;
T_BEGIN {
if (ret == 0) {
result);
} T_END;
return ret;