/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2002 Hiroyuki Yamamoto and the Sylpheed-Claws Team
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Sylpheed-Claws 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
typedef void (*MessageCallback) (gchar *);
typedef enum {
- SPAMASSASSIN_DISABLED = 0,
+ SPAMASSASSIN_DISABLED = 0, /* unused, just for compatibility */
SPAMASSASSIN_TRANSPORT_LOCALHOST = 1,
SPAMASSASSIN_TRANSPORT_TCP = 2,
SPAMASSASSIN_TRANSPORT_UNIX = 3,
struct _SpamAssassinConfig
{
+ gboolean enable;
SpamAssassinTransport transport;
gchar *hostname;
guint port;
gchar *socket;
+ gboolean process_emails;
gboolean receive_spam;
gchar *save_folder;
guint max_size;
guint timeout;
+ gchar *username;
};
SpamAssassinConfig *spamassassin_get_config (void);
void spamassassin_save_config (void);
+gint spamassassin_check_username (void);
void spamassassin_set_message_callback (MessageCallback callback);
-
+gint spamassassin_gtk_init(void);
+void spamassassin_gtk_done(void);
+int spamassassin_learn(MsgInfo *msginfo, GSList *msglist, gboolean spam);
+void spamassassin_register_hook(void);
+void spamassassin_unregister_hook(void);
#endif