/*
- * $Id$
- *
* This module glues libDSpam to the Citadel server in order to implement
* DSPAM Spamchecking
*
#include "citserver.h"
#include "support.h"
#include "config.h"
-#include "room_ops.h"
-#include "policy.h"
#include "database.h"
#include "msgbase.h"
#include "internet_addressing.h"
if (dspam_process (CTX, msgtext) != 0)
{
free(msgtext);
- CtdlLogPrintf(CTDL_CRIT, "ERROR: dspam_process failed");
+ syslog(LOG_CRIT, "ERROR: dspam_process failed");
return;
}
if (CTX->signature == NULL)
{
- CtdlLogPrintf(CTDL_CRIT,"No signature provided\n");
+ syslog(LOG_CRIT,"No signature provided\n");
}
else
{
SIG.length = CTX->signature->length;
/* Print processing results */
- CtdlLogPrintf (CTDL_DEBUG, "Probability: %2.4f Confidence: %2.4f, Result: %s\n",
+ syslog(LOG_DEBUG, "Probability: %2.4f Confidence: %2.4f, Result: %s\n",
CTX->probability,
CTX->confidence,
(CTX->result == DSR_ISSPAM) ? "Spam" : "Innocent");
/// else -> todo: global user for public rooms etc.
if (CTX == NULL)
{
- CtdlLogPrintf(CTDL_CRIT, "ERROR: dspam_init failed!\n");
+ syslog(LOG_CRIT, "ERROR: dspam_init failed!\n");
return ERROR + INTERNAL_ERROR;
}
/* Use graham and robinson algorithms, graham's p-values */
CTDL_MODULE_INIT(dspam)
{
- return "$Id$" "disabled.";
+ return "disabled.";
if (!threading)
{
#ifdef HAVE_LIBDSPAM
#else /* HAVE_LIBDSPAM */
- CtdlLogPrintf(CTDL_INFO, "This server is missing libdspam Spam filtering will be disabled.\n");
+ syslog(LOG_INFO, "This server is missing libdspam Spam filtering will be disabled.\n");
#endif /* HAVE_LIBDSPAM */
}
- /* return our Subversion id for the Log */
- return "$Id$";
+ /* return our module name for the log */
+ return "dspam";
}