about summary refs log tree commit diff
path: root/mshow.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-24 22:11:52 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-24 22:11:52 +0200
commit1ab7bf9651302d4228a2353230522c8750da90d9 (patch)
tree57f7544c1897980106e8ef0a9cc0ccb966066fa1 /mshow.c
parent53b8c859acfc39c56791714e91cee576b47e43d2 (diff)
downloadmblaze-1ab7bf9651302d4228a2353230522c8750da90d9.tar.gz
mblaze-1ab7bf9651302d4228a2353230522c8750da90d9.tar.xz
mblaze-1ab7bf9651302d4228a2353230522c8750da90d9.zip
mshow: decode headers in default view
Diffstat (limited to 'mshow.c')
-rw-r--r--mshow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mshow.c b/mshow.c
index a5c078c..1fdbbdd 100644
--- a/mshow.c
+++ b/mshow.c
@@ -492,8 +492,10 @@ show(char *file)
 				*n = 0;
 			v = blaze822_chdr(msg, h);
 			if (v) {
+				char d[4096];
+				blaze822_decode_rfc2047(d, v, sizeof d, "UTF-8");
 				printhdr(h);
-				printf(": %s\n", v);
+				printf(": %s\n", d);
 			}
 			if (n) {
 				*n = ':';