Completed a new queue (sieve_list) which will instantly
[citadel.git] / citadel / housekeeping.c
index 1c833f0401af04687ddbfb05dd98e2a4021867f6..365eeede3f306119ffa591badfc4cfb1272c04fa 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
@@ -168,6 +170,9 @@ void do_housekeeping(void) {
 
        /* First, do the "as often as needed" stuff... */
        JournalRunQueue();
+#ifdef HAVE_LIBSIEVE
+       perform_sieve_processing();
+#endif
 
        /* Then, do the "once per minute" stuff... */
        if (do_perminute_housekeeping_now) {