From 9dd8c85176e9dda312a516de4ca9a4b5188d3450 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 7 Apr 2019 08:14:02 +0200 Subject: [PATCH] Add X-Mailer header --- app/src/main/java/eu/faircode/email/MessageHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index cccd5326e5..4ce9c9db65 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -198,6 +198,7 @@ public class MessageHelper { if (message.inreplyto != null) imessage.addHeader("In-Reply-To", message.inreplyto); + imessage.addHeader("X-Mailer", context.getString(R.string.app_name) + " " + BuildConfig.VERSION_NAME); imessage.addHeader("X-FairEmail-ID", message.msgid); imessage.setFlag(Flags.Flag.SEEN, message.seen);