From c8315276d496d50dbf077eb9bc3da2e6aabee50a Mon Sep 17 00:00:00 2001 From: Veerapuram Varadhan Date: Tue, 31 Jul 2007 20:08:58 +0000 Subject: Do not show "on-behalf-of" band for all messages, instead check for * Do not show "on-behalf-of" band for all messages, instead check for * X-Evolution-Mail-From-Delegate header. svn path=/trunk/; revision=33916 --- mail/em-format-html.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mail/em-format-html.c') diff --git a/mail/em-format-html.c b/mail/em-format-html.c index e999e54953..2fbe9932c2 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -1777,6 +1777,7 @@ efh_format_headers(EMFormatHTML *efh, CamelStream *stream, CamelMedium *part) char *face_header_value = NULL; int face_header_len = 0; char *header_sender = NULL, *header_from = NULL, *name; + gboolean mail_from_delegate = FALSE; ct = camel_mime_part_get_content_type((CamelMimePart *)part); charset = camel_content_type_param (ct, "charset"); @@ -1787,7 +1788,6 @@ efh_format_headers(EMFormatHTML *efh, CamelStream *stream, CamelMedium *part) "\n" "", efh->text_colour & 0xffffff); - header = ((CamelMimePart *)part)->headers; while (header) { @@ -1824,8 +1824,11 @@ efh_format_headers(EMFormatHTML *efh, CamelStream *stream, CamelMedium *part) g_string_free(html, FALSE); g_free(name); } + + if (!g_ascii_strcasecmp (header->name, "X-Evolution-Mail-From-Delegate")) + mail_from_delegate = TRUE; - if (header_sender && header_from) { + if (header_sender && header_from && mail_from_delegate) { camel_stream_printf(stream, "
"); camel_stream_printf(stream, "
"); /* To translators: This message suggests to the receipients that the sender of the mail is -- cgit