From: Vsevolod Stakhov Date: Wed, 3 Sep 2014 17:49:13 +0000 (+0100) Subject: Fix maillist. X-Git-Tag: 0.7.0~43^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21f431a55c2e82e7e97243ca3432bce2635650d4;p=thirdparty%2Frspamd.git Fix maillist. --- diff --git a/src/plugins/lua/maillist.lua b/src/plugins/lua/maillist.lua index d265e15182..76d1d1cb8e 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