diff options
Diffstat (limited to 'src/plugins/lua/mid.lua')
-rw-r--r-- | src/plugins/lua/mid.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/mid.lua b/src/plugins/lua/mid.lua index 0ca26b91f..959697cd9 100644 --- a/src/plugins/lua/mid.lua +++ b/src/plugins/lua/mid.lua @@ -35,11 +35,13 @@ local settings = { local map = {} +local E = {} + local function known_mid_cb(task) local re = {} local header = task:get_header('Message-Id') local das = task:get_symbol(settings['symbol_dkim_allow']) - if das and das[1] and das[1]['options'] then + if ((das or E)[1] or E).options then for _,dkim_domain in ipairs(das[1]['options']) do local v = map:get_key(dkim_domain) if v then |