From 9ead9ce3bdd62c452f086fe60900d97ad3009b71 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 19 May 2020 23:44:35 +0200 Subject: sendto: Fix evolution command for sending an email --- sendto/plugins/emailclient/emailclient.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sendto/plugins') diff --git a/sendto/plugins/emailclient/emailclient.c b/sendto/plugins/emailclient/emailclient.c index c116933..189ceb8 100644 --- a/sendto/plugins/emailclient/emailclient.c +++ b/sendto/plugins/emailclient/emailclient.c @@ -108,8 +108,12 @@ init (NstPlugin *plugin) g_strfreev (strv); } else if (strstr (mail_cmd, "sylpheed") || strstr (mail_cmd, "claws")) type = MAILER_SYLPHEED; - else if (strstr (mail_cmd, "anjal")) + else if (strstr (mail_cmd, "anjal") || strstr (mail_cmd, "evolution")) { + char *mail_cmd_aux = mail_cmd; + mail_cmd = g_strdup_printf ("%s %%s", mail_cmd_aux); + g_free (mail_cmd_aux); type = MAILER_EVO; + } } if (mail_cmd == NULL) -- cgit v1.2.1