hdr: rfc2047 decode headers

pull/1/merge
Christian Neukirchen 8 years ago
parent 54b93c8f63
commit 8c7e822d88

@ -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

@ -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

Loading…
Cancel
Save