fts-lucene-plugin.c revision 57a712a4998e4bb0073080232225380cd2cea625
/* Copyright (c) 2006-2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "crc32.h"
#include "mail-storage-hooks.h"
#include "lucene-wrapper.h"
#include "fts-lucene-plugin.h"
const char *fts_lucene_plugin_version = DOVECOT_VERSION;
static int
struct fts_lucene_settings *set,
const char *str)
{
const char *const *tmp;
} else {
return -1;
}
}
i_error("fts_lucene: textcat_conf set, but textcat_dir unset");
return -1;
}
i_error("fts_lucene: textcat_dir set, but textcat_conf unset");
return -1;
}
#ifndef HAVE_LUCENE_STEMMER
i_error("fts_lucene: default_language set, "
"but Dovecot built without stemmer support");
return -1;
}
#else
#endif
#ifndef HAVE_LUCENE_TEXTCAT
i_error("fts_lucene: textcat_dir set, "
"but Dovecot built without textcat support");
return -1;
}
#endif
return 0;
}
{
/* only the default language change matters */
}
{
struct fts_lucene_user *fuser;
const char *env;
env = "";
/* invalid settings, disabling */
return;
}
}
static struct mail_storage_hooks fts_lucene_mail_storage_hooks = {
};
{
}
void fts_lucene_plugin_deinit(void)
{
}