aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-format-html-display.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 1210d6a781..c2010278f7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-16 Srinivasa Ragavan <sragavan@novell.com>
+
+ * em-format-html-display.c (efhd_attachment_button): Sets the filename
+ in the attachment structure instead of the part
+
2005-08-15 Christian Kellner <gicmo@gnome.org>
* mail-send-recv.c: (get_folders): Honour the check_all
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 6221294998..e0a309d90f 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -1436,7 +1436,7 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje
if (!file) {
file = "attachment.dat";
- camel_mime_part_set_filename(new->body, file);
+ new->file_name = g_strdup(file);
}
tmp = g_hash_table_lookup (efhd->priv->files, file);
@@ -1454,9 +1454,8 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje
g_free (tmp_file);
g_hash_table_insert (efhd->priv->files, g_strdup(file), GUINT_TO_POINTER(count));
- camel_mime_part_set_filename(new->body, new_file);
-
- g_free(new_file);
+ g_free (new->file_name);
+ new->file_name = new_file;
} else {
g_hash_table_insert (efhd->priv->files, g_strdup(file), GUINT_TO_POINTER(1));
}