aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-03 18:49:13 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-03 18:49:13 +0100
commit21f431a55c2e82e7e97243ca3432bce2635650d4 (patch)
tree27e4654b9ce97007037de6422343a6ceea8dc6d0 /src/plugins
parent77a8931e282ac156eb1f3e07580194e210b4cbe1 (diff)
downloadrspamd-21f431a55c2e82e7e97243ca3432bce2635650d4.tar.gz
rspamd-21f431a55c2e82e7e97243ca3432bce2635650d4.zip
Fix maillist.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/maillist.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/maillist.lua b/src/plugins/lua/maillist.lua
index d265e1518..76d1d1cb8 100644
--- a/src/plugins/lua/maillist.lua
+++ b/src/plugins/lua/maillist.lua
@@ -65,7 +65,7 @@ local function check_ml_mailman(task)
-- For reminders we have other headers than for normal messages
header = task:get_header('x-list-administrivia')
local subject = task:get_header('subject')
- if (header and string.find(header, 'yes')) or (subject and string.find(subject[1], 'mailing list memberships reminder$')) then
+ if (header and string.find(header, 'yes')) or (subject and string.find(subject, 'mailing list memberships reminder$')) then
if not task:get_header('errors-to') or not task:get_header('x-beenthere') then
return false
end