aboutsummaryrefslogtreecommitdiffstats
path: root/lib/librspamdclient.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-01 22:01:19 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-01 22:01:19 +0300
commit295619fdc102e5528a5370a0dcd58bef9c7dc371 (patch)
treeda48d33f1cb9648f91dd399863dc6ff6bca67c65 /lib/librspamdclient.h
parent2a383446ab6254777693544e5acda2a805947f81 (diff)
downloadrspamd-295619fdc102e5528a5370a0dcd58bef9c7dc371.tar.gz
rspamd-295619fdc102e5528a5370a0dcd58bef9c7dc371.zip
* Implement controller interface inside librspamdclient/rspamc
* REMOVE perl client (at last) Fixed some stupid moments in a controller's protocol Change version to 0.3.5
Diffstat (limited to 'lib/librspamdclient.h')
-rw-r--r--lib/librspamdclient.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/lib/librspamdclient.h b/lib/librspamdclient.h
index fc5a6f2ca..2d2efc164 100644
--- a/lib/librspamdclient.h
+++ b/lib/librspamdclient.h
@@ -69,17 +69,37 @@ struct rspamd_result * rspamd_scan_fd (int fd, GHashTable *headers, GError **err
/*
* Learn message from memory
*/
-gboolean rspamd_learn_memory (const guchar *message, gsize length, const gchar *symbol, GError **err);
+gboolean rspamd_learn_memory (const guchar *message, gsize length, const gchar *symbol, const gchar *password, GError **err);
/*
* Learn message from file
*/
-gboolean rspamd_learn_file (const guchar *filename, const gchar *symbol, GError **err);
+gboolean rspamd_learn_file (const guchar *filename, const gchar *symbol, const gchar *password, GError **err);
/*
* Learn message from fd
*/
-gboolean rspamd_learn_fd (int fd, const gchar *symbol, GError **err);
+gboolean rspamd_learn_fd (int fd, const gchar *symbol, const gchar *password, GError **err);
+
+/*
+ * Learn message fuzzy from memory
+ */
+gboolean rspamd_fuzzy_memory (const guchar *message, gsize length, const gchar *password, gint weight, gint flag, gboolean delete, GError **err);
+
+/*
+ * Learn message fuzzy from file
+ */
+gboolean rspamd_fuzzy_file (const guchar *filename, const gchar *password, gint weight, gint flag, gboolean delete, GError **err);
+
+/*
+ * Learn message fuzzy from fd
+ */
+gboolean rspamd_fuzzy_fd (int fd, const gchar *password, gint weight, gint flag, gboolean delete, GError **err);
+
+/*
+ * Get statistic from server
+ */
+GString *rspamd_get_stat (GError **err);
/*
* Free results