mshow: decode headers of message/rfc822 parts

pull/1/merge
Christian Neukirchen 8 years ago
parent 2b81707c51
commit 93842048c6

@ -211,11 +211,12 @@ nofilter:
} else if (strncmp(ct, "message/rfc822", 14) == 0) { } else if (strncmp(ct, "message/rfc822", 14) == 0) {
struct message *imsg = blaze822_mem(body, bodylen); struct message *imsg = blaze822_mem(body, bodylen);
char *h = 0; char *h = 0;
if (imsg) { while (imsg && (h = blaze822_next_header(imsg, h))) {
while ((h = blaze822_next_header(imsg, h))) char d[4096];
printf("%s\n", h); blaze822_decode_rfc2047(d, h, sizeof d, "UTF-8");
printf("\n"); printhdr(d);
} }
printf("\n");
} else if (strncmp(ct, "multipart/", 10) == 0) { } else if (strncmp(ct, "multipart/", 10) == 0) {
; ;
} else { } else {

Loading…
Cancel
Save