1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00

Case insensitive canonical email addresses

This commit is contained in:
M66B 2019-03-08 09:32:31 +00:00
parent f0e8e6211b
commit c4e6c3f27f
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ public interface DaoIdentity {
@Query("SELECT * FROM identity WHERE id = :id")
EntityIdentity getIdentity(long id);
@Query("SELECT * FROM identity WHERE account = :account AND email = :email")
@Query("SELECT * FROM identity WHERE account = :account AND email = :email COLLATE NOCASE")
EntityIdentity getIdentity(long account, String email);
@Query("SELECT COUNT(*) FROM identity WHERE synchronize")

View file

@ -651,7 +651,7 @@ public class Helper {
if (extra.length > 0)
a[0] = extra[0];
}
return TextUtils.join("@", a);
return TextUtils.join("@", a).toLowerCase();
}
static void writeText(File file, String content) throws IOException {