From 0a7017c1a673ec61479db348d7ff7452b19f664e Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Sun, 26 Nov 2006 18:30:29 +0000 Subject: Fix for bug #337439 DoS attach with large emails 2006-11-26 Srinivasa Ragavan * Fix for bug #337439 DoS attach with large emails svn path=/trunk/; revision=33024 --- mail/em-utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mail/em-utils.c') diff --git a/mail/em-utils.c b/mail/em-utils.c index b8669b2c7f..d8d0109fa7 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -1605,6 +1605,7 @@ em_utils_part_to_html(CamelMimePart *part, ssize_t *len, EMFormat *source) camel_stream_mem_set_byte_array (mem, buf); emfq = em_format_quote_new(NULL, (CamelStream *)mem, 0); + ((EMFormat *) emfq)->composer = TRUE; em_format_set_session((EMFormat *)emfq, session); if (source) { /* copy over things we can, other things are internal, perhaps need different api than 'clone' */ @@ -1653,6 +1654,7 @@ em_utils_message_to_html(CamelMimeMessage *message, const char *credits, guint32 camel_stream_mem_set_byte_array (mem, buf); emfq = em_format_quote_new(credits, (CamelStream *)mem, flags); + ((EMFormat *) emfq)->composer = TRUE; em_format_set_session((EMFormat *)emfq, session); if (!source) { -- cgit