lint
imap: fix permFlags check after flag case normalization change