]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix log message 872/head
authorAndrew Lewis <nerf@judo.za.org>
Sun, 21 Aug 2016 16:21:28 +0000 (18:21 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Sun, 21 Aug 2016 16:21:28 +0000 (18:21 +0200)
 - Also clean up X_PHP_EVAL rule

rules/regexp/headers.lua
src/plugins/lua/dmarc.lua

index 8f6e47ee9ba1d28df9adf8e37c7fd318a349d99a..6ec37181fa473021b0ef697abf6bdef7440fb89d 100644 (file)
@@ -436,8 +436,8 @@ reconf['FORGED_GENERIC_RECEIVED5'] = 'Received=/\\s*from \\[(\\d{1,3}\\.\\d{1,3}
 reconf['INVALID_POSTFIX_RECEIVED'] =   'Received=/ \\(Postfix\\) with ESMTP id [A-Z\\d]+([\\s\\r\\n]+for <\\S+?>)?;[\\s\\r\\n]*[A-Z][a-z]{2}, \\d{1,2} [A-Z][a-z]{2} \\d\\d\\d\\d \\d\\d:\\d\\d:\\d\\d [\\+\\-]\\d\\d\\d\\d$/X'
 
 reconf['X_PHP_EVAL'] = {
-  re = "X-PHP-Originating-Script=/\\s:\\seval\\(\\)'d code$/X",
+  re = "X-PHP-Originating-Script=/ : eval\\(\\)'d code$/X",
   score = 4.0,
-  description = "Message sent by eval()'d php code",
+  description = "Message sent by eval()'d PHP code",
   group = 'header'
 }
index c9444b23d80e45a742fee8b16431eb0ea3cbe776..74f395cf86368ed0245be6652cb0113aae0a23d1 100644 (file)
@@ -58,7 +58,7 @@ local function dmarc_callback(task)
   local ip_addr = task:get_ip()
 
   if task:get_user() or (ip_addr and ip_addr:is_local()) then
-    rspamd_logger.infox(task, "skip SPF checks for local networks and authorized users");
+    rspamd_logger.infox(task, "skip DMARC checks for local networks and authorized users");
     return
   end
   if from and from[1] and from[1]['domain'] and not from[2] then