Borrow reply name from sender name

This commit is contained in:
M66B 2022-03-03 12:28:59 +01:00
parent 81860958c4
commit 374701f396
1 changed files with 1 additions and 4 deletions

View File

@ -3968,11 +3968,8 @@ class Core {
message.reply != null && message.reply.length == 1) {
InternetAddress from = (InternetAddress) message.from[0];
InternetAddress reply = (InternetAddress) message.reply[0];
String from_domain = UriHelper.getEmailDomain(from.getAddress());
String reply_domain = UriHelper.getEmailDomain(reply.getAddress());
if (TextUtils.isEmpty(reply.getPersonal()) &&
Objects.equals(from_domain, reply_domain))
Objects.equals(from.getAddress(), reply.getAddress()))
reply.setPersonal(from.getPersonal());
}