mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-03 15:40:32 +00:00
show: better iterator
This commit is contained in:
parent
d3080b92d3
commit
5e149c5732
4
show.c
4
show.c
@ -35,12 +35,12 @@ show(char *file)
|
||||
if (!msg)
|
||||
return;
|
||||
|
||||
char fields[] = "\0from:\0subject:\0to:\0cc:\0date:\0";
|
||||
char fields[] = "\0from:\0subject:\0to:\0cc:\0date:\0\0";
|
||||
|
||||
// XXX custom field formatting
|
||||
|
||||
char *f, *v;
|
||||
for (f = fields; f < fields + sizeof fields; f += strlen(f+1)+1) {
|
||||
for (f = fields; f[1]; f += strlen(f+1)+1) {
|
||||
v = blaze822_hdr_(msg, f, strlen(f+1)+1);
|
||||
if (v) {
|
||||
printhdr(f+1);
|
||||
|
Loading…
Reference in New Issue
Block a user