Skip personal name equal to email address

pull/194/head
M66B 4 years ago
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…
Cancel
Save