]> source.dussan.org Git - rspamd.git/commitdiff
Fix rule when SMTP from is unavailable
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Jan 2016 18:31:45 +0000 (18:31 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Jan 2016 18:31:45 +0000 (18:31 +0000)
rules/misc.lua

index 4bc8b3b90fb952d36f024a53d54f2d152a9bae08..095334cf9bda672b25b44036e96b62646c213083 100644 (file)
@@ -195,7 +195,7 @@ rspamd_config.HEADER_FORGED_MDN = {
     if header_mdn and not header_rp  then return true end
     if header_rp  and not header_mdn then return false end
 
-    if header_mdn['addr'] ~= header_rp['addr'] then
+    if header_mdn and header_mdn['addr'] ~= header_rp['addr'] then
       return true
     end