diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-14 18:44:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-14 18:44:20 +0000 |
commit | d9d3b83508e269a15edebdf9b5539d3a9b229300 (patch) | |
tree | 53cf915ef9b6cd5dd73b81f7e3a5d91e5b391dd5 /src/plugins/lua/dcc.lua | |
parent | 74c546aa44e81880a35ecffd1b913829f163f3b7 (diff) | |
parent | 3590c28e73e34649d15c401db7ee6f4142a8a753 (diff) | |
download | rspamd-d9d3b83508e269a15edebdf9b5539d3a9b229300.tar.gz rspamd-d9d3b83508e269a15edebdf9b5539d3a9b229300.zip |
Merge pull request #1129 from fatalbanana/lint
[Minor] Lint Lua plugins & global functions
Diffstat (limited to 'src/plugins/lua/dcc.lua')
-rw-r--r-- | src/plugins/lua/dcc.lua | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/plugins/lua/dcc.lua b/src/plugins/lua/dcc.lua index cd8f76de2..446805811 100644 --- a/src/plugins/lua/dcc.lua +++ b/src/plugins/lua/dcc.lua @@ -70,21 +70,17 @@ local function check_dcc (task) if header then local _,_,info = header:find("; (.-)$") - if (result == 'A') then - -- Accept - elseif (result == 'G') then - -- Greylist - elseif (result == 'R') then + if (result == 'R') then -- Reject task:insert_result(symbol_bulk, 1.0, info) - elseif (result == 'S') then - -- Accept for some recipients only elseif (result == 'T') then -- Temporary failure logger.warnx(task, 'DCC returned a temporary failure result') else - -- Unknown result - logger.warnx(task, 'DCC result error: %1', result); + if result ~= 'A' and result ~= 'G' and result ~= 'S' then + -- Unknown result + logger.warnx(task, 'DCC result error: %1', result); + end end end end |