]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix for CommuniGate Pro maillist 2283/head
authorAndrey Igoshin <ai@vsu.ru>
Mon, 11 Jun 2018 13:38:22 +0000 (16:38 +0300)
committerAndrey Igoshin <ai@vsu.ru>
Mon, 11 Jun 2018 13:38:22 +0000 (16:38 +0300)
src/plugins/lua/maillist.lua

index 62ecc03417ddfe84128d6fc55b6d1923370ce25a..2ec0c4255e702897162b564f002c8a903910032f 100644 (file)
@@ -221,7 +221,7 @@ end
 local function check_ml_cgp(task)
   local header = task:get_header('X-Listserver')
 
-  if not header or header ~= 'CommuniGate Pro LIST' then
+  if not header or string.sub(header, 0, 20) ~= 'CommuniGate Pro LIST' then
     return false
   end