/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 the Claws Mail Team
+ * Copyright (C) 1999-2012 the Claws Mail Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#ifdef HAVE_CONFIG_H
# include "config.h"
+#include "claws-features.h"
#endif
#include "defs.h"
if (whitelisted) {
debug_print("message is ham (whitelisted)\n");
+ fclose(fp);
return FALSE;
}
}
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);
}
}
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 */