aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sa-junk-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sa-junk-plugin')
-rw-r--r--plugins/sa-junk-plugin/ChangeLog7
-rw-r--r--plugins/sa-junk-plugin/em-junk-filter.c10
2 files changed, 17 insertions, 0 deletions
diff --git a/plugins/sa-junk-plugin/ChangeLog b/plugins/sa-junk-plugin/ChangeLog
index 549b8d8678..cb32b8cbdd 100644
--- a/plugins/sa-junk-plugin/ChangeLog
+++ b/plugins/sa-junk-plugin/ChangeLog
@@ -1,3 +1,10 @@
+2005-10-03 Vivek Jain <jvivek@novell.com>
+
+ * em-junk-filter.c: added (e_plugin_lib_enable)
+ calls init here to initialize all settings
+ **Fixes #317792
+ unref GConfClient in finalize
+
2005-08-23 Not Zed <NotZed@Ximian.com>
* em-junk-filter.c (em_junk_sa_report_non_junk): pre-define.
diff --git a/plugins/sa-junk-plugin/em-junk-filter.c b/plugins/sa-junk-plugin/em-junk-filter.c
index 770ee46849..0e7b29469f 100644
--- a/plugins/sa-junk-plugin/em-junk-filter.c
+++ b/plugins/sa-junk-plugin/em-junk-filter.c
@@ -56,6 +56,7 @@ static pthread_mutex_t em_junk_sa_report_lock = PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t em_junk_sa_preferred_socket_path_lock = PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t em_junk_sa_spamd_restart_lock = PTHREAD_MUTEX_INITIALIZER;
+int e_plugin_lib_enable (EPluginLib *ep, int enable);
static const char *em_junk_sa_get_name (void);
gboolean em_junk_sa_check_junk (EPlugin *ep, EMJunkHookTarget *target);
void em_junk_sa_report_junk (EPlugin *ep, EMJunkHookTarget *target);
@@ -687,6 +688,14 @@ em_junk_sa_setting_notify(GConfClient *gconf, guint cnxn_id, GConfEntry *entry,
}
}
+int
+e_plugin_lib_enable (EPluginLib *ep, int enable)
+{
+ em_junk_sa_init();
+
+ return 0;
+}
+
static void
em_junk_sa_init (void)
{
@@ -756,5 +765,6 @@ em_junk_sa_finalize (void)
{
d(fprintf (stderr, "em_junk_sa_finalize\n"));
+ g_object_unref(em_junk_sa_gconf);
em_junk_sa_kill_spamd ();
}