From 0ab6dc569c130a4dec50efd56c2512476ea06994 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Thu, 29 Jan 2009 16:08:17 +0000 Subject: Handle empty messages well. 2009-01-29 Srinivasa Ragavan * em-format.c: (em_format_format_text): Handle empty messages well. svn path=/trunk/; revision=37175 --- mail/em-format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/em-format.c') diff --git a/mail/em-format.c b/mail/em-format.c index 4af272a3ff..048cf6525d 100644 --- a/mail/em-format.c +++ b/mail/em-format.c @@ -1124,7 +1124,7 @@ em_format_format_text(EMFormat *emf, CamelStream *stream, CamelDataWrapper *dw) camel_object_unref(filter_stream); camel_stream_reset (mem_stream); - if (max == -1 || size < (max * 1024) || emf->composer) { + if (max == -1 || size == -1 || size < (max * 1024) || emf->composer) { camel_stream_write_to_stream(mem_stream, (CamelStream *)stream); camel_stream_flush((CamelStream *)stream); } else { -- cgit v1.2.3