diff options
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 61 |
1 files changed, 1 insertions, 60 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index 52ba05188..1c11832a2 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -22,68 +22,9 @@ #include "contrib/zstd/zstd.h" #include "lua/lua_common.h" #include "unix-std.h" +#include "protocol_internal.h" #include <math.h> -/* - * Just check if the passed message is spam or not and reply as - * described below - */ -#define MSG_CMD_CHECK "check" - -/* - * Modern check version - */ -#define MSG_CMD_CHECK_V2 "checkv2" - -/* - * Check if message is spam or not, and return score plus list - * of symbols hit - */ -#define MSG_CMD_SYMBOLS "symbols" -/* - * Check if message is spam or not, and return score plus report - */ -#define MSG_CMD_REPORT "report" -/* - * Check if message is spam or not, and return score plus report - * if the message is spam - */ -#define MSG_CMD_REPORT_IFSPAM "report_ifspam" -/* - * Ignore this message -- client opened connection then changed - */ -#define MSG_CMD_SKIP "skip" -/* - * Return a confirmation that spamd is alive - */ -#define MSG_CMD_PING "ping" -/* - * Process this message as described above and return modified message - */ -#define MSG_CMD_PROCESS "process" -/* - * Headers - */ -#define HELO_HEADER "Helo" -#define FROM_HEADER "From" -#define IP_ADDR_HEADER "IP" -#define RCPT_HEADER "Rcpt" -#define SUBJECT_HEADER "Subject" -#define SETTINGS_ID_HEADER "Settings-ID" -#define QUEUE_ID_HEADER "Queue-ID" -#define USER_HEADER "User" -#define URLS_HEADER "URL-Format" -#define PASS_HEADER "Pass" -#define JSON_HEADER "Json" -#define HOSTNAME_HEADER "Hostname" -#define DELIVER_TO_HEADER "Deliver-To" -#define NO_LOG_HEADER "Log" -#define MLEN_HEADER "Message-Length" -#define USER_AGENT_HEADER "User-Agent" -#define MTA_TAG_HEADER "MTA-Tag" -#define PROFILE_HEADER "Profile" - - static GQuark rspamd_protocol_quark (void) { |