From 6f78aa98cadc062f64d738554e7a791f07d8ca5f Mon Sep 17 00:00:00 2001 From: Suman Manjunath Date: Mon, 4 Aug 2008 03:27:01 +0000 Subject: Patch from Paul Bolle : Fixes bug #537088 (Message headers aren't displayed for some e-mails). svn path=/trunk/; revision=35896 --- mail/ChangeLog | 8 ++++++++ mail/em-format-html.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 8a6219bfb3..87086beb98 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2008-08-04 Paul Bolle + + ** Fixes bug #537088 + + * em-format-html.c: (efh_format_headers): Break out of the loop rather + that return from this function when running into an empty From: or + Sender: header. + 2008-08-01 Matthew Barnes ** Fixes part of bug #514006 diff --git a/mail/em-format-html.c b/mail/em-format-html.c index 1d094773dc..f2c0a102b8 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -1868,7 +1868,7 @@ efh_format_headers(EMFormatHTML *efh, CamelStream *stream, CamelMedium *part) GString *html; if (!(addrs = camel_header_address_decode (header->value, hdr_charset))) - return; + break; html = g_string_new(""); name = efh_format_address(efh, html, addrs, header->name); @@ -1883,7 +1883,7 @@ efh_format_headers(EMFormatHTML *efh, CamelStream *stream, CamelMedium *part) GString *html; if (!(addrs = camel_header_address_decode (header->value, hdr_charset))) - return; + break; html = g_string_new(""); name = efh_format_address(efh, html, addrs, header->name); -- cgit