// This module allows Citadel to use an external SpamAssassin service to filter incoming messages arriving via SMTP.
//
-// Copyright (c) 1998-2022 by the citadel.org team
+// Copyright (c) 1998-2023 by the citadel.org team
//
// This program is open source software. Use, duplication, or disclosure
// is subject to the terms of the GNU General Public License, version 3.
#include <limits.h>
#include <sys/socket.h>
#include <libcitadel.h>
-#include "../../citadel.h"
+#include "../../citadel_defs.h"
#include "../../server.h"
#include "../../citserver.h"
#include "../../support.h"
FreeStrBuf(&msgtext);
// Close one end of the socket connection; this tells SpamAssassin that we're done.
- if (sock != -1)
- sock_shutdown(sock, SHUT_WR);
+ if (sock != -1) {
+ shutdown(sock, SHUT_WR);
+ }
// Response
syslog(LOG_DEBUG, "Awaiting response\n");
}
if (is_spam) {
- CM_SetField(msg, eErrorMsg, HKEY("message rejected by spam filter"));
+ CM_SetField(msg, eErrorMsg, "message rejected by spam filter");
}
}