2011-01-21 [colin] 3.7.8cvs39
[claws.git] / src / plugins / spamassassin / spamassassin.c
index 5bb4ff0ab3612fc43aad7bd81004727844a78702..b15b33eae26d01b87b919396aa1887542a363f9b 100644 (file)
@@ -442,9 +442,9 @@ int spamassassin_learn(MsgInfo *msginfo, GSList *msglist, gboolean spam)
                                                                spamc_wrapper, " ", file, NULL);
                        }
                } else {
-                       cmd = g_strdup_printf("sa-learn -u %s %s %s %s",
+                       cmd = g_strdup_printf("sa-learn -u %s%s %s %s",
                                                        config.username,
-                                                       prefs_common.work_offline?"-L":"",
+                                                       prefs_common.work_offline?" -L":"",
                                                        spam?"--spam":"--ham", file);
                }
        }
@@ -476,9 +476,9 @@ int spamassassin_learn(MsgInfo *msginfo, GSList *msglist, gboolean spam)
                        g_free(spamc_wrapper);
                        return 0;
                } else {
-                       cmd = g_strdup_printf("sa-learn -u %s %s %s",
+                       cmd = g_strdup_printf("sa-learn -u %s%s %s",
                                        config.username,
-                                       prefs_common.work_offline?"-L":"",
+                                       prefs_common.work_offline?" -L":"",
                                        spam?"--spam":"--ham");
 
                        /* concatenate all message tmpfiles to the sa-learn command-line */