Back to index

citadel  8.12
Functions
serv_dspam.c File Reference
#include "sysdep.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <ctype.h>
#include <pwd.h>
#include <errno.h>
#include <sys/types.h>
#include <time.h>
#include <sys/wait.h>
#include <string.h>
#include <limits.h>
#include <libcitadel.h>
#include "citadel.h"
#include "server.h"
#include "citserver.h"
#include "support.h"
#include "config.h"
#include "database.h"
#include "msgbase.h"
#include "internet_addressing.h"
#include "ctdl_module.h"

Go to the source code of this file.

Functions

 CTDL_MODULE_INIT (dspam)

Function Documentation

CTDL_MODULE_INIT ( dspam  )

Definition at line 239 of file serv_dspam.c.

{
       return "disabled.";
       if (!threading)
       {
#ifdef HAVE_LIBDSPAM

              ctdl_dspam_init();
              CtdlRegisterCleanupHook(serv_dspam_shutdown);
              CtdlRegisterProtoHook(cmd_tspam, "SPAM", "Tag Message as Spam/Ham to learn DSPAM");

               CtdlRegisterRoomHook(serv_dspam_room);


#else  /* HAVE_LIBDSPAM */

              syslog(LOG_INFO, "This server is missing libdspam Spam filtering will be disabled.\n");

#endif /* HAVE_LIBDSPAM */
       }
       
        /* return our module name for the log */
       return "dspam";
}

Here is the call graph for this function: