]> code.citadel.org Git - citadel.git/blobdiff - citadel/housekeeping.c
davew: clean ups, addition to documentation of API and addition of an event to clean...
[citadel.git] / citadel / housekeeping.c
index 1c833f0401af04687ddbfb05dd98e2a4021867f6..99f0d792fa764e6ba488d1b003aa33885b127b75 100644 (file)
@@ -43,7 +43,9 @@
 #include "msgbase.h"
 #include "journaling.h"
 
-
+#ifdef HAVE_LIBSIEVE
+# include "serv_sieve.h"
+#endif
 
 /*
  * Terminate idle sessions.  This function pounds through the session table
@@ -169,6 +171,8 @@ void do_housekeeping(void) {
        /* First, do the "as often as needed" stuff... */
        JournalRunQueue();
 
+       PerformSessionHooks(EVT_HOUSE); /* perform as needed housekeeping */
+
        /* Then, do the "once per minute" stuff... */
        if (do_perminute_housekeeping_now) {
                cdb_check_handles();                    /* suggested by Justin Case */