2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2007 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.
20 #ifndef SPAMASSASSIN_H
21 #define SPAMASSASSIN_H 1
25 typedef struct _SpamAssassinConfig SpamAssassinConfig;
27 typedef void (*MessageCallback) (gchar *);
30 SPAMASSASSIN_DISABLED = 0, /* unused, just for compatibility */
31 SPAMASSASSIN_TRANSPORT_LOCALHOST = 1,
32 SPAMASSASSIN_TRANSPORT_TCP = 2,
33 SPAMASSASSIN_TRANSPORT_UNIX = 3,
34 } SpamAssassinTransport;
36 struct _SpamAssassinConfig
39 SpamAssassinTransport transport;
43 gboolean process_emails;
44 gboolean receive_spam;
51 SpamAssassinConfig *spamassassin_get_config (void);
52 void spamassassin_save_config (void);
53 gint spamassassin_check_username (void);
54 void spamassassin_set_message_callback (MessageCallback callback);
55 gint spamassassin_gtk_init(void);
56 void spamassassin_gtk_done(void);
57 int spamassassin_learn(MsgInfo *msginfo, GSList *msglist, gboolean spam);
58 void spamassassin_register_hook(void);
59 void spamassassin_unregister_hook(void);