1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Apply native DKIM

This commit is contained in:
M66B 2023-03-24 08:17:24 +01:00
parent 7dd26154db
commit 5e55ed50bf

View file

@ -3201,8 +3201,13 @@ class Core {
message.tls = helper.getTLS();
message.dkim = MessageHelper.getAuthentication("dkim", authentication);
if (Boolean.TRUE.equals(message.dkim))
message.dkim = helper.checkDKIMRequirements();
if (Boolean.TRUE.equals(message.dkim)) {
if (native_dkim && !BuildConfig.PLAY_STORE_RELEASE) {
if (TextUtils.isEmpty(message.signedby))
message.dkim = false;
} else
message.dkim = helper.checkDKIMRequirements();
}
message.spf = MessageHelper.getAuthentication("spf", authentication);
if (message.spf == null && helper.getSPF())
message.spf = true;
@ -4554,11 +4559,6 @@ class Core {
db.endTransaction();
}
if (BuildConfig.DEBUG &&
message.signedby == null &&
Boolean.TRUE.equals(message.dkim))
EntityOperation.queue(context, message, EntityOperation.FLAG, true, android.graphics.Color.RED);
try {
EntityContact.received(context, account, folder, message);