+2006-03-02 [wwp] 2.0.0cvs99
+
+ * src/plugins/spamassassin/spamassassin.c
+ make sync calls to sa-learn/spamc to prevent
+ system (whatever local or client/server) overload.
+
2006-03-02 [colin] 2.0.0cvs98
* src/summaryview.c
( cvs diff -u -r 1.149.2.45 -r 1.149.2.46 src/inc.c; ) > 2.0.0cvs96.patchset
( cvs diff -u -r 1.18.2.28 -r 1.18.2.29 src/plugins/spamassassin/spamassassin.c; ) > 2.0.0cvs97.patchset
( cvs diff -u -r 1.395.2.178 -r 1.395.2.179 src/summaryview.c; ) > 2.0.0cvs98.patchset
+( cvs diff -u -r 1.18.2.29 -r 1.18.2.30 src/plugins/spamassassin/spamassassin.c; ) > 2.0.0cvs99.patchset
{
gchar *cmd = NULL;
gchar *file = NULL;
- gboolean async = FALSE;
const gchar *shell = g_getenv("SHELL");
gchar *spamc_wrapper = NULL;
tmpcmd = g_strconcat(shell?shell:"sh", " ", spamc_wrapper, " ",
tmpfile, NULL);
debug_print("%s\n", tmpcmd);
- execute_command_line(tmpcmd, TRUE);
+ execute_command_line(tmpcmd, FALSE);
g_free(tmpcmd);
}
if (tmpfile != NULL) {
g_free(tmpfile);
}
}
- async = TRUE;
}
}
if (cmd == NULL) {
return -1;
}
debug_print("%s\n", cmd);
- /* only run async if we have a list, or we could end up
- * forking lots of perl processes and bury the machine */
-
- execute_command_line(cmd, async);
+ /* only run sync calls to sa-learn/spamc to prevent system lockdown */
+ execute_command_line(cmd, FALSE);
g_free(cmd);
if (spamc_wrapper != NULL) {
g_free(spamc_wrapper);