Here it is, the new thread interface.
[citadel.git] / citadel / modules / spam / serv_spam.c
index 415f03cae768a71752953298fab621998b304c80..6ad7029441f3e0d7c3d157d93c4c66e68122f8c3 100644 (file)
@@ -148,8 +148,11 @@ bail:      close(sock);
 
 CTDL_MODULE_INIT(spam)
 {
-       CtdlRegisterMessageHook(spam_assassin, EVT_SMTPSCAN);
-
+       if (!threading)
+       {
+               CtdlRegisterMessageHook(spam_assassin, EVT_SMTPSCAN);
+       }
+       
        /* return our Subversion id for the Log */
         return "$Id$";
 }