mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Use avatar of original sender when forwarded
This commit is contained in:
@@ -409,6 +409,19 @@ public class EntityMessage implements Serializable {
|
||||
return notJunk;
|
||||
}
|
||||
|
||||
boolean isForwarder() {
|
||||
if (from == null || from.length != 1)
|
||||
return false;
|
||||
if (submitter == null || submitter.length != 1)
|
||||
return false;
|
||||
String email = ((InternetAddress) from[0]).getAddress();
|
||||
String domain = UriHelper.getEmailDomain(email);
|
||||
return "duck.com".equals(domain) ||
|
||||
"simplelogin.co".equals(domain) ||
|
||||
"mozmail.com".equals(domain) ||
|
||||
"anonaddy.me".equals(domain);
|
||||
}
|
||||
|
||||
String[] checkFromDomain(Context context) {
|
||||
return MessageHelper.equalRootDomain(context, from, smtp_from);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user