From: Vsevolod Stakhov Date: Sat, 25 Mar 2017 14:41:50 +0000 (+0000) Subject: [Minor] Remove some unused macros X-Git-Tag: 1.5.4~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0223b51eec03f42bb1228ec495773952034a0ad;p=thirdparty%2Frspamd.git [Minor] Remove some unused macros --- diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index c1ed4fc9c4..969ff3445f 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -24,8 +24,6 @@ #include "unix-std.h" #include -/* Max line size */ -#define OUTBUFSIZ BUFSIZ /* * Just check if the passed message is spam or not and reply as * described below @@ -57,34 +55,16 @@ * Process this message as described above and return modified message */ #define MSG_CMD_PROCESS "process" - -/* - * Learn specified statfile using message - */ -#define MSG_CMD_LEARN "learn" - -/* - * spamassassin greeting: - */ -#define SPAMC_GREETING "SPAMC" -/* - * rspamd greeting: - */ -#define RSPAMC_GREETING "RSPAMC" /* * Headers */ -#define CONTENT_LENGTH_HEADER "Content-length" #define HELO_HEADER "Helo" #define FROM_HEADER "From" #define IP_ADDR_HEADER "IP" -#define NRCPT_HEADER "Recipient-Number" #define RCPT_HEADER "Rcpt" #define SUBJECT_HEADER "Subject" #define SETTINGS_ID_HEADER "Settings-ID" -#define STATFILE_HEADER "Statfile" #define QUEUE_ID_HEADER "Queue-ID" -#define ERROR_HEADER "Error" #define USER_HEADER "User" #define URLS_HEADER "URL-Format" #define PASS_HEADER "Pass" diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index f1dd34953d..30ab7beb08 100644 --- a/src/plugins/lua/greylist.lua +++ b/src/plugins/lua/greylist.lua @@ -265,7 +265,6 @@ local function greylist_set(task) end local is_whitelisted = task:get_mempool():get_variable("grey_whitelisted") - local do_greylisting = task:get_mempool():get_variable("grey_greylisted") local do_greylisting_required = task:get_mempool():get_variable("grey_greylisted_required") -- Third and second level domains whitelist