aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/misc/ChangeLog8
-rw-r--r--widgets/misc/e-attachment.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 2261a7ba4f..c87ee04d38 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,11 @@
+2008-01-11 Jeffrey Stedfast <fejj@novell.com>
+
+ Patch by Jean-Christophe BEGUE to fix bug #329692.
+
+ * e-attachment.c (e_attachment_new_from_mime_part): Get the
+ content size of the MIME part by calling the new
+ camel_mime_part_get_content_size() function.
+
2008-01-11 Milan Crha <mcrha@redhat.com>
** Fix for bug #488213
diff --git a/widgets/misc/e-attachment.c b/widgets/misc/e-attachment.c
index 8aff418feb..911672098d 100644
--- a/widgets/misc/e-attachment.c
+++ b/widgets/misc/e-attachment.c
@@ -600,7 +600,7 @@ e_attachment_new_from_mime_part (CamelMimePart *part)
new->body = part;
new->guessed_type = FALSE;
new->is_available_local = TRUE;
- new->size = 0;
+ new->size = camel_mime_part_get_content_size (part);
new->file_name = g_strdup (camel_mime_part_get_filename(part));
return new;