evolution r35183 - in trunk: mail plugins/sa-junk-plugin
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r35183 - in trunk: mail plugins/sa-junk-plugin
- Date: Thu, 13 Mar 2008 11:24:56 +0000 (GMT)
Author: mcrha
Date: Thu Mar 13 11:24:56 2008
New Revision: 35183
URL: http://svn.gnome.org/viewvc/evolution?rev=35183&view=rev
Log:
2008-03-13 Milan Crha <mcrha redhat com>
** Fix for bug #515786
* plugins/sa-junk-plugin/org-gnome-sa-junk-plugin.eplug.xml:
* plugins/sa-junk-plugin/em-junk-filter.c: (org_gnome_sa_use_remote_tests):
* mail/em-migrate.c: (em_migrate), (em_update_sa_junk_setting_2_23):
Fix misspelled SpamAssassin word.
Modified:
trunk/mail/ChangeLog
trunk/mail/em-migrate.c
trunk/plugins/sa-junk-plugin/ChangeLog
trunk/plugins/sa-junk-plugin/em-junk-filter.c
trunk/plugins/sa-junk-plugin/org-gnome-sa-junk-plugin.eplug.xml
Modified: trunk/mail/em-migrate.c
==============================================================================
--- trunk/mail/em-migrate.c (original)
+++ trunk/mail/em-migrate.c Thu Mar 13 11:24:56 2008
@@ -2813,6 +2813,31 @@
g_object_unref (client);
}
+/* fixing typo in SpamAssassin name */
+static void
+em_update_sa_junk_setting_2_23 (void)
+{
+ GConfClient *client;
+ GConfValue *key;
+
+ client = gconf_client_get_default ();
+
+ key = gconf_client_get (client, "/apps/evolution/mail/junk/default_plugin", NULL);
+ if (key) {
+ const char *str = gconf_value_get_string (key);
+
+ if (str && strcmp (str, "Spamassasin") == 0)
+ gconf_client_set_string (client, "/apps/evolution/mail/junk/default_plugin", "SpamAssassin", NULL);
+
+ gconf_value_free (key);
+ g_object_unref (client);
+
+ return;
+ }
+
+ g_object_unref (client);
+}
+
int
em_migrate (const char *evolution_dir, int major, int minor, int revision, CamelException *ex)
{
@@ -2902,6 +2927,9 @@
if (major < 2 || (major == 2 && minor < 22))
em_update_message_notify_settings_2_21 ();
+ if (major < 2 || (major == 2 && minor < 24))
+ em_update_sa_junk_setting_2_23 ();
+
#endif /* !G_OS_WIN32 */
return 0;
}
Modified: trunk/plugins/sa-junk-plugin/em-junk-filter.c
==============================================================================
--- trunk/plugins/sa-junk-plugin/em-junk-filter.c (original)
+++ trunk/plugins/sa-junk-plugin/em-junk-filter.c Thu Mar 13 11:24:56 2008
@@ -845,7 +845,7 @@
org_gnome_sa_use_remote_tests (struct _EPlugin *epl, struct _EConfigHookItemFactoryData *data)
{
GtkWidget *check, *vbox, *label;
- char *text = g_strdup_printf (" <small>%s</small>", _("This will make Spamassasin more reliable, but slower"));
+ char *text = g_strdup_printf (" <small>%s</small>", _("This will make SpamAssassin more reliable, but slower"));
guint i = ((GtkTable *)data->parent)->nrows;
if (data->old)
Modified: trunk/plugins/sa-junk-plugin/org-gnome-sa-junk-plugin.eplug.xml
==============================================================================
--- trunk/plugins/sa-junk-plugin/org-gnome-sa-junk-plugin.eplug.xml (original)
+++ trunk/plugins/sa-junk-plugin/org-gnome-sa-junk-plugin.eplug.xml Thu Mar 13 11:24:56 2008
@@ -7,7 +7,7 @@
<author name="Vivek Jain" email="jvivek novell com"/>
<hook class="org.gnome.evolution.mail.junk:1.0">
<group id="EMJunk" >
- <item name="Spamassasin"
+ <item name="SpamAssassin"
check_junk="em_junk_sa_check_junk"
report_junk="em_junk_sa_report_junk"
report_non_junk="em_junk_sa_report_non_junk"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]