2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Claws Mail Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #define BOGOFILTER_H 1
25 typedef struct _BogofilterConfig BogofilterConfig;
27 typedef void (*MessageCallback) (gchar *, gint total, gint done, gboolean thread_safe);
29 struct _BogofilterConfig
31 gboolean process_emails;
32 gboolean receive_spam;
36 gboolean insert_header;
37 gboolean whitelist_ab;
38 gchar *whitelist_ab_folder;
41 BogofilterConfig *bogofilter_get_config (void);
42 void bogofilter_save_config (void);
43 void bogofilter_set_message_callback (MessageCallback callback);
44 gint bogofilter_gtk_init(void);
45 void bogofilter_gtk_done(void);
46 int bogofilter_learn(MsgInfo *msginfo, GSList *msglist, gboolean spam);
47 void bogofilter_register_hook(void);
48 void bogofilter_unregister_hook(void);