[nautilus-sendto] Fix thunderbird's mailto command
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sendto] Fix thunderbird's mailto command
- Date: Wed, 9 Jun 2010 16:30:13 +0000 (UTC)
commit 52ed3fb5981cddcd84d787912fa548043ff568da
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]