#include <limits.h>
#include "citadel.h"
#include "server.h"
-#include "sysdep_decls.h"
#include "citserver.h"
#include "support.h"
#include "config.h"
-#include "serv_extensions.h"
#include "database.h"
#include "msgbase.h"
#include "control.h"
#include "ft_wordbreaker.h"
+#include "ctdl_module.h"
+
+
+
long ft_newhighest = 0L;
long *ft_newmsgs = NULL;
int ft_num_msgs = 0;
/* Here it is ... do each message! */
for (i=0; i<ft_num_msgs; ++i) {
- if ((time(NULL) - last_progress) > 10) {
+ if (time(NULL) != last_progress) {
lprintf(CTDL_DEBUG,
"Indexed %d of %d messages (%d%%)\n",
i, ft_num_msgs,
/*****************************************************************************/
-char *serv_fulltext_init(void)
+CTDL_MODULE_INIT(fulltext)
{
initialize_ft_cache();
CtdlRegisterProtoHook(cmd_srch, "SRCH", "Full text search");
+
+ /* return our Subversion id for the Log */
return "$Id$";
}