use case insensitive comparing

fixes bug when connecting to dbmail imap server