Suppress delivered=to

This commit is contained in:
M66B 2021-04-25 12:52:19 +02:00
parent bdf4e8bef5
commit 344d826325
1 changed files with 18 additions and 0 deletions

View File

@ -2377,6 +2377,15 @@ class Core {
message.ui_ignored = false;
message.ui_browsed = false;
if (message.deliveredto != null)
try {
Address deliveredto = new InternetAddress(message.deliveredto);
if (MessageHelper.equalEmail(new Address[]{deliveredto}, message.to))
message.deliveredto = null;
} catch (AddressException ex) {
Log.w(ex);
}
if (MessageHelper.equalEmail(message.submitter, message.from))
message.submitter = null;
@ -3210,6 +3219,15 @@ class Core {
if (message.flagged)
message.color = color;
if (message.deliveredto != null)
try {
Address deliveredto = new InternetAddress(message.deliveredto);
if (MessageHelper.equalEmail(new Address[]{deliveredto}, message.to))
message.deliveredto = null;
} catch (AddressException ex) {
Log.w(ex);
}
if (MessageHelper.equalEmail(message.submitter, message.from))
message.submitter = null;