diff --git a/FAQ.md b/FAQ.md index aea82e9547..dfc4933ae3 100644 --- a/FAQ.md +++ b/FAQ.md @@ -202,7 +202,7 @@ FairEmail follows all the best practices for an email client as decribed in [thi * [(119) Can you add colors to the unified inbox widget?](#user-content-faq119) * [(120) Why are new message notifications not removed on opening the app?](#user-content-faq120) * [(121) How are messages grouped into a conversation?](#user-content-faq121) -* [(122) Why is the recipient name/email address show with a warning color?](#user-content-faq122) +* [~~(122) Why is the recipient name/email address show with a warning color?~~](#user-content-faq122) * [(123) What does 'force sync'?](#user-content-faq123) [I have another question.](#support) @@ -2090,11 +2090,11 @@ because this could result in grouping unrelated messages and would be at the exp
-**(122) Why is the recipient name/email address show with a warning color?** +**~~(122) Why is the recipient name/email address show with a warning color?~~** -The recipient name and/or email address in the addresses section will be shown in a warning color -when the sender domain name and the domain name of the *to* address do not match. -Mostly this indicates that the message was received *via* an account with another email address. +~~The recipient name and/or email address in the addresses section will be shown in a warning color~~ +~~when the sender domain name and the domain name of the *to* address do not match.~~ +~~Mostly this indicates that the message was received *via* an account with another email address.~~
diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 265c521244..8b37aba647 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -493,6 +493,7 @@ public class AdapterMessage extends RecyclerView.Adapter result = new ArrayList<>(); + if (Boolean.FALSE.equals(message.dkim)) + result.add("DKIM"); + if (Boolean.FALSE.equals(message.spf)) + result.add("SPF"); + if (Boolean.FALSE.equals(message.dmarc)) + result.add("DMARC"); + if (Boolean.FALSE.equals(message.mx)) + result.add("MX"); + + ToastEx.makeText(context, + context.getString(R.string.title_authentication_failed, TextUtils.join(", ", result)), + Toast.LENGTH_LONG) + .show(); + } + private void onShowSnoozed(TupleMessageEx message) { if (message.ui_snoozed != null) { DateFormat DTF = Helper.getDateTimeInstance(context, SimpleDateFormat.MEDIUM, SimpleDateFormat.SHORT); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f8bbd3b9e0..5e55a7bd7f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -478,6 +478,7 @@ Template Moving to %1$s Open with + %1$s authentication failed Read receipt: %1$s This read receipt only acknowledges that the message was displayed. There is no guarantee that the recipient has read the message contents.