mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 20dae518c4abaac33226b5e8ae85d0de1a1b226e
parent 22e406514c70f881f132d0cc9bd04a4dbade3188
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Mon,  8 Aug 2016 16:13:51 +0200

mscan: oneline: fix flag fiddling

Diffstat:
mscan.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/mscan.c b/mscan.c @@ -252,8 +252,10 @@ oneline(char *file) } struct message *msg = blaze822(file); - char *flags = msg ? strstr(file, ":2,") : ""; - if (*flags) + char *flags = msg ? strstr(file, ":2,") : 0; + if (!flags) + flags = ""; + else flags += 3; int wleft = cols;