From 646965a1cd3eae681f6fd39957cc5824e7b8d2ef Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 11 Nov 2021 09:37:18 +0100 Subject: [PATCH] Added Yahoo! recognition --- app/src/main/java/eu/faircode/email/MessageHelper.java | 4 ++++ app/src/main/res/drawable/infra_yahoo.xml | 9 +++++++++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 14 insertions(+) create mode 100644 app/src/main/res/drawable/infra_yahoo.xml diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 955de6db79..4cd4d5cc11 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -1728,6 +1728,10 @@ public class MessageHelper { if (!TextUtils.isEmpty(outlook)) return "outlook"; + String yahoo = imessage.getHeader("X-Sonic-MF", null); + if (!TextUtils.isEmpty(yahoo)) + return "yahoo"; + return null; } diff --git a/app/src/main/res/drawable/infra_yahoo.xml b/app/src/main/res/drawable/infra_yahoo.xml new file mode 100644 index 0000000000..c437c099d7 --- /dev/null +++ b/app/src/main/res/drawable/infra_yahoo.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3a64f64067..f6f76b1f21 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1823,6 +1823,7 @@ Gmail Outlook/Office 365 + Yahoo! Always