#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
-#include "tools.h"
+#include <libcitadel.h>
#include "citadel.h"
#include "server.h"
#include "serv_extensions.h"
#include "msgbase.h"
#include "journaling.h"
-#ifdef HAVE_LIBSIEVE
-# include "serv_sieve.h"
-#endif
-
/*
* Terminate idle sessions. This function pounds through the session table
* comparing the current time to each session's time-of-last-command. If an
/* First, do the "as often as needed" stuff... */
JournalRunQueue();
-#ifdef HAVE_LIBSIEVE
- perform_sieve_processing();
-#endif
+
+ PerformSessionHooks(EVT_HOUSE); /* perform as needed housekeeping */
+
+ ctdl_internal_thread_gc(0);
/* Then, do the "once per minute" stuff... */
if (do_perminute_housekeeping_now) {