From 8a8e27b757e3c9f92a54d138c0d55c3a9cca29b3 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 10 Nov 2021 15:07:57 +0100 Subject: [PATCH] Added Sendinblue recognition --- .../main/java/eu/faircode/email/MessageHelper.java | 4 ++++ app/src/main/res/drawable/infra_sendinblue.xml | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 app/src/main/res/drawable/infra_sendinblue.xml diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 47a7e88001..f8fad51200 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -1696,6 +1696,10 @@ public class MessageHelper { if (!TextUtils.isEmpty(mailjet)) return "mailjet"; + String sendinblue = imessage.getHeader("X-sib-id", null); + if (!TextUtils.isEmpty(sendinblue)) + return "sendinblue"; + return null; } diff --git a/app/src/main/res/drawable/infra_sendinblue.xml b/app/src/main/res/drawable/infra_sendinblue.xml new file mode 100644 index 0000000000..77e748ccf2 --- /dev/null +++ b/app/src/main/res/drawable/infra_sendinblue.xml @@ -0,0 +1,12 @@ + + + + +