+2007-11-19 [colin] 3.1.0cvs6
+
+ * src/compose.c
+ Make strings a bit better when attaching
+ from mailto: URIs
+
2007-11-19 [colin] 3.1.0cvs5
* src/common/utils.c
( cvs diff -u -r 1.60.2.105 -r 1.60.2.106 src/addressbook.c; cvs diff -u -r 1.18.2.11 -r 1.18.2.12 src/addressbook.h; cvs diff -u -r 1.14.2.44 -r 1.14.2.45 src/editaddress.c; cvs diff -u -r 1.11.2.17 -r 1.11.2.18 src/editgroup.c; cvs diff -u -r 1.1.2.6 -r 1.1.2.7 src/addrduplicates.c; ) > 3.1.0cvs3.patchset
( cvs diff -u -r 1.382.2.422 -r 1.382.2.423 src/compose.c; cvs diff -u -r 1.50.2.44 -r 1.50.2.45 src/compose.h; ) > 3.1.0cvs4.patchset
( cvs diff -u -r 1.36.2.125 -r 1.36.2.126 src/common/utils.c; ) > 3.1.0cvs5.patchset
+( cvs diff -u -r 1.382.2.423 -r 1.382.2.424 src/compose.c; ) > 3.1.0cvs6.patchset
}
if (attach) {
- gint i = 0;
+ gint i = 0, att = 0;
+ gchar *warn_files = NULL;
while (attach[i] != NULL) {
gchar *utf8_filename = conv_filename_to_utf8(attach[i]);
if (utf8_filename) {
if (compose_attach_append(compose, attach[i], utf8_filename, NULL)) {
- alertpanel_notice(_("The file '%s' has been attached."), utf8_filename);
- }
+ gchar *tmp = g_strdup_printf("%s%s\n",
+ warn_files?warn_files:"",
+ utf8_filename);
+ g_free(warn_files);
+ warn_files = tmp;
+ att++;
+ }
g_free(utf8_filename);
} else {
alertpanel_error(_("Couldn't attach a file (charset conversion failed)."));
}
i++;
}
+ if (warn_files) {
+ alertpanel_notice(ngettext(
+ "The following file has been attached: \n%s",
+ "The following files have been attached: \n%s", att), warn_files);
+ g_free(warn_files);
+ }
}
g_free(to);
g_free(cc);