aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-02-22 11:39:09 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-02-22 11:39:09 +0200
commit961fa70163a7322f0aa6b466f6da77ea6dda0bcf (patch)
treeae0ee704044270ee86ae277afa04cef4663b8b71 /src/plugins
parent992fb2a043ac340615ce14cc459a9bfbabd4d1d5 (diff)
downloadrspamd-961fa70163a7322f0aa6b466f6da77ea6dda0bcf.tar.gz
rspamd-961fa70163a7322f0aa6b466f6da77ea6dda0bcf.zip
[Minor] Rmilter headers: deal with missing reasons in DMARC
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/rmilter_headers.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/rmilter_headers.lua b/src/plugins/lua/rmilter_headers.lua
index 4e3eee0f8..77eed1785 100644
--- a/src/plugins/lua/rmilter_headers.lua
+++ b/src/plugins/lua/rmilter_headers.lua
@@ -237,7 +237,9 @@ local function rmilter_headers(task)
local t = rspamd_str_split(common.symbols[auth_types['dmarc'][key]][1]['options'][1], ' : ')
local dom = t[1]
local rsn = t[2]
- hdr = hdr .. ' reason="' .. rsn .. '"'
+ if rsn then
+ hdr = hdr .. ' reason="' .. rsn .. '"'
+ end
hdr = hdr .. ' header.from=' .. dom
if key == 'softfail' then
hdr = hdr .. ' policy=none'