commit bc77385: [Fix] Properly check the original email flag

Vsevolod Stakhov vsevolod at rspamd.com
Sat Jun 4 18:00:04 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-06-04 18:57:40 +0100
URL: https://github.com/rspamd/rspamd/commit/bc77385a733f5a54eebd74ff15bb0b2582df9ba0

[Fix] Properly check the original email flag
Issue: #4167, #4104, #4187

---
 src/libstat/CMakeLists.txt | 1 +
 src/lua/lua_task.c         | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libstat/CMakeLists.txt b/src/libstat/CMakeLists.txt
index 19962239d..b1df5c1e6 100644
--- a/src/libstat/CMakeLists.txt
+++ b/src/libstat/CMakeLists.txt
@@ -11,6 +11,7 @@ SET(CLASSIFIERSSRC	${CMAKE_CURRENT_SOURCE_DIR}/classifiers/bayes.c
 SET(BACKENDSSRC 	${CMAKE_CURRENT_SOURCE_DIR}/backends/mmaped_file.c
 					${CMAKE_CURRENT_SOURCE_DIR}/backends/sqlite3_backend.c
 					${CMAKE_CURRENT_SOURCE_DIR}/backends/cdb_backend.cxx
+					${CMAKE_CURRENT_SOURCE_DIR}/backends/http_backend.cxx
 					${CMAKE_CURRENT_SOURCE_DIR}/backends/redis_backend.c)
 
 SET(CACHESSRC 	${CMAKE_CURRENT_SOURCE_DIR}/learn_cache/sqlite3_cache.c
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 1b4bda858..26cb7e1e9 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -3864,7 +3864,7 @@ rspamd_check_real_recipients_array_size (GPtrArray *ar)
 	struct rspamd_email_address *addr;
 
 	PTR_ARRAY_FOREACH(ar, i, addr) {
-		if (!(addr->flags & LUA_ADDRESS_ORIGINAL)) {
+		if (!(addr->flags & RSPAMD_EMAIL_ADDR_ORIGINAL)) {
 			ret ++;
 		}
 	}


More information about the Commits mailing list