Fixes #4666. Ignoring email case.