Skip native DKIM for outgoing messages

This commit is contained in:
M66B 2024-05-22 08:30:13 +02:00
parent 23c2f9da53
commit bfec5e4634
1 changed files with 6 additions and 2 deletions

View File

@ -3501,7 +3501,9 @@ class Core {
if (MessageHelper.equalEmail(message.submitter, message.from))
message.submitter = null;
if (native_dkim && !BuildConfig.PLAY_STORE_RELEASE) {
if (native_dkim &&
!EntityFolder.isOutgoing(folder.type) &&
!BuildConfig.PLAY_STORE_RELEASE) {
List<String> signers = helper.verifyDKIM(context);
message.signedby = (signers.isEmpty() ? null : TextUtils.join(",", signers));
message.dkim = !signers.isEmpty();
@ -4653,7 +4655,9 @@ class Core {
if (MessageHelper.equalEmail(message.submitter, message.from))
message.submitter = null;
if (native_dkim && !BuildConfig.PLAY_STORE_RELEASE) {
if (native_dkim &&
!EntityFolder.isOutgoing(folder.type) &&
!BuildConfig.PLAY_STORE_RELEASE) {
List<String> signers = helper.verifyDKIM(context);
message.signedby = (signers.isEmpty() ? null : TextUtils.join(",", signers));
message.dkim = !signers.isEmpty();