Commit 0181a3ec authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

Make email addresses for incoming emails case-insensitive

Quoting RFC: "However, exploiting the case sensitivity of mailbox
local-parts impedes interoperability and is discouraged."

Most of the existing software is threating the local part (i.e. the
thing before @) of emails as case insensitive.

Some people use different capitalization at different times, e.g. with git-send-email and with their regular client.

To mitigate this Person's email is now case insensitive for the sake of
searching and normalized to lower case pre_save.

It's not perfect by any means and still can be bypassed by doing
.update() on the QuerySet, but will work in most of the usual cases.

Tests and migration deduplicating existing entries are provided.

Fixes: #32Signed-off-by: default avatarArkadiusz Hiler <>
parent f4f47a4e
Pipeline #177195 passed with stage
in 1 minute and 31 seconds