]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Properly check the original email flag
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 4 Jun 2022 17:57:40 +0000 (18:57 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 4 Jun 2022 17:57:40 +0000 (18:57 +0100)
Issue: #4167, #4104, #4187

src/libstat/CMakeLists.txt
src/lua/lua_task.c

index 19962239d14f4e74a866718f996a9344a0cc546f..b1df5c1e621eecdf4b53a69bc026c9e6ba1313ca 100644 (file)
@@ -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
index 1b4bda858a214d3a19cd73ecaede86f5f47c6a2d..26cb7e1e977783ac45405449a1db4badc0721f0f 100644 (file)
@@ -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 ++;
                }
        }