diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-06-09 17:29:08 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2010-06-09 17:30:01 +0100 |
commit | 52ed3fb5981cddcd84d787912fa548043ff568da (patch) | |
tree | ed2d9412fbce4cd9443d70c4a9ba8845252c0074 | |
parent | 90859ca39bb877b665bb99da73c47569dc6a55b0 (diff) | |
download | nautilus-sendto-52ed3fb5981cddcd84d787912fa548043ff568da.tar.gz |
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
-rw-r--r-- | 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; |