]> source.dussan.org Git - rspamd.git/commitdiff
* Fix bug in redirector
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 19 Mar 2009 15:44:51 +0000 (18:44 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 19 Mar 2009 15:44:51 +0000 (18:44 +0300)
* Do not write info about redirects to log file as this info is already in redirector's log file

src/plugins/regexp.c
src/plugins/surbl.c

index 8c3a9d354bba7405ec24cabb2847910f3df6a72f..461888abf60e9f47ef073d8876f2892581293924 100644 (file)
@@ -276,6 +276,7 @@ optimize_regexp_expression (struct expression **e, GQueue *stack, gboolean res)
                        /* If this operation is just ! just inverse res and check for further operators */
                        if (it->content.operation == '!') {
                                res = !res;
+                               it = it->next;
                                continue;
                        }
                        else if (it->content.operation == '&' && res == FALSE) {
index 4b12936353fa58435fad631732047418077cbb65..d92fe4a1a4c7b2ce2d57226ec34d3230a5d19231 100644 (file)
@@ -582,7 +582,7 @@ redirector_callback (int fd, short what, void *arg)
                                                }
                                        }
                                        if (*p == '\0') {
-                                               msg_info ("redirector_callback: <%s> got reply from redirector: '%s' -> '%s'", 
+                                               msg_debug ("redirector_callback: <%s> got reply from redirector: '%s' -> '%s'", 
                                                                        param->task->message_id, struri (param->url), c);
                                                parse_uri (param->url, c, param->task->task_pool);
                                        }