mirror of https://github.com/M66B/FairEmail.git
Skip personal name equal to email address
This commit is contained in:
parent
a107e4e62d
commit
0652c4d810
|
@ -1236,6 +1236,14 @@ public class MessageHelper {
|
||||||
if (TextUtils.isEmpty(email) && TextUtils.isEmpty(personal))
|
if (TextUtils.isEmpty(email) && TextUtils.isEmpty(personal))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (personal != null && personal.equals(email))
|
||||||
|
try {
|
||||||
|
iaddress.setPersonal(null);
|
||||||
|
personal = null;
|
||||||
|
} catch (UnsupportedEncodingException ex) {
|
||||||
|
Log.w(ex);
|
||||||
|
}
|
||||||
|
|
||||||
email = decodeMime(email);
|
email = decodeMime(email);
|
||||||
if (!Helper.isSingleScript(email))
|
if (!Helper.isSingleScript(email))
|
||||||
email = punyCode(email);
|
email = punyCode(email);
|
||||||
|
|
Loading…
Reference in New Issue