mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Search identity on lower case email address
This commit is contained in:
parent
663dfd0ea0
commit
d988f43e0b
2 changed files with 9 additions and 3 deletions
|
@ -401,8 +401,11 @@ public class FragmentIdentity extends FragmentEx {
|
|||
if (TextUtils.isEmpty(password) && !insecure)
|
||||
throw new IllegalArgumentException(getContext().getString(R.string.title_no_password));
|
||||
|
||||
email = email.toLowerCase();
|
||||
if (TextUtils.isEmpty(replyto))
|
||||
replyto = null;
|
||||
else
|
||||
replyto = replyto.toLowerCase();
|
||||
if (Color.TRANSPARENT == color)
|
||||
color = null;
|
||||
|
||||
|
|
|
@ -1874,9 +1874,12 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
EntityIdentity identity = null;
|
||||
if (tos != null && tos.length > 0) {
|
||||
String to = ((InternetAddress) tos[0]).getAddress();
|
||||
identity = db.identity().getIdentity(folder.account, to);
|
||||
if (identity == null)
|
||||
identity = db.identity().getIdentity(folder.account, Helper.canonicalAddress(to));
|
||||
if (!TextUtils.isEmpty(to)) {
|
||||
to = to.toLowerCase();
|
||||
identity = db.identity().getIdentity(folder.account, to);
|
||||
if (identity == null)
|
||||
identity = db.identity().getIdentity(folder.account, Helper.canonicalAddress(to));
|
||||
}
|
||||
}
|
||||
|
||||
message = new EntityMessage();
|
||||
|
|
Loading…
Reference in a new issue