mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 10:33:41 +02:00
Align with smtp.mailfrom
This commit is contained in:
@@ -2610,12 +2610,14 @@ public class MessageHelper {
|
||||
return null;
|
||||
}
|
||||
|
||||
boolean isAligned(Context context, List<String> signers, Address[] return_path, Address[] from) {
|
||||
boolean isAligned(Context context, List<String> signers, Address[] return_path, Address[] smtp_from, Address[] from) {
|
||||
List<Address> envelop = new ArrayList<>();
|
||||
if (return_path != null)
|
||||
envelop.addAll(Arrays.asList(return_path));
|
||||
if (from != null)
|
||||
envelop.addAll(Arrays.asList(from));
|
||||
if (smtp_from != null)
|
||||
envelop.addAll(Arrays.asList(smtp_from));
|
||||
for (String signer : signers) {
|
||||
for (Address a : envelop) {
|
||||
String domain = UriHelper.getEmailDomain(((InternetAddress) a).getAddress());
|
||||
|
||||
Reference in New Issue
Block a user