mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-11 06:33:29 +00:00
Skip personal name equal to email address
This commit is contained in:
parent
a107e4e62d
commit
0652c4d810
1 changed files with 8 additions and 0 deletions
|
@ -1236,6 +1236,14 @@ public class MessageHelper {
|
|||
if (TextUtils.isEmpty(email) && TextUtils.isEmpty(personal))
|
||||
continue;
|
||||
|
||||
if (personal != null && personal.equals(email))
|
||||
try {
|
||||
iaddress.setPersonal(null);
|
||||
personal = null;
|
||||
} catch (UnsupportedEncodingException ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
|
||||
email = decodeMime(email);
|
||||
if (!Helper.isSingleScript(email))
|
||||
email = punyCode(email);
|
||||
|
|
Loading…
Add table
Reference in a new issue