diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2017-04-27 20:37:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-27 20:37:37 +0300 |
commit | 15a73c7bed4cd205c7215bf7b0fd8daeffa0edae (patch) | |
tree | 450af67ca23c8c9ebdfc93a482a05385b2e60bab /rules | |
parent | a693dc823b748a7a7902f13aeb0183fac262b1da (diff) | |
download | rspamd-15a73c7bed4cd205c7215bf7b0fd8daeffa0edae.tar.gz rspamd-15a73c7bed4cd205c7215bf7b0fd8daeffa0edae.zip |
[Minor] Avoid `nil` table
Diffstat (limited to 'rules')
-rw-r--r-- | rules/misc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index ccc52d887..ab4a87508 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -578,6 +578,7 @@ rspamd_config.INFO_TO_INFO_LU = { return false end local to = task:get_recipients('smtp') + if not to then return false end local found = false for _,r in ipairs(to) do if util.strequal_caseless(r['user'], 'info') then @@ -609,4 +610,4 @@ rspamd_config.R_BAD_CTE_7BIT = { score = 4.0, description = 'Detects bad content-transfer-encoding for text parts', group = 'header' -}
\ No newline at end of file +} |