Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/sa-junk-plugin/ChangeLog,v
retrieving revision 1.3
diff -u -p -r1.3 ChangeLog
--- ChangeLog	24 Aug 2005 03:13:28 -0000	1.3
+++ ChangeLog	3 Oct 2005 06:09:28 -0000
@@ -1,3 +1,10 @@
+2005-10-02  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.
Index: em-junk-filter.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/sa-junk-plugin/em-junk-filter.c,v
retrieving revision 1.4
diff -u -p -r1.4 em-junk-filter.c
--- em-junk-filter.c	24 Aug 2005 03:13:28 -0000	1.4
+++ em-junk-filter.c	3 Oct 2005 06:09:29 -0000
@@ -56,6 +56,7 @@ static pthread_mutex_t em_junk_sa_report
 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 *g
 	}
 }
 
+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 ();
 }
