diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2005-03-18 02:59:40 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2005-03-18 02:59:40 +0800 |
commit | bc8b0ad9df8e8cd919b993b38a51fa114497300a (patch) | |
tree | 2d143e2bad7ceb6bfbe39427f35cbc12e45a14db | |
parent | f316821f46181b2c5a9a9902b49a1c519828a6e2 (diff) | |
download | gsoc2013-evolution-bc8b0ad9df8e8cd919b993b38a51fa114497300a.tar.gz gsoc2013-evolution-bc8b0ad9df8e8cd919b993b38a51fa114497300a.tar.zst gsoc2013-evolution-bc8b0ad9df8e8cd919b993b38a51fa114497300a.zip |
Don't show multiple "Mailer" headers even if multiple
2005-03-16 Jeffrey Stedfast <fejj@novell.com>
* em-format-html.c (efh_format_headers): Don't show multiple
"Mailer" headers even if multiple x-mailer/user-agent/whatever
headers exist. Fixes bug #70394.
svn path=/trunk/; revision=29052
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/em-format-html.c | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 28917e7f64..aaee376408 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2005-03-16 Jeffrey Stedfast <fejj@novell.com> + + * em-format-html.c (efh_format_headers): Don't show multiple + "Mailer" headers even if multiple x-mailer/user-agent/whatever + headers exist. Fixes bug #70394. + 2005-03-16 Not Zed <NotZed@Ximian.com> ** See bug #73363 @@ -29,6 +35,7 @@ * em-format-hook.c (emfh_format_format): if we are disabled, don't invoke handler, try to invoke old handler if there was one. +>>>>>>> 1.3608 2005-03-10 Not Zed <NotZed@Ximian.com> ** See bug #73293 diff --git a/mail/em-format-html.c b/mail/em-format-html.c index 9126bdd337..3125e32b4e 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -1639,6 +1639,8 @@ efh_format_headers(EMFormatHTML *efh, CamelStream *stream, CamelMedium *part) header = header->next; } } else { + int mailer_shown = FALSE; + while (h->next) { int mailer; @@ -1646,13 +1648,14 @@ efh_format_headers(EMFormatHTML *efh, CamelStream *stream, CamelMedium *part) mailer = !g_ascii_strcasecmp (h->name, "X-Evolution-Mailer"); while (header) { - if (mailer && (!g_ascii_strcasecmp (header->name, "X-Mailer") || + if (!mailer_shown && mailer && (!g_ascii_strcasecmp (header->name, "X-Mailer") || !g_ascii_strcasecmp (header->name, "User-Agent") || !g_ascii_strcasecmp (header->name, "X-Newsreader"))) { struct _camel_header_raw xmailer; xmailer.name = "X-Evolution-Mailer"; xmailer.value = header->value; + mailer_shown = TRUE; efh_format_header (emf, stream, part, &xmailer, h->flags, charset); if (strstr(header->value, "Evolution")) |