18589N/Acommit ef7c18e2f68d5b175945f60eff2137a4850a6a93
18589N/AAuthor: Halton Huo <halton.huo@sun.com>
18589N/ADate: Mon Mar 29 17:14:02 2010 +0800
18589N/A@@ -81,6 +81,8 @@ static gboolean
18589N/A g_print ("Init evolution plugin\n");
18589N/A@@ -88,9 +90,14 @@ init (NstPlugin *plugin)
18589N/A bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
18589N/A client = gconf_client_get_default ();
18589N/A- mail_cmd = gconf_client_get_string (client, DEFAULT_MAILTO, NULL);
18589N/A+ str = gconf_client_get_string (client, DEFAULT_MAILTO, NULL);
18589N/A+ arrstr = g_strsplit (str, " ", -1);
18589N/A+ mail_cmd = g_strdup (arrstr [0]);
18589N/A if (mail_cmd == NULL || *mail_cmd == '\0') {
18589N/A@@ -339,7 +346,7 @@ send_files (NstPlugin *plugin,
18589N/A get_evo_mailto (contact_widget, mailto, file_list);
18589N/A- cmd = g_strdup_printf (mail_cmd, mailto->str);
18589N/A+ cmd = g_strdup_printf ("%s %s", mail_cmd, mailto->str);
18589N/A g_message ("Mailer type: %d", type);