Added working_directory parameter to execute_command_line()
[claws.git] / src / plugins / bogofilter / bogofilter.c
index 2d97c3d27b7bbb347b4af25f9bcac041d8b08a92..2363848fa2d0836c9ffbbd7891b303ec3bb486c7 100644 (file)
@@ -775,7 +775,7 @@ int bogofilter_learn(MsgInfo *msginfo, GSList *msglist, gboolean spam)
                                cmd = g_strdup_printf("%s -n -I '%s'", bogo_exec, file);
                                
                        debug_print("%s\n", cmd);
-                       if ((status = execute_command_line(cmd, FALSE)) != 0)
+                       if ((status = execute_command_line(cmd, FALSE, NULL)) != 0)
                                log_error(LOG_PROTOCOL, _("Learning failed; `%s` returned with status %d."),
                                                cmd, status);
                        g_free(cmd);
@@ -822,7 +822,7 @@ int bogofilter_learn(MsgInfo *msginfo, GSList *msglist, gboolean spam)
                                        cmd = g_strdup_printf("%s -n -I '%s'", bogo_exec, file);
                                
                                debug_print("%s\n", cmd);
-                               if ((status = execute_command_line(cmd, FALSE)) != 0)
+                               if ((status = execute_command_line(cmd, FALSE, NULL)) != 0)
                                        log_error(LOG_PROTOCOL, _("Learning failed; `%s` returned with status %d."),
                                                        cmd, status);