mblaze

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

commit 56e89c9a557cd1182001a8b1130d7f10f40cc96a
parent c99944cbc52cdd0770d3e1851e7a2ddbd0fe06c1
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Tue,  2 Aug 2016 16:02:46 +0200

magrep: search message flags if header is empty

Diffstat:
magrep.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/magrep.c b/magrep.c @@ -40,6 +40,13 @@ match(char *file, char *s) void magrep(char *file) { + if (!*header) { + char *flags = strstr(file, ":2,"); + if (flags) + match(file, flags+3); + return; + } + char *filename = file; while (*filename == ' ' || *filename == '\t') filename++;