hdr: rfc2047 decode headers

This commit is contained in:
Christian Neukirchen 2016-07-15 16:51:43 +02:00
parent 54b93c8f63
commit 8c7e822d88
2 changed files with 7 additions and 3 deletions

View File

@ -6,7 +6,7 @@ all: $(ALL)
scan: blaze822.o scan.o rfc2047.o scan: blaze822.o scan.o rfc2047.o
thread: blaze822.o thread.o thread: blaze822.o thread.o
hdr: blaze822.o hdr.o hdr: blaze822.o hdr.o rfc2047.o
show: blaze822.o show.o show: blaze822.o show.o
list: list.o list: list.o
next: next.o next: next.o

8
hdr.c
View File

@ -54,8 +54,12 @@ headerall(char *file)
return; return;
char *h = 0; char *h = 0;
while ((h = blaze822_next_header(msg, h))) while ((h = blaze822_next_header(msg, h))) {
printhdr(h); char d[4096];
blaze822_decode_rfc2047(d, h, sizeof d, "UTF-8");
printhdr(d);
}
} }
int int