mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 06:20:26 +00:00
DKIM implies DMARC
This commit is contained in:
parent
68cffeeda1
commit
5372365935
1 changed files with 7 additions and 0 deletions
|
@ -1174,6 +1174,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
(Boolean.TRUE.equals(message.dkim) ? 1 : 0) +
|
(Boolean.TRUE.equals(message.dkim) ? 1 : 0) +
|
||||||
(Boolean.TRUE.equals(message.spf) ? 1 : 0) +
|
(Boolean.TRUE.equals(message.spf) ? 1 : 0) +
|
||||||
(Boolean.TRUE.equals(message.dmarc) ? 1 : 0);
|
(Boolean.TRUE.equals(message.dmarc) ? 1 : 0);
|
||||||
|
|
||||||
|
// https://en.wikipedia.org/wiki/DMARC#Alignment
|
||||||
|
if (Boolean.TRUE.equals(message.dkim) &&
|
||||||
|
!Boolean.FALSE.equals(message.spf) &&
|
||||||
|
!Boolean.FALSE.equals(message.dmarc))
|
||||||
|
auths = 3;
|
||||||
|
|
||||||
ibAuth.setImageLevel(auths + 1);
|
ibAuth.setImageLevel(auths + 1);
|
||||||
ibAuth.setImageTintList(ColorStateList.valueOf(
|
ibAuth.setImageTintList(ColorStateList.valueOf(
|
||||||
auths < 3 ? colorControlNormal : colorVerified));
|
auths < 3 ? colorControlNormal : colorVerified));
|
||||||
|
|
Loading…
Reference in a new issue