[nautilus-sendto] Fix balsa command-line
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-sendto] Fix balsa command-line
- Date: Fri, 30 Oct 2009 14:06:37 +0000 (UTC)
commit e11b71ad0ec0d77982dbd3bdc993117c0030e13f
Author: Gabor Karsay <gabor karsay gmx at>
Date: Fri Oct 30 14:04:11 2009 +0000
Fix balsa command-line
Cater for the "--compose" flag already being added to the command-line
in default-applications.
Use --attach to add files, as mentioned on the command-line.
https://bugzilla.gnome.org/show_bug.cgi?id=599393
src/plugins/evolution/evolution.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/evolution/evolution.c b/src/plugins/evolution/evolution.c
index 0af4579..c4af5c5 100644
--- a/src/plugins/evolution/evolution.c
+++ b/src/plugins/evolution/evolution.c
@@ -242,7 +242,8 @@ get_balsa_mailto (GtkWidget *contact_widget, GString *mailto, GList *file_list)
{
GList *l;
- g_string_append (mailto, "--compose=");
+ if (strstr (mail_cmd, " -m ") == NULL && strstr (mail_cmd, " --compose=") == NULL)
+ g_string_append (mailto, " --compose=");
if (email != NULL) {
if (name != NULL)
g_string_append_printf (mailto, "\""CONTACT_FORMAT"\"", name, email);
@@ -257,9 +258,9 @@ get_balsa_mailto (GtkWidget *contact_widget, GString *mailto, GList *file_list)
else
g_string_append (mailto, "\"\"");
}
- g_string_append_printf (mailto," attach=\"%s\"", (char *)file_list->data);
+ g_string_append_printf (mailto," --attach=\"%s\"", (char *)file_list->data);
for (l = file_list->next ; l; l=l->next){
- g_string_append_printf (mailto," attach=\"%s\"", (char *)l->data);
+ g_string_append_printf (mailto," --attach=\"%s\"", (char *)l->data);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]