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:
parent
7dd26154db
commit
5e55ed50bf
1 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue