commit 469dcec: [Minor] Pet luacheck

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Feb 11 18:14:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-02-11 18:06:58 +0000
URL: https://github.com/rspamd/rspamd/commit/469dcecb601d6622ff0f539349fd568c4969ef35 (HEAD -> master)

[Minor] Pet luacheck

---
 lualib/rspamadm/mime.lua | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lualib/rspamadm/mime.lua b/lualib/rspamadm/mime.lua
index d615feab3..16803b8c0 100644
--- a/lualib/rspamadm/mime.lua
+++ b/lualib/rspamadm/mime.lua
@@ -801,7 +801,7 @@ local function modify_handler(opts)
     end
 
     -- End of headers
-    local eoh_pos = #out
+    --local eoh_pos = #out
     out[#out + 1] = ''
 
     local boundaries = {}
@@ -947,7 +947,8 @@ local function sign_handler(opts)
     local sig = lua_dkim.do_sign(task, ctx, opts.selector, opts.domain)
 
     if not sig then
-
+      io.stderr:write('Cannot create signature\n')
+      os.exit(1)
     end
 
     if opts.output == 'signature' then


More information about the Commits mailing list