diff options
| author | Sam Varshavchik | 2018-07-28 20:30:26 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2018-07-28 20:30:26 -0400 |
| commit | fcbfc271d28b6c7eb491209a442bca23ecb647dc (patch) | |
| tree | 2f165a261d4f1038bd268681a0d224d0a9264c20 /sqwebmail/msg2html.c | |
| parent | dbe3a66c244380067a1f22cd3368b1233fac78df (diff) | |
| download | courier-libs-fcbfc271d28b6c7eb491209a442bca23ecb647dc.tar.bz2 | |
sqwebmail: format UTF8 delivery status notifications
Diffstat (limited to 'sqwebmail/msg2html.c')
| -rw-r--r-- | sqwebmail/msg2html.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sqwebmail/msg2html.c b/sqwebmail/msg2html.c index 137cbae..a3025ae 100644 --- a/sqwebmail/msg2html.c +++ b/sqwebmail/msg2html.c @@ -1277,8 +1277,9 @@ off_t dummy; print_header_uc(info, header); printf("<td><span class=\"message-rfc822-header-contents\">"); + /* showmsgrfc822_addressheader(value); */ - printf("%s", value); + html_escape(value, strlen(value)); printf("</span></td></tr>\n"); free(header); } @@ -2989,14 +2990,14 @@ const char *content_type, *dummy; return (0); if (strcmp(content_type, "text/plain") == 0 || - strcmp(content_type, "text/rfc822-headers") == 0 || + rfc2045_message_headers_content_type(content_type) || strcmp(content_type, "text/x-gpg-output") == 0) return ( &showtextplain ); - if (strcmp(content_type, "message/delivery-status") == 0) + if (rfc2045_delivery_status_content_type(content_type)) return ( &showdsn); if (info->showhtml && strcmp(content_type, "text/html") == 0) return ( &showtexthtml ); - if (strcmp(content_type, "message/rfc822") == 0) + if (rfc2045_message_content_type(content_type)) return ( &showmsgrfc822); return (0); |
