]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix warnings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 28 Apr 2017 11:12:31 +0000 (12:12 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 1 May 2017 13:19:11 +0000 (14:19 +0100)
rules/forwarding.lua
src/libmime/mime_expressions.c

index d145890d2bcd81d771df00a552635f9e7aedd719..5adb562ef14e8b6a46f7bcc301f23042b198e69c 100644 (file)
@@ -16,8 +16,6 @@ limitations under the License.
 
 -- Rules to detect forwarding
 
-local fun = require "fun"
-
 rspamd_config.FWD_GOOGLE = {
   callback = function (task)
     if not (task:has_from(1) and task:has_recipients(1)) then
index 0c036a89cd2026e7cc6c8f8630f3f955453db4c5..64344f4b5c3302c4507b3075a3b10c1174f70750 100644 (file)
@@ -1008,11 +1008,13 @@ rspamd_header_exists (struct rspamd_task * task, GArray * args, void *unused)
                return FALSE;
        }
 
-       debug_task ("try to get header %s", (gchar *)arg->data);
        headerlist = rspamd_message_get_header_array (task,
                        (gchar *)arg->data,
                        FALSE);
 
+       debug_task ("try to get header %s: %d", (gchar *)arg->data,
+                       (headerlist != NULL));
+
        if (headerlist) {
                return TRUE;
        }