[nautilus-sendto/gnome-2-28] Fix thunderbird's mailto command
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sendto/gnome-2-28] Fix thunderbird's mailto command
- Date: Wed, 9 Jun 2010 16:30:08 +0000 (UTC)
commit 1b0c5c7d2244e077d55322a297cdee3e061e9516
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jun 9 17:29:08 2010 +0100
Fix thunderbird's mailto command
Seeing as it's the only mailer to be such a pain.
https://bugzilla.gnome.org/show_bug.cgi?id=614222
src/plugins/evolution/evolution.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/evolution/evolution.c b/src/plugins/evolution/evolution.c
index a25ade1..8e1dd0c 100644
--- a/src/plugins/evolution/evolution.c
+++ b/src/plugins/evolution/evolution.c
@@ -99,9 +99,18 @@ init (NstPlugin *plugin)
/* Find what the default mailer is */
if (strstr (mail_cmd, "balsa"))
type = MAILER_BALSA;
- else if (strstr (mail_cmd, "thunder") || strstr (mail_cmd, "seamonkey"))
+ else if (strstr (mail_cmd, "thunder") || strstr (mail_cmd, "seamonkey")) {
+ char **strv;
+
type = MAILER_THUNDERBIRD;
- else if (strstr (mail_cmd, "sylpheed") || strstr (mail_cmd, "claws"))
+
+ /* Thunderbird sucks, see
+ * https://bugzilla.gnome.org/show_bug.cgi?id=614222 */
+ strv = g_strsplit (mail_cmd, " ", -1);
+ g_free (mail_cmd);
+ mail_cmd = g_strdup_printf ("%s %%s", strv[0]);
+ g_strfreev (strv);
+ } else if (strstr (mail_cmd, "sylpheed") || strstr (mail_cmd, "claws"))
type = MAILER_SYLPHEED;
else if (strstr (mail_cmd, "anjal"))
type = MAILER_EVO;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]