From 33d3b2f0a08c87d303244ca2fec06e040e295327 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 11 Jan 2008 20:56:17 +0000 Subject: Patch by Jean-Christophe BEGUE to fix bug #329692. 2008-01-11 Jeffrey Stedfast 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. svn path=/trunk/; revision=34802 --- widgets/misc/ChangeLog | 8 ++++++++ widgets/misc/e-attachment.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'widgets') 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 + + 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 ** 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; -- cgit