Skip to content

Commit

Permalink
mboxlist: search everything with mb_category == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Aug 15, 2016
1 parent 11772bb commit d15fcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imap/mboxlist.c
Expand Up @@ -2276,7 +2276,7 @@ static int find_p(void *rockp,
goto nomatch;
}

if (mbname_category(rock->mbname, rock->namespace, rock->userid) != rock->mb_category)
if (rock->mb_category && mbname_category(rock->mbname, rock->namespace, rock->userid) != rock->mb_category)
goto nomatch;

/* NOTE: this will all be cleaned up to be much more efficient sooner or later, with
Expand Down

0 comments on commit d15fcce

Please sign in to comment.