aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/em-format-html.c4
2 files changed, 10 insertions, 2 deletions
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 <pebolle@tiscali.nl>
+
+ ** 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 <mbarnes@redhat.com>
** 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);