magrep: search message flags if header is empty

This commit is contained in:
Christian Neukirchen 2016-08-02 16:02:46 +02:00
parent c99944cbc5
commit 56e89c9a55

View File

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